Welcome to Coding Forums!
Now your problem. You've not given us much to go on, but I'm gonna take a guess that when you mouseover a link it calls a script that changes some image. Well what you'll need to do is firstly know the dimensions of the replacing image. Once you know this you can use:
Code:
function imageSwaper(what, to, w, h){
document.getElementById(what).src = 'root/to/images/folder/' + to + '.gif';
document.getElementById(what).width = w;
document.getElementById(what).height = h;
}
BUT the image tag you're going to be changing must be written like this:
<img src="original/image.gif" id="image2change">
and the links need to take this format:
<a href="#" onMouseover="JavaScript
: imageSwaper('image2change','newimage','apx','bpx');">LINK TEXT</a>
where a = width of the newimage.gif and b = height.
If you have any problems, let us know and we'll help out