Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ASP.NET Hyperlink Selection Area

Posted on 2004-03-29
6
256 Views
Last Modified: 2011-09-20
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?
0
Comment
Question by:sticar
  • 3
  • 2
6 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 10705172
just use <div> or something
0
 
LVL 11

Accepted Solution

by:
Slimshaneey earned 250 total points
ID: 10705326
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
 
LVL 11

Expert Comment

by:Slimshaneey
ID: 10705331
Sorry, the div goes in the body where you want the effect to appear...
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:sticar
ID: 10705715
I'll try it and let you know.... Thanks!
0
 

Author Comment

by:sticar
ID: 10709458
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
 

Author Comment

by:sticar
ID: 10709947
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question