Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. AdminSpot.net - DeLeTeD PWNS
  2.  
  3.  
  4. <script type="text/javascript">
  5. function switchMenu(obj) {
  6. var el = document.getElementById(obj);
  7. if ( el.style.display != 'none' ) {
  8. el.style.display = 'none';
  9. }
  10. else {
  11. el.style.display = '';
  12. }
  13. }
  14.  
  15.  
  16. </script>
  17.  
  18.  
  19.  
  20.  
  21.  
  22. <a onclick="javascript:switchMenu('bar');">
  23.  
  24.  
  25. <div class="bar">
  26. </div>
  27.  
  28.  
  29. If you don't want it to show on load use style="display:none;" on the bar div.
  30.  
  31. You can replace link with an image or whatever, place it anywhere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement