I use this code and it works well <a href= "http://www.google.com" onMouseOver= "if (document.images) document.button3.src= 'http://www.pu55y.be/templates/skidoo_too/images/button4.gif';" onMouseOut= "if (document.images) document.button3.src= 'http://www.pu55y.be/templates/skidoo_too/images/button3.gif';"><img src= "http://www.pu55y.be/templates/skidoo_too/images/button3.gif" name="button3" border=0></a> PHP: Only for one button however. The second i add another button using the same or different images it stops working. Any ideas guys? May be there is another way of doing this? Thanks!
This should work, as long as you have a different name for each IMG tag and you reference the correct one. <a href= "http://www.google.com" onMouseOver= "if (document.images) document.button3.src= 'http://www.pu55y.be/templates/skidoo_too/images/button4.gif';" onMouseOut= "if (document.images) document.button3.src= 'http://www.pu55y.be/templates/skidoo_too/images/button3.gif';"><img src= "http://www.pu55y.be/templates/skidoo_too/images/button3.gif" name="button3" border=0></a> <a href= "http://www.google.com" onMouseOver= "if (document.images) document.button4.src= 'http://www.pu55y.be/templates/skidoo_too/images/button5.gif';" onMouseOut= "if (document.images) document.button4.src= 'http://www.pu55y.be/templates/skidoo_too/images/button4.gif';"><img src= "http://www.pu55y.be/templates/skidoo_too/images/button4.gif" name="button4" border=0></a> Code (markup):
Oh yea! Thanks! I did change the name but only the one at the end. Missed the document.button4.src= Works fine now