This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

DIV

By: a guest on Jan 4th, 2013  |  syntax: JavaScript  |  size: 0.23 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. id_anterior = "";
  2.  
  3. function exibirDiv(id){
  4.  
  5. if(this.id_anterior != "") document.getElementById(this.id_anterior).style.visibility = 'hidden';
  6. document.getElementById(id).style.visibility = 'visible';
  7. this.id_anterior = id;
  8.  
  9.  
  10. }
clone this paste RAW Paste Data