You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "A. Lotfi" <ma...@yahoo.com> on 2006/07/26 16:58:01 UTC

input submit button, ??

Hi, I want to have a sbmit button with mouse over, what's wrong here :

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

thank you.

 		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Re: input submit button, ??

Posted by Monkeyden <mo...@gmail.com>.
What behavior are you seeing?  I believe you have to do the swap inline with
<input type="image">, like so:

onMouseOut="this.src='images/title_history.gif';"
    onMouseOver="this.src='images/title_leaderboard.gif';"

Works in FF and IE6.

On 7/26/06, A. Lotfi <ma...@yahoo.com> wrote:
>
> Hi, I want to have a sbmit button with mouse over, what's wrong here :
>
> <input type="image" name="submit" src="<bean:write
> name='ctxtPath'/>/coeuslite images/b_submit.gif" width="62" height="22"
> border="0"
>                                         onMouseOut="window.status=''
> ;MM_swapImgRestore()"
>                                         onMouseOver="window.status='';MM_swapImage('imageField','','<bean:write
> name='ctxtPath'/>/coeuslite images/b_submit_over.gif',1)"/>
>
> thank you.
>
>
> ---------------------------------
> How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call
> rates.
>