Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //Shows the current menu on top
  2. function showstuff(boxid) {
  3. document.getElementById(boxid).style.zIndex="5";
  4. }
  5. //Hides the rest of them.
  6. function hidestuff(boxid) {
  7. document.getElementById(boxid).style.zindex="3";
  8. }
  9.  
  10.  
  11.  
  12. <div onclick="showstuff('Menu1'); hidestuff('Menu2'); hidestuff('Menu3');" ;style="cursor:pointer;">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement