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