You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Perry Q Hertler <pe...@yahoo.com> on 2003/10/23 03:17:11 UTC

Rollover Submit

Since @Rollover can't be contained in a @LinkSubmit, I am using @ImageSubmit.  However, it does not't look like @ImageSubmit has a way to set the focus/onMouseOver image.  Am I missing something or do I need to make a custom component?

Thanks,

Perry





---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: Rollover Submit

Posted by Paul Ferraro <pm...@columbia.edu>.
I wrote a custom component for exactly this purpose.  It combines the 
functionality of the Rollover component with that of the ImageSubmit 
component.  I've attached the source code.  Feel free to use it.  I 've 
been meaning to offer this back to the framework for quite some time.

The component references the following javascript function for which 
you'll need to find a home:

function swapImage(image1, image2) {
    if (image1 && image2 && image1.src && image2.src) {
        image1.src = image2.src
    }
}

Let me know how it works for you.

Paul Ferraro

Perry Q Hertler wrote:

>Since @Rollover can't be contained in a @LinkSubmit, I am using @ImageSubmit.  However, it does not't look like @ImageSubmit has a way to set the focus/onMouseOver image.  Am I missing something or do I need to make a custom component?
>
>Thanks,
>
>Perry
>
>
>
>
>
>---------------------------------
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search
>  
>