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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit with image, what's wrong in this code

Status
Not open for further replies.

mlotfi

Programmer
Oct 14, 2003
26
0
0
US
Hi,
Could you please tell me what's wrong here, whem I mouseover and mouseout, nothing happened, the pictures should change :

<input type="image" name="submit" src="/coeuslite images/b_submit.gif" width="62" height="22" border="0"
onMouseOut="window.status='';MM_swapImgRestore()"
onMouseOver="window.status='';MM_swapImage('imageField','','/coeuslite images/b_submit_over.gif',1)"/>
 
Try this:

Code:
<input type="image" name="submit" src="/coeuslite images/b_submit.gif" width="62" height="22" border="0"
onMouseOut="[red]src='/coeuslite images/b_submit.gif'[/red]"
OnMouseOver="[red]src='/coeuslite images/b_submit_over.gif'[/red]"/>


That should work.

However I suggest you use CSS to acomplish this.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top