My horizontal drop down menu is almost complete with the exception of the sub-level menus which remain on screen rather than disappear when you move across to the next menu item. The next item has sub-level menu which also remains stuck on screen - the only way they disappear is by hitting refresh on your screen. I believe I am missing something on my javascript to complete the mouseover effect. Here is my code:
Page standard used:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
In my page header:
<script type="text/javascript">
<!--
window.onload=show;
function show(id) {
var d = document.getElementById(id);
for (var i = 1; i<=10; i++) {
if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
}
if (d) {d.style.display='block';}
}
//-->
</script>
Bookmarks