Re: Small question re: forms

by Christopher Higgs <c.higgs(at)landfood.unimelb.edu.au>

 Date:  Sun, 07 May 2000 13:47:45 +1000
 To:  WebGraffix Internet Design and Hosting <Keith(at)webgraffix.com>,
Steve burrill <steve.burrill(at)celtic-web.co.uk>
 Cc:  hwg-basics <hwg-basics(at)hwg.org>
 References:  celticweb
  todo: View Thread, Original
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