Java скрипт не работает в
Opere, а в
IE работает.
Скрипт:
<style type="text/css">
a { font-family: Verdana, Arial; color: white; text-decoration: none; font-weight:bold; }
a:hover { color: white; text-decoration: none; font-weight:bold; background-color:grey;}
#box {position:absolute;visibility:hidden;layer-background-color:006600}
#blackbox { font-family: Verdana, Arial; font-size:8pt; color: white; background-color:006600; text-decoration: none }
#mnubar { font-family: Verdana, Arial; font-size:10pt; color: white; font-weight:bold; text-decoration: none }
</style>
<script language="JavaScript">
ns=window.navigator.appName == "Netscape"
ie=window.navigator.appName == "Microsoft Internet Explorer"
function openIt(x) {
if(ns) {
showbox= document.layers[x+1]
showbox.visibility = "show"
showbox.top=0;
var items = 7
for (i=1; i<=items; i++) {
elopen=document.layers[i]
if (i != (x + 1)) {
elopen.visibility = "hide" }
}
}
if(ie) {
curEl = event.toElement
curEl.style.background = "gray"
showBox = document.all.box[x];
showBox.style.visibility = "visible";
showBox.style.top = 196;
var items = 7
for (i=0; i<items; i++) {
elOpen=document.all.box[i]
barEl=document.all.mnubar[i]
if (i != x){
elOpen.style.visibility = "hidden"
barEl.style.background = "006600"
}
}
}
}
function closeIt() {
var items = 7
for (i=0; i<items; i++) {
if(ie){
document.all.box[i].style.visibility = "hidden"
barEl=document.all.mnubar[i]
barEl.style.background = "006600"
}
if(ns){ document.layers[i+1].visibility = "hide"}
}
}
</script>
Подскажите, пожалуйста,что дописать или изменить?????