Netscape 6, Part VI: Object-Oriented DOCJSLIB 1.2: docjslibIE4SubClass.js - Doc JavaScript | WebReference

Netscape 6, Part VI: Object-Oriented DOCJSLIB 1.2: docjslibIE4SubClass.js - Doc JavaScript


Netscape 6, Part VI: Object-Oriented DOCJSLIB 1.2

docjslibIE4SubClass.js

<!--
function docjslibIE4SubClass() {
  this.inheritFrom = docjslibSuperClass;
  this.inheritFrom();
  
  this.getSrc = getSrcMethod;
  this.setSrc = setSrcMethod;
  function getSrcMethod(id) {
    return eval("document.all." + id + "img.src");
  }
  
  function setSrcMethod(id, url) {
    eval("document.all." + id + "img").src = url;
  }
}
// -->

Next: Browser-dependent subclass for IE5

https://www.internet.com


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: February 12, 2001
Revised: February 12, 2001

URL: https://www.webreference.com/js/column77/14.html