![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When a user clicks on a link in my menu, I want the background color of the link that comes up in the hover to remain on the destination page. My menu looks like this: div id="adminmenu" a class="mainlink mainlink1" href="">Events</a><br a class="mainlink mainlink2" href="">Home Page Teaser</a><br a class="mainlink mainlink3" href="">Testimonials</a><br a class="mainlink mainlink4" href="">Repertoire</a><br a class="mainlink mainlink5" href="">Customers</a><br a class="mainlink mainlink6" href="">Surveys</a><br /div My styles look like this: .mainlink { width: 100%; padding: 12px; font-family : Arial, Helvetica; font-size: 9pt; font-weight: bold; color: #336699; text-decoration: none; } .mainlink1:hover { background-color: #949EA7; color: #FFFFFF; } .mainlink2:hover { background-color: #659EA5; color: #FFFFFF; } etc... So if, for example, if I click on a link named Events, when I arrive at that page, I want the "Events" item in the menu to remain in its "hover" configuration even though I'm no longer hovering. |
#3
| |||
| |||
|
|
When a user clicks on a link in my menu, I want the background color of the link that comes up in the hover to remain on the destination page. |
#4
| |||
| |||
|
|
In article <5ff4b9bc.0310140649.1d3d8951 (AT) posting (DOT) google.com>, djsavlon (AT) yahoo (DOT) com (Dan) wrote: When a user clicks on a link in my menu, I want the background color of the link that comes up in the hover to remain on the destination page. [html and css snipped] div id="adminmenu" a class="current" href="">Events</a><br a href="">Home Page Teaser</a><br a href="">Testimonials</a><br ... #adminmenu a:hover, #adminmenu .current { /* styles for hover state _and_ current link */ } |
#5
| ||||
| ||||
|
|
Nikolaos Giannopoulos wrote: This is not 3 paragraphs. Remember that css is optional, so start with sensible markup. I'd say it's a list of menu options. |
|
ul id="adminmenu" li>events</li li><a href="foo.html">testimonials</a></li ... /ul I would rather have the default cursor as this is supposed to represent the current link No, it is not supposed to represent any link at all. If the cursor changed to a pointer, that would confuse a visitor. It is supposed to indicate that that menu item is the current selection. That seems like a job for color, background, font, etc., but not the cursor. |
|
I could maybe see using a "help" cursor to call the visitor's attention to the fact that additional information is available for an element (e.g., there is a title attribute set). I've gone back and forth on this on my sites. |
|
Otherwise, the cursor should be left along. |
![]() |
| Thread Tools | |
| Display Modes | |
| |