How to direct w/c Array to Open

admin

Administrator
Staff member
I seem to be unable to successfully get this particulary script to work on multiple links...enways...
The script below makes a clicked link or links slowly uhmm..unfold an htmdoc on a new window:

__________________________________________________________
<head>
<script>
var mylocationArray= new Array('1sthtmdoc.htm', '2ndhtmdoc.htm')
var winheight=100
var winsize=100
var x=5

function go(){
win2=window.open(mylocationArray[0],"","scrollbars")
if (!document.layers&&!document.all){
win2.location=mylocationArray[0]
return
}
win2.resizeTo(100,100)
win2.moveTo(0,0)
go2()
}
function go2(){
if (winheight>=screen.availHeight-3)
x=0
win2.resizeBy(5,x)
winheight+=5
winsize+=5
if (winsize>=screen.width-5){
win2.location=mylocationArray[1]
winheight=100
winsize=100
x=5
return
}
setTimeout("go2()",50)
}

</script>
</head>
And in between the <body></body>:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:go()"
onMouseover="window.status='open window';return true" onMouseout="window.status=''">TextLink 1 here</a>
_______________________________________________________
My questions are: How do have the script open the corresponding .htm document for each text link i want??

And what if I need to add more links? w/c values should i need to change

TIA!
 
Back
Top