Here's a suggestion based on bosko's idea. Let all the smenus have IDs. Then something like this:
Code:
window.onload=montre;
var thisPgTab = 'smenu2'; // use some way of indicating the tab for this page
function montre(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';}
else document.getElementById(thisPgTab).style.display = 'block';
}
And then in each "tab" LI add the onmouseout handler:
Code:
<li class="first" onmouseover="montre('smenu1');" onmouseout="montre()"><a href="#">Link 1</a>
Bookmarks