home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Komunik / sambar / sambar51p.exe / sysuser / webmail / actions.stm next >
Encoding:
Text File  |  2002-02-19  |  5.1 KB  |  99 lines

  1. <SCRIPT language="JavaScript">
  2. <!--
  3. //index is the location of the image in the document when accesed by images[] array
  4. function GetImage(index,img_name) {
  5.   document.images[index].src=img_name
  6. }
  7.  
  8.   var pics;
  9.   pics = new Array();
  10.   var objCount = 0;
  11.   
  12. function preload(name, first, second) {
  13.  pics[objCount] = new Array(3);
  14.  pics[objCount] [0] = new Image();
  15.  pics[objCount] [0].src = first;
  16.  pics[objCount] [1] = new Image();
  17.  pics[objCount] [1].src = second;
  18.  pics[objCount] [2] = name;
  19.  objCount++;
  20.   }
  21.  
  22. function on(name) {
  23.  for (i = 0; i < objCount; i++) {
  24.  if (document.images[pics[i][2]] !=null)
  25.  if (name != pics[i][2]) {
  26.  document.images[pics[i][2]].src = pics[i][0].src;
  27.  } else {
  28.  document.images[pics[i][2]].src = pics[i][1].src;
  29.  }
  30.  }
  31.  }
  32.  
  33. function off() {
  34.  for (i = 0; i < objCount; i++) {
  35.  if (document.images[pics[i][2]] !=null)
  36.  document.images[pics[i][2]].src = pics[i][0].src;
  37.  }
  38.  }
  39.  
  40. preload("inbox", "<RCShome>/images/inbox.gif", "<RCShome>/images/inbox_mo.gif");
  41. preload("new", "<RCShome>/images/new.gif", "<RCShome>/images/new_mo.gif");
  42. preload("folder", "<RCShome>/images/folder.gif", "<RCShome>/images/folder_mo.gif");
  43. preload("defaults", "<RCShome>/images/defaults.gif", "<RCShome>/images/defaults_mo.gif");
  44. preload("address", "<RCShome>/images/address.gif", "<RCShome>/images/address_mo.gif");
  45. preload("search", "<RCShome>/images/search.gif", "<RCShome>/images/search_mo.gif");
  46. preload("passwd", "<RCShome>/images/passwd.gif", "<RCShome>/images/passwd_mo.gif");
  47. preload("logout", "<RCShome>/images/logout.gif", "<RCShome>/images/logout_mo.gif");
  48. preload("check", "<RCShome>/images/check.gif", "<RCShome>/images/check_mo.gif");
  49. preload("uncheck", "<RCShome>/images/uncheck.gif", "<RCShome>/images/uncheck_mo.gif");
  50. preload("delete", "<RCShome>/images/delete.gif", "<RCShome>/images/delete_mo.gif");
  51. preload("moveto", "<RCShome>/images/moveto.gif", "<RCShome>/images/moveto_mo.gif");
  52. preload("goto", "<RCShome>/images/goto.gif", "<RCShome>/images/goto_mo.gif");
  53.  
  54. function searchPop() {
  55.     mailspop = window.open('<RCShome>/mailspop.stm','popupWindow','width=350,height=200');
  56. }
  57.  
  58. //-->
  59. </script>
  60.  
  61. <TABLE width="100%" border=0 cellpadding=2 cellspacing=0>
  62. <TR align=left>
  63. <td valign=top><a href="<RCShome>/check.stm?RCSfolder=inbox" onMouseOver="on('inbox')" onMouseOut="off()"><img src="<RCShome>/images/inbox.gif" alt="Check Inbox" name="inbox" border="0" width=79 height=26></a>
  64. <td valign=top><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  65. <td valign=top><a href="<RCShome>/mailto.stm?start=<RC$start>" onMouseOver="on('new')" onMouseOut="off()"><img src="<RCShome>/images/new.gif" alt="Compose New Message" name="new" border="0" width=62 height=26></a></td>
  66. <td valign=top><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  67. <td valign=top><a href="<RCShome>/folders.stm" onMouseOver="on('folder')" onMouseOut="off()"><img src="<RCShome>/images/folder.gif" alt="Manage Folders" name="folder"  border="0" width=26 height=26></a>
  68. <td valign=top><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  69. <td valign=top><a href="<RCShome>/defaults.stm" onMouseOver="on('defaults')" onMouseOut="off()"><img src="<RCShome>/images/defaults.gif" alt="Advanced Settings" name="defaults"  border="0" width=41 height=26></a>
  70. <td valign=top><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  71. <td valign=top><a href="<RCShome>/addrbook.stm" onMouseOver="on('address')" onMouseOut="off()"><img src="<RCShome>/images/address.gif" alt="Address Book" name="address" border="0" width=26 height=26></a>
  72. <td valign=top><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  73.  
  74. <td class="navscore" nowrap>
  75. <RCif RC@mailinfo(numfolders) > 1>
  76.     <form name=openfolder method=post action=<RCShome>/check.stm>
  77.     <SELECT name=RCSfolder onChange="javascript:document.openfolder.submit();">
  78.     <OPTION>Open Folder
  79.     <RCXmailfolders folder=RCSfolder home=RCShome type=options>
  80.     </select>
  81.     </form>
  82. <RCelse>
  83.     <font size=2><b>NO FOLDERS</b></font>
  84. <RCendif>
  85. </td>
  86. <td valign=top><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  87. <td valign=top><A HREF="javascript:searchPop()" onMouseOver="on('search')" onMouseOut="off()"><img src="<RCShome>/images/search.gif" alt="Search Messages" name="search" border="0" width=87 height=26></A></td>
  88. <RCif RCSdesktop ! true>
  89. <td valign=top><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  90. <td valign=top><a href="<RCShome>/passwd.stm" onMouseOver="on('passwd')" onMouseOut="off()"><img src="<RCShome>/images/passwd.gif" alt="Change Password" name="passwd"  border="0" width=40 height=26></a></td>
  91. <td valign=top><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  92. <td valign=top><a href="/session/logout?RCredirect=/" onMouseOver="on('logout')" onMouseOut="off()"><img src="<RCShome>/images/logout.gif" alt="Logoff and return to <RCEvhost>" name="logout" border="0" width=85 height=26></a>
  93. </td>
  94. <RCendif>
  95. <td width="100%"> </td>
  96. </TR>
  97. </TABLE>
  98.     
  99.