krot

Js скрытие текста

Oct 29th, 2015
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var bH=1;document.body.onclick= function(e){
  2.    e=window.event? event.srcElement: e.target;
  3.    if(e.className && e.className.indexOf('csc-firstHeader')!=-1){if(bH){document.getElementById('hidden1').style.display='block';bH=0;}else {document.getElementById('hidden1').style.display='none';bH=1;}
  4. }
  5. }
RAW Paste Data