Solved

ASP.NET Hyperlink Selection Area

Posted on 2004-03-29
6
258 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
[X]
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
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get hold of longitude and latitude in iframe string 11 60
Date on a table 16 43
calculate days away 11 59
PHP $_POST vs asp request 4 53
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 informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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