Ignore:
Timestamp:
08/16/07 08:06:05 (17 years ago)
Author:
niltonneto
Message:

Nova versão do Instant Messenger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/js/im_var_globals.js

    r20 r55  
    1010window.onfocus = windowFocus; 
    1111window.onclick = windowFocus; 
     12window.onmousemove = awayTimer; 
    1213 
    13 window_title = document.title; 
     14var window_title = document.title; 
    1415 
     16var statusFlag = 'available'; 
     17var awayFlag = false; 
     18var _awayTimer = null; 
     19 
     20function awayTimer() 
     21{ 
     22        if ( awayFlag ) 
     23                IM.setAway(); 
     24         
     25        if(IM.im_time_) 
     26        { 
     27                if ( _awayTimer ) 
     28                        clearTimeout(_awayTimer); 
     29                _awayTimer = setTimeout("IM.setAway()", parseInt(IM.im_time_) * 60000 ); 
     30        } 
     31} 
     32awayTimer(); 
    1533function windowBlur() {focusFlag = false; document.title = window_title;} 
    1634function windowFocus() {focusFlag = true; document.title = window_title;} 
Note: See TracChangeset for help on using the changeset viewer.