hi. i'm using this javascript to toggle the visibility of some divs which have different ids. it works how i want in google chrome and even in internet explorer but in firefox when i hover the links the divs won't change their visibility. javascript:
function loaded() { // this one is called in the body tag
about.style.visibility='visible';
last = about;
}
function toggle_visibility(id) {
var e = document.getElementById(id);
if (last!=e) {
e.style.visibility = 'visible';
last.style.visibility='hidden';
last = e;
}
}
css for divs:
#about {
background-color:#D580FE;
width:850px;
height:500px;
margin-left:auto;
margin-right:auto;
margin-top:40px;
}
#portofoliu {
background-color:#FF0000;
width:850px;
height:500px;
margin-left:auto;
margin-right:auto;
margin-top:-500px;
visibility:hidden;
}