Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlight href

Status
Not open for further replies.

JSMITH242B

Programmer
Mar 7, 2003
352
GB
Hi Group,
I have a Menu and Sub-menus in my asp.net application. The main page is in html.

When a user clicks a Main Menu item, I select the first sub-menu item as the default, which loads the relevant page into an iframe. This works. However, there is no way to see which menu item is selected. Is there anyway I can highlight the defaulted menu item - it is an href tag?

Kind Regards
 
it's an anchor tag <a> with href as an attribute (ie <a href="">

try something like:

Code:
<a href="#" onmouseover="this.style.background='#FF0000';"<link</a>

[conehead]
 
Hi
I tried this and get an error on line 1 which is my documnet definition:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Here is how I've coded the highlight
menu2='<a href="SuspControl.aspx" onmouseover="this.style.BGCOLOR='#FF0000';" target="content">Signs</a> '

Regards
 
sorry it should be:

onmouseover="this.style.background = '#FF0000';"

[conehead]
 
That didn't work either. Thanks for your help anyhow.
 
It's Ok. I've used a style sheet and it works quite nicely!!
 
Hi Clive,
I don't see the a:focus option.

I'm using VS.NET
 
ahh, it was probably the ' " ' ' " ' that was throwing it off which would be why calling a class would work...

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top