/*
DynAPI Distribution
HTMLComponent (HC) Class - See also quickref.htmlcomponent.html
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
Requires: DynElement
*/
function HTMLComponent(css){
this.DynElement = DynElement;
this.DynElement();
this._class = css||'';
this._defEvtResponse = false; // default event response type;
this.HC = HTMLComponent;
this.FSO = null;
};
HTMLComponent.FSO = null;
HTMLComponent.pixel = dynapi.functions.getImage(dynapi.library.path+'gui/images/pixel.gif',1,1);
HTMLComponent._lyrSetLocation = function(x,y){
if(dynapi.ua.ns4) {
this.left=x;
this.top=y;
}
else if(dynapi.ua.ie) {
this.style.pixelLeft=x;
this.style.pixelTop=y;
}
else {
this.style.left=x+'px';
this.style.top=y+'px';
}
};
HTMLComponent._lyrSetVisible = function(b){
if(this._visible!=b) {
if(dynapi.ua.ns4) this.visibility = b? "inherit" : "hide";
else this.style.visibility = b? "inherit" : "hidden";
}
};
HTMLComponent.buildLayer = function(id,attribs,html) {
var t;
if(dynapi.ua.ns4) t='\n
' + text +' | ' +'