home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2003 June / PCpro_2003_06.ISO / offline / looprecorder / LoopRecorderPro203.exe / LoopRecP.chm / master.js < prev    next >
Encoding:
JavaScript  |  2002-09-14  |  2.0 KB  |  66 lines

  1. //This is the master JavaScript file for the HTML Help documentation.
  2.  
  3.  
  4. function addVer(myLink){
  5.     var myHref = myLink.href;
  6.     var myVersion = '2.03';
  7.     if(myHref.indexOf('?')>=0)return true;
  8.  
  9.     myHref += (myLink.href.indexOf('mailto:') >= 0)? ('?Subject=' + escape('Question about ')) : '?Version=';
  10.     myHref += escape((location.href.toLowerCase().indexOf('looprecp.chm') >= 0) ? 'Loop Recorder Pro ' : 'Loop Recorder ') + myVersion;
  11.     if(myLink.target == '_blank'){
  12.         window.open(myHref)
  13.     } else {
  14.         location.href = myHref;
  15.     }
  16.     return false;
  17. }
  18.  
  19.  
  20. /* These functions (doSection, noSection) are used to make sidebars appear and disappear.
  21. */
  22.  
  23. function doSection (secNum){
  24.     //display the section if it's not displayed; hide it if it is displayed
  25.     if (secNum.style.display=="none"){secNum.style.display=""}
  26.     else{secNum.style.display="none"}
  27. }
  28.  
  29. function noSection (secNum){
  30.     //remove the section when user clicks in the opened DIV
  31.     if (secNum.style.display==""){secNum.style.display="none"}
  32. }
  33.  
  34. function showSection (secNum){
  35.     //remove the section when user clicks in the opened DIV
  36.     if (secNum.style.display=="none"){secNum.style.display=""}
  37. }
  38.  
  39. function doExpand(paraNum,arrowNum,on){
  40.     //expand the paragraph and rotate the arrow; collapse and rotate it back
  41.     if ((paraNum.style.display=="none") || on){paraNum.style.display="";arrowNum.src="arrowdn.gif"}
  42.     else{paraNum.style.display="none";arrowNum.src="arrowrt.gif"}
  43. }
  44.  
  45. //These functions control the behavior of the homepage go arrows.
  46. function liteGo(spNo){
  47.     spNo.style.background="#cc0033";
  48.     spNo.style.color="#FFFFFF";
  49. }
  50.  
  51. function liteOff(spNo){
  52.     spNo.style.background="transparent";
  53.     spNo.style.color="#000000";
  54. }
  55.  
  56. //Insert new functions here. Please use unique identifiers and comment liberally.
  57.  
  58. function showHashSec(){
  59.     var myHash, myAr, myExp;
  60.     if(myHash = window.location.hash.substring(1))
  61.         if(
  62.             (myExp=document.all['exp_' + myHash]) &&
  63.             (myAr = document.all['ar_' + myHash])
  64.         )doExpand(myExp, myAr, true)
  65. }
  66.