Click to See Complete Forum and Search --> : hover button, with another image


dexit
06-18-2004, 12:47 PM
Hi, I have a little problem. I have made a hoverbutton, so you change an other image when you onMouseover an image.
My question is: how can you change the position of the hoverbutton-image?

the hoverbutton-thing is so something like the example on this page:

http://www.pageresource.com/jscript/jhover1.htm
I want to change the position of "Stories!"

Kor
06-18-2004, 01:07 PM
You have to use CSS on-the-fly dynamically changes based on document.getElementById(id).style.attribute method

ex

document.getElementById('an_id').style.left=200;

will change the left position of the object to left=200

Take care about the CSS position:absolute or relative