home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 June / PCpro_2006_06.ISO / files / mstools / journalviewer_setup.exe / Microsoft Windows Journal Viewer.msi / Data1.cab / JntView.chm / animategif.js next >
Encoding:
Text File  |  2002-10-31  |  801 b   |  35 lines

  1. function changeImages(sourceLoc, newImage) 
  2. {
  3.    if (document.images || (newImage.search(/^\w{1,32}\.(gif|jpg)$/i) != -1))
  4.    {
  5.       
  6.       var tempPath = sourceLoc.src;
  7.       var lastSlash = tempPath.lastIndexOf("/");
  8.       var tempPath = tempPath.substr(0,lastSlash + 1);
  9.  
  10.       sourceLoc.src = tempPath + newImage;
  11.              
  12.    }
  13. }
  14.  
  15. function openHSC(strURL)
  16. {
  17.   var h_hsc;
  18.   var intTop, intLeft;
  19.   intTop = window.screen.height;
  20.   intLeft = window.screen.width;
  21.   
  22.   h_hsc = window.open(strURL,"win_hsc","height=100,width=100,top=" + intTop +",left=" + intLeft + "","");
  23.   h_hsc.close();
  24.   
  25. }
  26.  
  27. function toCold(imgID)
  28. {
  29.   imgID.src = "ms-its:ntshared.chm::/shortcutCold.gif";
  30. }
  31.  
  32. function toHot(imgId)
  33. {
  34.   imgID.src = "ms-its:ntshared.chm::/shortcutHot.gif";
  35. }