Ok well, I’m trying javascript to do this and I’m able to get the image showing. But since this is involving images…I would like the link text to change colors. Of course if this wasn’t an image I’ll use CSS to change the font color. But because I want to keep this certain font that isn’t common, I’m sticking to an image of the word (in this case “main”). Is it possible to swap the word image (from black to blue) while using this show command at the same time?
my current code is this:
<script language="Javascript">
<!--
function ShowPicture(id,Source) {
if (Source=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (Source=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}
//-->
</script>