Quick question. I am creating a mouse over effect for a couple of small icons and was just wondering if the method I am using is the most efficient and common way of achieving this. Wrapped below is the main part of the code I am using. It works and it's XHTML valid, however, I was wondering is this the best way to create a mouse over effect.
Code:
onmouseover="document.but.src='icon2.gif'"
onmouseout="document.but.src='icon1.gif'"