Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Shows the current menu on top
- function showstuff(boxid) {
- document.getElementById(boxid).style.zIndex="5";
- }
- //Hides the rest of them.
- function hidestuff(boxid) {
- document.getElementById(boxid).style.zindex="3";
- }
- <div onclick="showstuff('Menu1'); hidestuff('Menu2'); hidestuff('Menu3');" ;style="cursor:pointer;">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement