Changeset 55 for trunk/instant_messenger/js/im_var_globals.js
- Timestamp:
- 08/16/07 08:06:05 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/js/im_var_globals.js
r20 r55 10 10 window.onfocus = windowFocus; 11 11 window.onclick = windowFocus; 12 window.onmousemove = awayTimer; 12 13 13 window_title = document.title;14 var window_title = document.title; 14 15 16 var statusFlag = 'available'; 17 var awayFlag = false; 18 var _awayTimer = null; 19 20 function 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 } 32 awayTimer(); 15 33 function windowBlur() {focusFlag = false; document.title = window_title;} 16 34 function windowFocus() {focusFlag = true; document.title = window_title;}
Note: See TracChangeset
for help on using the changeset viewer.