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! Link to comment https://forums.phpfreaks.com/topic/135386-making-script-open-new-window-for-banner-roation-scriptplease-help/ 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. Link to comment https://forums.phpfreaks.com/topic/135386-making-script-open-new-window-for-banner-roation-scriptplease-help/#findComment-705278 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.