home *** CD-ROM | disk | FTP | other *** search
/ ftp.rsa.com / 2014.05.ftp.rsa.com.tar / ftp.rsa.com / pub / agents / RSASecurIDTokenAuto412x64.msi / Data1.cab / _2D8CEB37D1F9F1726DC2B48C8BE42AFF < prev    next >
Text File  |  2014-03-12  |  2KB  |  67 lines

  1. ∩╗┐//    WebHelp 5.10.002
  2. if (! window.gbIE4 && (window.gbNav6 || gbSafari3) && !document.childNodes[0].insertAdjacentHTML){
  3.  
  4. HTMLElement.prototype.insertAdjacentElement = function(where,parsedNode)
  5. {
  6.     switch (where){
  7.     case 'beforeBegin':
  8.         this.parentNode.insertBefore(parsedNode,this);
  9.         break;
  10.     case 'afterBegin':
  11.         this.insertBefore(parsedNode,this.firstChild);
  12.         break;
  13.     case 'beforeEnd':
  14.         this.appendChild(parsedNode);
  15.         break;
  16.     case 'afterEnd':
  17.         if (this.nextSibling){
  18.         this.parentNode.insertBefore(parsedNode,this.nextSibling);
  19.         } else {
  20.         this.parentNode.appendChild(parsedNode);
  21.         }
  22.         break;
  23.     }
  24. }
  25.  
  26. HTMLElement.prototype.insertAdjacentHTML = function(where,htmlStr){
  27.  
  28.     var r = this.ownerDocument.createRange();
  29.     r.setStartBefore(this);
  30.     var parsedHTML = r.createContextualFragment(htmlStr);
  31.     this.insertAdjacentElement(where,parsedHTML);
  32. }
  33.  
  34.  
  35. HTMLElement.prototype.insertAdjacentText = function(where,txtStr){
  36.  
  37.     var parsedText = document.createTextNode(txtStr);
  38.     this.insertAdjacentElement(where,parsedText);
  39. }
  40. }
  41.  
  42. function testScroll() {
  43.     // Initialize scrollbar cache if necessary
  44.     if (window._pageXOffset==null) {
  45.         window._pageXOffset = window.pageXOffset;
  46.         window._pageYOffset = window.pageYOffset;
  47.     }
  48.     // Expose Internet Explorer compatible object model
  49.     document.scrollTop = window.pageYOffset;
  50.     document.scrollLeft = window.pageXOffset;
  51.     window.document.scrollHeight = document.height;
  52.     window.document.scrollWidth = document.width;
  53.     window.document.clientWidth = window.innerWidth;
  54.     window.document.clientHeight = window.innerHeight;
  55.  
  56.     // If cache!=current values, call the onscroll event
  57.     if (((window.pageXOffset!=window._pageXOffset) || (window.pageYOffset!=window._pageYOffset)) && (window.onscroll)) 
  58.         window.onscroll();
  59.     // Cache new values
  60.     window._pageXOffset = window.pageXOffset;
  61.     window._pageYOffset = window.pageYOffset;
  62.     }
  63.  
  64. // Create compatibility layer for Netscape
  65. if (window.gbNav6 && !window.gbNav7) {
  66.     setInterval("testScroll()",50)
  67. }