i have 4 thumbnails and four related images, i need when the mouse is over on of the thumbnails to show the related image and hide the others how can i do this in script using asp.net
thanks
Printable View
i have 4 thumbnails and four related images, i need when the mouse is over on of the thumbnails to show the related image and hide the others how can i do this in script using asp.net
thanks
Use client side JavaScript to swap images. Search in Google you should find hundred of example.
A ready control by the name of Rolloverimage is available for free download.
Look up the link
http://www.devhood.com/tools/tool_de...px?tool_id=108
Provides a very clean method for mouseover image changing. :thumb:
I have 2 imagebuttons on my web form and then have the following code in Page_Load:
.NET automatically creates the client side JS for you.VB Code:
btnEntering.Attributes.Add("OnMouseOver", "this.src='Resources/EnteringSiteOver.gif';") btnEntering.Attributes.Add("OnMouseOut", "this.src='Resources/EnteringSite.gif';") btnLeaving.Attributes.Add("OnMouseOver", "this.src='Resources/LeavingSiteOver.gif';") btnLeaving.Attributes.Add("OnMouseOut", "this.src='Resources/LeavingSite.gif';")
Hope that helps.
woof