I am trying to get this code to open a
new window when the image is clicked and
after looking at it for a couple of
hours I can honestly say that I am stuck.
I think the problem is in the slidelink()
function but I have no idea...
Can anyone offer advise as to how I can make a window pop up from here?Code:<script language="JavaScript1.1"> <!-- var image1=new Image() image1.src="http://216.119.103.136/images/tops/about/flash_mov2.gif" var image2=new Image() image2.src="http://216.119.103.136/images/tops/about/flash_mov3.gif" var image3=new Image() image3.src="http://216.119.103.136/images/tops/about/flash_mov4.gif" //--> </script> <a onmouseover="window.status='Click here to learn more about PRC'; return true" onmouseout="window.status=''" href="javascript:slidelink()"><img src="http://216.119.103.136/images/tops/about/flash_mov2.gif" name="slide" border=0></a> <script> <!-- var step=1 var whichimage=1 function slideit(){ if (!document.images) return document.images.slide.src=eval("image"+step+".src") whichimage=step if (step<3) step++ else step=1 setTimeout("slideit()",1800) } slideit() function slidelink(){ if (whichimage==1) window.location="http://216.119.103.136/why/flash/WhyPRC.html" else if (whichimage==2) window.location="http://216.119.103.136/why/flash/WhyPRC.html" else if (whichimage==3) window.location="http://216.119.103.136/why/flash/WhyPRC.html" } //--> </script>
Thank you in advance.




Bookmarks