Click to See Complete Forum and Search --> : Form Buttons with rollover images
shotoshi
12-01-2002, 03:30 AM
Hello,
I'm using Dreamweaver to design my pages and I'm having trouble trying to
incorporate javascript for rollovers into the FORM code.
The Form code is code for a shopping cart link.
What is the correct syntax for incorporating rollover images in a Form?
Thanks...
Klyve1
12-01-2002, 03:33 AM
Dreamweaver has its own 'insert rollover' function, have you tried this?
And then copy the relevant code to where it's needed.
shotoshi
12-01-2002, 03:48 AM
Thanks but I can create roll overs OK in DW but I'm just having trouble
incorporating the right code/syntax into the Form setting...
For example, here's the code/link for the images:
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Medium','','medium_rollover.gif',1)"><img name="Medium" border="0" src="medium.gif" width="85" height="23"></a>
And here's the code for the Form:
<form action="http://ww4.aitsafe.com/cf/add.cfm" method="post">
<input type="hidden" name="userid" value="6531023">
<input type="hidden" name="product" value="Medium T-Shirt">
<input type="hidden" name="price" value="12.50">
<input type="hidden" name="return" value="www.satansbusy.com">
<input type="hidden" name="units" value="1">
<input type="image" src="medium.gif" Alt="Buy Now">
</form>
I just can't get it right!