ASP.NET Hyperlink Selection Area

Is there a way to create a rectangle arround a certain area of an ASP.NET page, when you hover over it, change color and when you click it go to a link - without hurting or covering the data underneath the rectangle?
sticarAsked:
Who is Participating?
 
SlimshaneeyConnect With a Mentor Commented:
Put this in the head:
<STYLE>
.boxTan {border: 1px solid tan}
.boxPurple {border: 1px solid purple}
</STYLE>



<div id="mydiv" onmouseover="javascript:this.style.className = 'boxTan';" onmouseout="javascript: this.className = 'boxPurple';">Text Here</div>
0
 
YZlatCommented:
just use <div> or something
0
 
SlimshaneeyCommented:
Sorry, the div goes in the body where you want the effect to appear...
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
sticarAuthor Commented:
I'll try it and let you know.... Thanks!
0
 
sticarAuthor Commented:
Ok... I do have a style sheet....but... This is a template so it's an .ascx page and I cannot just put in class="menu" or whatever one I want to use and I don't believe I can put in some javascript... ??

<TD><div id="Div0" class="menu"><A href="home.aspx">
<asp:image id="menu" ImageUrl="graphics\person.gif" runat="server" ImageAlign="AbsMiddle"></asp:image><FONT color="#355a98" size="4">
MyTextHere</A></div></FONT></TD>
0
 
sticarAuthor Commented:
Nevermind... I think I'm getting it from here... It just likes to keep rearranging and adding extra tags in there when I add something...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.