hwg-basics archives | May 2000 | new search | results | previous | next |
Re: Small question re: formsby Christopher Higgs <c.higgs(at)landfood.unimelb.edu.au> |
|
At 18:50 6/05/00 -0400, WebGraffix Internet Design and Hosting wrote: > <INPUT type="Image" name="Input" src="Images/sendit2.gif" border="0" > width=78 >height=26 alt="Submit!"> > >Steve, > >The above html code replacest the normal SUBMIT button code (<INPUT >type="submit" name="Submit" value="Submit">) in order to accomplish this. Firstly, this button won't work as a submit button. You need to add an event handler for when the button is clicked - in this case: <INPUT type="Image" name="Input" src="Images/sendit2.gif" border="0" width=78 height=26 alt="Submit!" onClick="submit();"> In order to add a rollover you need to add event handlers for mouseOver and mouseOut: <INPUT type="Image" name="Input" src="Images/sendit2.gif" border="0" width=78 height=26 alt="Submit!" onClick="submit();" onmouseOver="[insert roll-over script here];" onmouseOut="[insert roll-out script here];"> Chris Higgs <c.higgs(at)landfood.unimelb.edu.au> Institute of Land and Food Resources University of Melbourne http://www.landfood.unimelb.edu.au
HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA