Hi, I want to find a script (javascript or php) that can rotate link destinations when users click on an image ad on my site. (clicking on the image goes to link destination #1, clicking the image again would then go to link destination #2, ect. In order or at random) Does anyone know of any? Thanks, RonMo
I know there are free ones, and ones that cost $5, I have no problem spending a few bucks if the code is compact and works with IE 7 & Firefox
I hope this was wath you want: <script language="javascript"> // here goes the links separated by a single colon links = new Array("link1", "link2", "another link"); n = Math.round(Math.random() * (links.length-1)); document.write('<a href="'+links[n]+'"><img src="image URL" /></a>'); </script> Code (markup):