Forum Moderators: open
I've been using the script below for some time now & have just noticed a quirk.
Whenever the link(s) are clicked, the original page ZOOMS back up top.
Why is this happening? How do I remove that bug?
Any Advice is appreciated
Regards
Fess
[quote]<script language="JavaScript">
function GetRandom(start,end)
{
var range = end - start + 1;
var result = start + Math.floor(Math.random()*range);
return result;
}
function getRandomLink(whichSet) {
contentlinks = new Array("http://www.example.com/",
"");
trafficlinks = new Array("http://www.example.com/",
"");
if (whichSet==0) { window.open(contentlinks[GetRandom(0,contentlinks.length-1)]) }
else if (whichSet==1) { window.open(trafficlinks[GetRandom(0,trafficlinks.length-1)]) }
}
</script>[quote/]
[edited by: rogerd at 1:38 pm (utc) on Nov. 14, 2004]
[edit reason] No URLs please... [/edit]
Good to hear from you buddy. If you recall this thread, you'll remember me:
[webmasterworld.com...]
Your suggestion worked perfectly. Thanks!
P.S. sorry about the url in the above post. Slipped my mind.
Regards
Fess