Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Roll-Over Forms Image Buttons. Are there such things????

Status
Not open for further replies.

abraxas

Programmer
Jan 15, 2001
75
AU
G'day,
Is there a way of incorporating rollover graphics into form buttons reset and submit?

This fragment works for static images for reset
<form name=&quot;formName&quot;>
<input type=&quot;text&quot;>
</form>

<a href=&quot;#&quot; onClick=&quot;this.href='javascript:document.formName.reset()'&quot;><img src=&quot;button.gif&quot; width=&quot;16&quot; height=&quot;16&quot; border=&quot;0&quot;></a>

but I can't work out where an onMouseover swap would function.

Thank you for your time!
abraxas
 
<script>
tstimage = '</script>

<a href=&quot;#&quot; onClick=&quot;this.href='javascript:document.formName.reset()'&quot; onmouseover=&quot;this.childNodes[0].src=tstimage&quot;><img src=&quot;button.gif&quot; width=&quot;16&quot; height=&quot;16&quot; border=&quot;0&quot;></a> jared@eae.net -
 
Hey!, thank you very much. It would of been a shame to let these EyeCandy buttons go to waste!

Regards
abraxas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top