[thelist] JavaScript - searching for link and comparing

Rosalie Sennett rsennett at brainlink.com
Tue Dec 21 21:43:44 CST 2004



And I've used this method for highlighting the current page's link on the
navbar. It implies that the link to the current page is a hyperlink. 


#ulMainNav a:link, #ulMainNav a:visited, #ulMainNav a:active {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
	text-decoration: none;
	background-color:#6633FF
		}

#ulMainNav a:hover, #ulMainNav a.current:link, #ulMainNav a.current:visited
{
color: #ffffff;
background-color:#00FF00
}

.....


<ul id="ulMainNav">
  <li><a href="scenario_1.html">scenario 1</a></li>
  <li><a href="scenario_2.html" class="current">scenario 2</a></li>
  <li><a href="scenario_3.html">scenario 3</a> </li>
</ul>

The content is not dynamic, so we don't need javascript here.

Here it shows us what the navbar on page 'Scenario 2' looks like.

It looks visited and hovered... already... 

r


-----------------
c:/dos
c:/dos/run
run/dos/run
>>
-----------------




More information about the thelist mailing list