Asp.net Create Hover Label

View previous topic View next topic Go down

Asp.net Create Hover Label

Post  Admin on 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" & "';")
avatar
Admin
Admin

Posts : 256
Join date : 2008-06-06

View user profile http://debmedia.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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