home *** CD-ROM | disk | FTP | other *** search
/ Exame Informatica 137 / Exame Informatica 137.iso / Programas / PDFTransformer2.0 / ABBYY PDF Transformer 2.0 / PDFTransformer17.chm / master.js < prev    next >
Encoding:
JavaScript  |  2006-08-25  |  2.3 KB  |  64 lines

  1. //This is the master JavaScript file for the HTML Help documentation.
  2.  
  3. /* These functions (doSection, noSection) are used to make sidebars appear and disappear.
  4. */
  5.  
  6. function doSection (secNum){
  7.     //display the section if it's not displayed; hide it if it is displayed
  8.     if (secNum.style.display=="none"){secNum.style.display=""}
  9.     else{secNum.style.display="none"}
  10. }
  11.  
  12. function noSection (secNum){
  13.     //remove the section when user clicks in the opened DIV
  14.     if (secNum.style.display==""){secNum.style.display="none"}
  15. }
  16.  
  17. function doExpand(paraNum,arrowNum){
  18.     //expand the paragraph and rotate the arrow; collapse and rotate it back
  19.     if (paraNum.style.display=="none"){paraNum.style.display="";arrowNum.src="arrowdn.gif"}
  20.     else{paraNum.style.display="none";arrowNum.src="arrowrt.gif"}
  21. }
  22.  
  23. //These functions control the behavior of the homepage go arrows.
  24. function liteGo(spNo){
  25.     spNo.style.background="#cc0033";
  26.     spNo.style.color="#FFFFFF";
  27. }
  28.  
  29. function liteOff(spNo){
  30.     spNo.style.background="transparent";
  31.     spNo.style.color="#000000";
  32. }
  33.  
  34. //*** callPopup ***************************************************************************************
  35. // creates an object from an <A> tag HREF, the object inserts a winhelp popup
  36. // called by: <A ID="wPopup" HREF="HELP=@@file_name.hlp@@ TOPIC=@@topic#@@">@@Popup text@@</A>
  37.  
  38. function callPopup(eventSrc) {
  39. var e= eventSrc;
  40. var eH= unescape(e.href);
  41. var eH_= eH.toLowerCase();
  42.        event.returnValue = false;
  43.                                                                
  44.   var iTOPIC      = eH_.lastIndexOf("topic=");
  45.         if (iTOPIC==-1) return;
  46.         sParamTOPIC = eH.substring((iTOPIC+6),eH.length);          // extracts the topic for item2
  47.         
  48.   var iHELP       = eH_.lastIndexOf("help=");
  49.         if (iHELP==-1) return;
  50.         sParamHELP = eH.substring(iHELP+5,iTOPIC);            // extracts the help file for item1
  51.         
  52.         if (document.hhPopup) document.hhPopup.outerHTML = "";    // if hhPopup object exists, clears it
  53.  
  54.  
  55.  var  h= "<object id='hhPopup'"+ sActX_HH + "STYLE='display:none'><param name='Command' value='WinHelp, Popup'>";
  56.       h= h + "<param name='Item1' value='" + sParamHELP + "'><param name='Item2' value='" + sParamTOPIC + "'></object>";
  57.         
  58.         document.body.insertAdjacentHTML("beforeEnd", h);     
  59.         document.hhPopup.hhclick();
  60. }
  61.  
  62.  
  63. //Insert new functions here. Please use unique identifiers and comment liberally.
  64.