Solved

ASP.NET Hyperlink Selection Area

Posted on 2004-03-29
6
255 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now