Ok, heres the deal.
I have a bunch of images, and I want them to rotate everytime a person comes. Im using this code:
<script language="JavaScript">
<!--
/*
Random Image Script- By JavaScript Kit (http://www.javascriptkit.com)
Over 400+ free JavaScripts here!
Keep this notice intact please
*/
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="images/top1.gif"
myimages[2]="images/top2.gif"
myimages[3]="images/top3.gif"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="'+myimages[ry]+'" usemap="#FPMap3" border=0>')
}
random_imglink()
//-->
</script>
Ok, the images are all the same size. and I have a image map code I want to use. and the hot spots are all gonna be in the same place. now you can see “usemap=”#fpmap3" and I tried it, and didnt work.
does anyone know what I can do? or is there another code I could use?