A common error, since it's so damned general that noone understands what it's pointing at. ;)
Well. I've got myself a function in an external .js file.
Simple as can be, right? Right.Code:function swapImage(imgID, imgFile) { document.images[imgID].src = '/newdesign/images/menubuttons/' + imgFile; }
Then, naturally, I've got an onMouseOver on a link that goes:
I can't for the life of me see anything wrong. Am I stupid? Is javascript stupid? Is the answer to the question about life, the universe and everything not 42?Code:<a href="" onMouseOver="swapImage('imgHome','home_down.gif')"><img name="imgHome" src="home.gif"></a>




Reply With Quote