Good day,
I have a blue left side vertical navbar on my site at I have various links down the side there that are all in white text with textdecoration : none. All well and good.
The last link there ("facilitators only", however, is called from a javascript function, gateKeeper(), which allows that link to be password protected.
I want all these links, including this last one to change text colour when the mouse passes over them. This is built into the ID="whyte", associated with the entire list of links. Here is a code fragment of my navbar:
<DIV ID="whyte">
<br><b><a href="accomodation.html" target="main">Accommodation</a></b>
<br><a href="javascript:gateKeeper()" onMouseover="window.status='Remember your password is required!'; return true; " onMouseOut="window.status=''; return true;"><B>(Facilitators
only)</B></a>
</DIV>
The code for ID="whyte" is found in styles.css and is
#whyte A:link, #whyte A:visited, #whyte A:active {color:#FFFFFF;text-decoration:none}
#whyte A:hover {color:#FFFF33}
The code for gateKeeper() is found in scripts.js and is
function gateKeeper()
{
var password = prompt("Enter password or request it.", "Request_password"
if (password == null)
{
// return false;
}
else
{
window.close(self)
var loc=password + ".html";
top.main.location.replace(loc);
}
}
The text changes color on hover for all the links except the last one called by gateKeeper().
What do I need to do to:
a) make this last link a different color than white (say lite green), and
b) make it change color to yellow like the rest do when the mouse hovers over it.
thanks
I have a blue left side vertical navbar on my site at I have various links down the side there that are all in white text with textdecoration : none. All well and good.
The last link there ("facilitators only", however, is called from a javascript function, gateKeeper(), which allows that link to be password protected.
I want all these links, including this last one to change text colour when the mouse passes over them. This is built into the ID="whyte", associated with the entire list of links. Here is a code fragment of my navbar:
<DIV ID="whyte">
<br><b><a href="accomodation.html" target="main">Accommodation</a></b>
<br><a href="javascript:gateKeeper()" onMouseover="window.status='Remember your password is required!'; return true; " onMouseOut="window.status=''; return true;"><B>(Facilitators
only)</B></a>
</DIV>
The code for ID="whyte" is found in styles.css and is
#whyte A:link, #whyte A:visited, #whyte A:active {color:#FFFFFF;text-decoration:none}
#whyte A:hover {color:#FFFF33}
The code for gateKeeper() is found in scripts.js and is
function gateKeeper()
{
var password = prompt("Enter password or request it.", "Request_password"
if (password == null)
{
// return false;
}
else
{
window.close(self)
var loc=password + ".html";
top.main.location.replace(loc);
}
}
The text changes color on hover for all the links except the last one called by gateKeeper().
What do I need to do to:
a) make this last link a different color than white (say lite green), and
b) make it change color to yellow like the rest do when the mouse hovers over it.
thanks