/********************************************************************* === Cross Browser === * Element [ Element.js ] * updated 2001/05/28 mail : peace@skipup.com home : http://www.skipup.com/~peace/ *********************************************************************/ var Elements ; // public class Element extends Object function Element(){ // private boolean var exist = true ; // private object var D = document ; // private string this.name ; // public LayerObject this.layer ; // public StyleObject this.style ; /****************************** CONSTRUCTOR - BEGIN ******************************/ switch( arguments.length ){ case 0 : default : { // create new Layer this.name = "_js_layer_"+Element.$user_create_element_number++ ; if( !Client.NN ){ var s = "position:absolute;left:0px;top:0px;z-index:1;height:0px;width:0px;visibility:hidden;" ; if( Client.MZ ){ this.layer = D.createElement( "div" ); this.layer.id = this.name ; this.layer.setAttribute( "style" , s ); D.body.appendChild( this.layer ); }else{ D.body.insertAdjacentHTML( "BeforeEnd" , "
<\/div>"+(Client.MAC?' ':'') ); this.layer = D.all[ this.name ]; } this.style = this.layer.style ; }else{ this.layer = new Layer(0); this.style = this.layer ; } break ; } case 1 : { // string || Layer || Element var o = arguments[0]; if( typeof o == "string" ){ // string this.name = o ; this.layer = getLayer( this.name ); if( exist ) this.style = !Client.NN ? this.layer.style : this.layer ; }else if( typeof o == "object" ){ // Layer || Element if( o.constructor == Element ){ // Element this.name = o.name ; this.layer = o.layer ; this.style = o.style ; }else{ // Layer this.layer = eval(o); this.name = !Client.NN ? this.layer.id : this.layer.name ; this.style = !Client.NN ? this.layer.style : this.layer ; } }else{ Exception(o); } break ; } } /****************************** CONSTRUCTOR - E N D ******************************/ if( Client.NN ){ function searchLayer_Netscape( l , id ){ for(var i=0;i<\/iframe>" ; }else{ this.layer.src = p ; } }; // public string EP.toString = function(){ return "Element : "+this.name ; }; /****************************** SET_MEMBER - E N D ******************************/ } setBasicMember__Element__();