Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
rollover buttons
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="pitdog, post: 456574"] 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
rollover buttons
Top