Hi guys
If anyone can help with this I'd be most appreciative, I've had a horrible time with this.
Basically, I am making a menu on a page whereby you can click an option and some text will appear lower down the page. This is achieved using javascript. Now, I want to make it so that once you click on an option (Like: 'Mission Statement') that options text will change colour- so it is easy to see what option you have selected.
Now, strangely enough, I have managed to get it working in IE of all places, but not FF (latest versions of both). I can't figure out why.
The style I am using is called 'Style1'. The CSS is as follows:
.style1 { font-weight: bold;font-style: italic;font-size:11px ;text-transform:uppercase}
a:link {color: #F68121; text-decoration:none}
a:active {color: Blue; text-decoration:none}
a:visited { color: #F68121; text-decoration:none }
hr {
height:1px;
color: #F4821F;
padding-top: 0px;
padding-bottom: 0px;
line-height: normal;
}
The Javascript I am using looks like this:
<div align="center">
<a href="#principles" onclick="showCont(0);returnfalse;" style="text-decoration: none" ><span class="style1">Mission Statement</span></a><br>
</div>
<div align="center">
<a href="#history" onclick="showCont(1);return false;" style=" text-decoration: none"
><span class="style1">Staff</span></a><br>
</div>
<div align="center">
<a href="#century" onclick="showCont(2);return false;" style=" text-decoration: none"
><span class="style1">B.E.E</div>
</a>
<div align="center">
<a href="#why" onclick="showCont(3);return false;" style=" text-decoration: none"
><span class="style1">Social Responsibility</div>
</a>
<hr>
<br>
<div id="cnt">
</div>
Help!
Thanks



Reply With Quote


Bookmarks