Forum Moderators: open

Message Too Old, No Replies

Rollover-type image?

         

glamdring

9:23 am on Jul 31, 2004 (gmt 0)

10+ Year Member



Hi peeps

Can anyone tell me if its possible to create an action where when I hover the mouse over a certain button, it displays an image in another part of the page? Hence, another button displays a different image in the same part of the page as the first image?

How can I do this?

Jumper Willow

10:12 am on Jul 31, 2004 (gmt 0)

10+ Year Member



I'm not sure if over a button, but over a link it'd just be something like:


<a href="urlhere.html" onmouseover="image1.src='hover.jpg'" onmouseout="image1.src='nohover.jpg'">Click here</a>

::somewhere else::

<img name="image1" src="nohover.jpg" />

Might work with a button still...


<form name="form1" action="javascript:" method="post" onmouseover>
<input type="button" value="Submit" onmouseover="image1.src='hover.jpg'" onmouseout="image1.src='nohover.jpg'" /></form>

Don't see a problem using it there either...

glamdring

6:50 am on Aug 1, 2004 (gmt 0)

10+ Year Member



Thankyou