Ok...here is what I need, a code that will let me have 3 images rotate with 3 corresponding links...they need to open OVER the frameset...in html you use target="_top" in the link code...but I can't get it to work in java. Here is what I have:
<HTML><HEAD>
<TITLE>Rotating banners with links</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -
if (document.images) {
ads = new Array(3);
ads[0] = "images/tricon.jpg";
ads[1] = "images/ride250.jpg";
ads[2] = "images/jeepicon.jpg";
}
newplace = new Array(3);
newplace[0] = "http://www.thatraymond.com"
newplace[1] = "http://ride250.thatraymond.com"
newplace[2] = "http://jeep.thatraymond.com"
var timer = null
var counter = 0
function banner() {
timer=setTimeout("banner()", 4000);
counter++;
if (counter >= 3)
counter = 0;
document.bannerad.src = ads[counter];
}
function gothere() {
counter2 = counter;
window.location.href = newplace[counter2];
}
// - End of JavaScript - -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#000000" onload="banner()">
<a href="javascript:gothere()"><IMG SRC="images/tricon.jpg" WIDTH="65" HEIGHT="57" BORDER="0" NAME="bannerad"></a>
</BODY>
</HTML>
Thanks!
<HTML><HEAD>
<TITLE>Rotating banners with links</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -
if (document.images) {
ads = new Array(3);
ads[0] = "images/tricon.jpg";
ads[1] = "images/ride250.jpg";
ads[2] = "images/jeepicon.jpg";
}
newplace = new Array(3);
newplace[0] = "http://www.thatraymond.com"
newplace[1] = "http://ride250.thatraymond.com"
newplace[2] = "http://jeep.thatraymond.com"
var timer = null
var counter = 0
function banner() {
timer=setTimeout("banner()", 4000);
counter++;
if (counter >= 3)
counter = 0;
document.bannerad.src = ads[counter];
}
function gothere() {
counter2 = counter;
window.location.href = newplace[counter2];
}
// - End of JavaScript - -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#000000" onload="banner()">
<a href="javascript:gothere()"><IMG SRC="images/tricon.jpg" WIDTH="65" HEIGHT="57" BORDER="0" NAME="bannerad"></a>
</BODY>
</HTML>
Thanks!