home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / vbasic / webx_setup.exe / %MAINDIR% / Manuals / HTML Manual / TrueHelp.js < prev    next >
Encoding:
Text File  |  2000-06-18  |  839 b   |  43 lines

  1. function thpopup(url)
  2. {
  3. window.open(url, '_thpopup', 'scrollbars=0,resizable=1,toolbar=0,directories=0,status=0,location=0,menubar=0,height=300,width=360');
  4. return false;
  5. }
  6.  
  7. function thwindow(url, name)
  8. {
  9. if (name != 'main')
  10.     {
  11.     window.open(url, name, 'scrollbars=1,resizable=1,toolbar=0,directories=0,status=0,location=0,menubar=0,height=300,width=360');
  12.     return false;
  13.     }
  14.  
  15. return true;
  16. }
  17.  
  18. function thcancel(msg, url, line)
  19. {
  20. return true;
  21. }
  22.  
  23. function thload()
  24. {
  25. window.onerror = thcancel;
  26.  
  27. if (window.name == '_thpopup')
  28.     {
  29.     var major = parseInt(navigator.appVersion);
  30.  
  31.     if (major >= 4)
  32.         {
  33.         var agent = navigator.userAgent.toLowerCase();
  34.  
  35.         if (agent.indexOf("msie") != -1)
  36.             document.all.item("ienav").style.display = "none";
  37.  
  38.         else
  39.             document.layers['nsnav'].visibility = 'hide';
  40.         }
  41.     }
  42. }
  43.