I am seeking a solution and found this mail.
This is a very useful implementation.
I strongly suggest future wicket to include this Component.
Thank you , Jeremy
--
smallufo
2008/10/8 Jeremy Thomerson jer...@wickettraining.com
This doesn't preload the images, but it is a simple way to do a
AttributeModifier(onmouseout,
true, new ModelString(display('+uniqueImageName+',
+uniqueImageName+_out);));
add(onMouseOutAtt);
}
}
--
View this message in context:
http://www.nabble.com/onmouseover-image-tp19567984p19905061.html
Sent from the Wicket - User
This doesn't preload the images, but it is a simple way to do a Mouseover.
You could easily add a header contributor within the constructor of this
class that outputs some javascript to preload the images.
public class MouseoverImage extends Image {
private static final long serialVersionUID =
Thanks Alastair, that's a good idea. AjaxEventBehavior would give the
effect but with a round trip to the server. It would be nice to have a
javascript only onmouseover where the images are pre-loaded.
I'm currently using the wicketstuff-dojo onmouseover-highlight, which is
good enough for now.
Have a look at AjaxEventBehavior. You can either combine this with an Image
component or add an AttributeModifier and manually tweak the img's src
attribute.
Alastair
2008/9/19 Tim Squires [EMAIL PROTECTED]
Hi All,
Before I go and write my own component to change the src of an img
Hi All,
Before I go and write my own component to change the src of an img
onouseover, I just wanted to make sure that there is no standard
component. I don't want to re-invent the wheel.
Is there a standard component for changing the Image or ImageButton image
onmouseover?
Thanks,
Tim