If you are doing this several times, then you can definately use a function.
This is untested, but:
Code:
function return_default_image()
{
window.document.getElementById('full').src='../images/full.png';
}
function set_new_image(image)
{
window.document.getElementById('full').src='../images/' + image;
}
And then you would have:
Code:
<img src="../images/image1_thumb.jpg" alt="thumb" onmouseover="set_new_image('image1.jpg');" onmouseout="return_default_image();"/>
Which looks quite a bit nicer to me
Bookmarks