rdsedmundo

chat.js

Nov 15th, 2011
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('[name=chat-commands]').click(function(){
  2.     $('[name=chat-att]').click();
  3.        $('[name=chat-box]').append('<p align=\'left\'>Comandos: <?=$commands?></p>');
  4. });
  5. $('[name=chat-att]').click(function(){
  6.   if(typeof qaz === null){
  7.       $('[name=chat-att]').html('<span class="ui-button-text">Desativar atualização</span>');
  8.       return qaz = setInterval("chat.atualiza()",2222);
  9.   } else if(typeof qaz === 'object' || typeof qaz === 'number'){
  10.   try{clearInterval(qaz);}catch(err){};
  11.    $('[name=chat-att]').html('<span class="ui-button-text">Ativar atualização</span>');
  12.   return qaz = null;
  13.   } else { return [Date.now()] }
  14. });
  15.  
Advertisement
Add Comment
Please, Sign In to add comment