Hi guys, im adding html to my iweb site after publishing to a folder using this technique: http://karreth.com/iweb/Rollover Images.html
<a href="whatever.html"
onMouseout="document.images['example'].src=img1.src"
onMouseover="document.images['example'].src=img2.src">
<img src="logo.png" name="example" border=0></a>
<script language="javascript1.2">
<!--
img2=new Image()
img2.src="logo2.png"
img1=new Image()
img1.src="logo.png"
//-->
</script>
if i use this once in a page its fine but if i want to do a second button i have problems, do i need to change the code to something like img3 and img4 for the next button? and do i have to even if i use the same button images? thanks in advance
<a href="whatever.html"
onMouseout="document.images['example'].src=img1.src"
onMouseover="document.images['example'].src=img2.src">
<img src="logo.png" name="example" border=0></a>
<script language="javascript1.2">
<!--
img2=new Image()
img2.src="logo2.png"
img1=new Image()
img1.src="logo.png"
//-->
</script>
if i use this once in a page its fine but if i want to do a second button i have problems, do i need to change the code to something like img3 and img4 for the next button? and do i have to even if i use the same button images? thanks in advance