Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

javascript menus

Can anyone help me modify this code to word in netscape and IE together. it works in IE but no dice on Netscape.













language="JavaScript">





document.onmouseover = openIt



function openIt() {

var items = 5 ;

currEl = window.event.toElement

if (currEl.className == "barItem") {

newId = currEl.id + "box"

showBox = document.all(newId)

showBox.style.display = "block"

}



for (i=1; i<=items; i++) {<br>
openItem="item" + i + "box"

elOpen = document.all(openItem)

if ((elOpen.style.display == "block")&&(elOpen != showBox))

elOpen.style.display = "none"



if (currEl.className == "closeIt") { elOpen.style.display = "none" }

}

}













image





D
????

Comments

  • Well, my guess is because you are using css correct? I don't know why, but some style sheets work in netscape and some don't. One time i tried to use a drop menu type thing and it wouldn't work in netscape because of the style sheets in it.


Sign In or Register to comment.