home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIPCD200305.iso / super / altn / md_en.exe / LISTITEMS.HTC < prev    next >
Encoding:
Extensible Markup Language  |  2003-01-09  |  708 b   |  21 lines

  1. <?XML version="1.0"?>
  2. <PUBLIC:COMPONENT>
  3. <public:attach event="onclick" onevent="smartSingle()"></public:attach>
  4. <public:attach event="ondblclick" onevent="smartDouble()"></public:attach>
  5. <SCRIPT>
  6. var timeoutID;
  7. var isDouble = false;
  8. function smartSingle(){
  9.     clearTimeout(this.timeoutID);
  10.     if(!this.isDouble){timeoutID = setTimeout("CurrentMessage('"+ this.number +"')",300);}
  11.     this.isDouble = false;
  12. }
  13.  
  14. function smartDouble(){
  15.     this.isDouble = true;
  16.     CurrentMessage(this.number,'double');
  17.     window.openWin(window.wcLink+'&View=Message&External=Yes&Number=' + this.number, 'MessageWindow' + this.number, 780, 500, 'yes');
  18.     window.document.selection.empty();
  19. }
  20. </SCRIPT>
  21. </PUBLIC:COMPONENT>