WebMiistressVonn Posted December 3, 2008 Share Posted December 3, 2008 <head> <script language="javascript"> <!-- function loadpage() { index1 = 0; listofimages = new Array(6); // BANNER ID 2009 babeland.com listofimages[0] = new Image(458,60) listofimages[0].src = "http://www.domconla.com/images/frontpagebanners/0.gif" // BANNER ID 2009 athenaangel.com listofimages[1] = new Image(458,60) listofimages[1].src = "http://www.xxx.com/images/frontpagebanners/1.gif" // BANNER ID 2009 mistressalexiajordan.com listofimages[2] = new Image(458,60) listofimages[2].src = "http://www.xxx.com/images/frontpagebanners/2.gif" // BANNER ID 2009 tabooleather.com listofimages[3] = new Image(458,60) listofimages[3].src = "http://www.xxx.com/images/frontpagebanners/3.jpg" // BANNER ID 2009 clips4sale.com listofimages[4] = new Image(458,60) listofimages[4].src = "http://www.xxx.com/images/frontpagebanners/4.jpg" // BANNER ID 2009 fetishmovies.com listofimages[5] = new Image(458,60) listofimages[5].src = "http://www.xxx.com/images/frontpagebanners/5.jpg" thetimer = setTimeout("changeimage()", 10000); } function changeimage(){ index1 = index1 + 1 if (index1 == "6") { index1 = 0 } imagesource = listofimages[index1].src window.document.banner1.src = imagesource thetimer = setTimeout("changeimage()", 10000); } function changepage() { if (index1 == 0) { newlocation = "http://www.xxx.com" } else if (index1 == 1) { newlocation = "http://www.xxx.com" } else if (index1 == 2) { newlocation = "http://www.xxx.com" } else if (index1 == 3) { newlocation = "http://www.xxx.com" } else if (index1 == 4) { newlocation = "http://www.xxx.com" } else if (index1 == 5) { newlocation = "http://www.xxx.com" } location = newlocation } // --> </script> </head> <body> <A HREF="javascript:changepage()"><img src="http://www.xxx.com/images/frontpagebanners/0.gif" alt="alt text here" border=0" name="banner1" WIDTH="458" HEIGHT="60"></A> </body> Code is working to this point. What I need help with is getting the banners to open in a new window. Any assistance would be greatly appreciated! Quote Link to comment Share on other sites More sharing options...
WebMiistressVonn Posted December 3, 2008 Author Share Posted December 3, 2008 Oh... one more thing...when I enter the target="_blank" a new window opens, but it fails to call the url in the link. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.