Re: rollover buttons
- From: pitdog@xxxxxxxxx
- Date: 11 May 2005 21:17:03 -0700
If this button is an image you can add the attribute runat=server this
will allow you to access this image in the code behind via the
System.Web.UI.HtmlControls
Then in you code behind create a protected variable like so
protected System.Web.UI.HtmlControls.HtmlImage imageName;
Then in the Page_load method you can do this.
imageName.Attributes.add("onMouseOver", "doRollover()")
What this does is render a image tag when the page loads that will look
like this
<img src="asdfsaf.gif" onMouseOver="foRollover()">
now the java script can be written as normal.
Hope that helps,
Brette
.
- References:
- rollover buttons
- From: dave
- rollover buttons
- Prev by Date: Re: Column 'link_url' does not belong to table links.
- Next by Date: Re: ASP.NET cross-browser compatible
- Previous by thread: rollover buttons
- Next by thread: Intermediate to Senior ASP.NET/VB.NET developer salary?
- Index(es):