home *** CD-ROM | disk | FTP | other *** search
- /*
- * Objeto: jsHTML
- *
- * Javascript v1.0 - Compatibilidad: IE4 y NS4
- * Programado por LAGOR [15/02/1999]
- *
- * HOBBYPRESS S.A.
- * Todos los derechos de esta fuente estßn reservados.
- */
-
- function jsHTML()
- {
- this.fontFace='Arial';
- this.fontSize=0;
- this.fontColor='';
- this.FONT=jsHTML_Font;
- this._FONT='</FONT>';
- this.TABLE=jsHTML_Table;
- this._TABLE='</TABLE>';
- this.IMG=jsHTML_Img;
- this.A=jsHTML_A;
- }
-
- function jsHTML_Font(size,color)
- {
- if (!size) size=this.fontSize;
- if (!color) color=this.fontColor;
- return '<FONT FACE="'+this.fontFace+'"'+
- (size!=0? ' SIZE="'+size+'"':'')+
- (color!=''? ' COLOR="'+color+'"':'')+
- '>';
- }
-
- function jsHTML_Table(b,cs,cp,wd,bk)
- {
- return '<TABLE BORDER="'+b+'"'+
- ' CELLSPACING="'+cs+'"'+
- ' CELLPADDING="'+cp+'"'+
- (wd && wd>0? ' WIDTH="'+wd+'"':'')+
- (bk? ' BACKGROUND="'+bk+'"':'')+
- '>';
- }
-
- function jsHTML_Img(src,wd,hg)
- {
- return '<IMG SRC="'+src+'" BORDER=0'+
- (wd && wd>0? ' WIDTH="'+wd+'"':'')+
- (hg && hg>0? ' HEIGHT="'+hg+'"':'')+
- '>';
- }
-
- function jsHTML_A(target,link,data)
- {
- return '<A HREF="'+link+'"'+
- (target? ' TARGET="'+target+'"':'')+
- '>'+
- data+
- '</A>';
- }
-