I have a site that has 3 iframes on it:
programs services
info
The programs page is nothing but links that update the services/info iframes. When the programs page loads up, I want the first link to be highlighted. When you hover over the other links, they become highlighted. When you select a link, that link now becomes the highlighted one and stays highlighted. I have this sort of working in IE (FireFox will not keep the link highlighted when clicked). Once I click anywhere (either outside the iframe, or within the same iframe) the highlight goes away. Below is part of my CSS and HTML code. Could someone please help me. I am kind of new to CSS. Thanks!!
CSS:
[code]
#programlinks a{
padding-left: 4px;
display: block;
width: auto;
text-decoration: none;
border: 1px solid white;
}
#programlinks a:hover, a:active, a.current{
border: 1px solid black;
background-color: lightyellow;
}
HTML:
[code]
<script language=”javascript”>
function loadTwo(iframe1URL, iframe2URL) {
parent.ifrmServices.location.href=iframe1URL
parent.ifrmDetails.location.href=iframe2URL
}
</script>
<div id=”programlinks”>
<a href=”javascript:loadTwo(‘blank.jsp’,’profile_welcome.jsf’)”>About My Programs</a>
<a href=”javascript:loadTwo(‘services.jsf’,’program1_details.jsf’)”>Living More</a>
<a href=”javascript:loadTwo(‘services.jsf’,’program3_details.jsf’)”>Program 3</a>
</div>