Debmedia Creation Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Asp.net Create Hover Label

Go down

Asp.net Create Hover Label Empty Asp.net Create Hover Label

Post  Admin Tue Feb 23, 2010 4:57 pm

Take a panel and a label inside the panel and make panel same size of the label and do the code in page load event

Label1.Attributes.Add("onmouseover", "document.getElementById('" & Label1.ClientID & "').style.color='" & "red" & "';")

Label1.Attributes.Add("onmouseout", "document.getElementById('" & Label1.ClientID & "').style.color='" & "blue" & "';")
Panel1.Attributes.Add("onmouseout", "document.getElementById('" & Label1.ClientID & "').style.cursor='" & "pointer" & "';")

Panel1.Attributes.Add("onmouseover", "document.getElementById('" & Label1.ClientID & "').style.cursor='" & "pointer" & "';")
Admin
Admin
Admin

Posts : 256
Join date : 2008-06-06

https://debmedia.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum