Hello,
I have a web site that uses frames and one of my frames have a [base target="_self"], but I'm trying to put in a banner rotater using Javascript. The problem is that I want it to open some of the links in the "main" frame and some of the banner links in new windows.
This is what I have so far, but I think I need to put in a line of code to tell it where I want it opened. I tried a few that I thought would work, but no luck (bannerone in a new window, bannertwo in the main frame):
.src="../images/USS/speedo1.gif"
document.links[0].href="http://www.speedo.com/"
setTimeout("bannertwo()",4000)
}
function bannertwo() {
document.images[0].src="../images/SwimFLConner2a.gif"
document.links[0].href="../Miscellaneous/Team_Sponsors.htm"
setTimeout("bannerone()",4000)
}
and then in I have this to 'activate' it in the site [body onload="reducespace();bannerone()"]
I used [] instead of <> so that it shows up better, but some places that have [] are supposed to have them, ie [0].
Sincerely,
swim florida
I have a web site that uses frames and one of my frames have a [base target="_self"], but I'm trying to put in a banner rotater using Javascript. The problem is that I want it to open some of the links in the "main" frame and some of the banner links in new windows.
This is what I have so far, but I think I need to put in a line of code to tell it where I want it opened. I tried a few that I thought would work, but no luck (bannerone in a new window, bannertwo in the main frame):
.src="../images/USS/speedo1.gif"
document.links[0].href="http://www.speedo.com/"
setTimeout("bannertwo()",4000)
}
function bannertwo() {
document.images[0].src="../images/SwimFLConner2a.gif"
document.links[0].href="../Miscellaneous/Team_Sponsors.htm"
setTimeout("bannerone()",4000)
}
and then in I have this to 'activate' it in the site [body onload="reducespace();bannerone()"]
I used [] instead of <> so that it shows up better, but some places that have [] are supposed to have them, ie [0].
Sincerely,
swim florida