September 1, 201214 yr I have a website that has some changing images on one page using the Javascript below, I have not added the complete page, mainly the Javascript between the yellow highlight. The area in red is what I am trying to adapt. I am trying to allow visitors to click on a page to target them to a specific website or webpage. It's been a long time since I have used Javascript, so help welcome. LIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <!--[if IE]> <style type="text/css"> li a {width: 100%;} </style> <![endif]--> <!--Start Javascript --> <script language="Javascript" type="text/javascript"> <!-- Hide script from old browsers adImages = new Array ("imagefp/48571.jpg", "imagefp/48572.jpg", "imagefp/48403.jpg", "imagefp/48404.jpg", "imagefp/48406.jpg", "http://www.mywebsite.com", <!-- how can I click on this image to go to a specific website or page on my website --> "imagefp/48409.jpg") thisAd = 0 imgCt = adImages.length function rotate() { if (document.images) { thisAd++ if (thisAd == imgCt) { thisAd = 0 } document.adBanner.src=adImages[thisAd] setTimeout("rotate()", 2.0 * 1000) } } // End hiding script from old browsers --> </script> <!--End of Javascript --> </head> Edited September 1, 201214 yr by Floral
Create an account or sign in to comment