HTML Insert

admin

Administrator
Staff member
How do i insert HTML Code into a seprate file using a javascript.

<STYLE TYPE="text/css">
INSERT CODE HERE
</STYLE>

Here is the code i want to insert:

"BODY {\n BACKGROUND COLOR: "+ frmCSS.bgcol.value +"; \n BACKGROUND-IMAGE: "+ frmCSS.bgimg.value +";\n BACKGROUND-ATTACHMENT: fixed; \n COLOR: "+ frmCSS.txtcolor.value +";\n FONT-WEIGHT: "+ frmCSS.txtweight.value +";\n FONT-STYLE: "+ frmCSS.txtstyle.value +";\n FONT-FAMILY: \""+ frmCSS.txtfont.value +"\"; \n TEXT-ALIGN: "+ frmCSS.txtalign.value +" } \n\nH1 {\n COLOR: "+ frmCSS.h1color.value +"; \n FONT-WEIGHT: "+ frmCSS.h1weight.value +";\n FONT-STYLE: "+ frmCSS.h1style.value +";\n FONT-FAMILY: \""+ frmCSS.h1font.value +"\"; \n TEXT-ALIGN: "+ frmCSS.h1align.value +" }\n\nH2 {\n COLOR: "+ frmCSS.h2color.value +"; \n FONT-WEIGHT: "+ frmCSS.h2weight.value +";\n FONT-STYLE: "+ frmCSS.h2style.value +";\n FONT-FAMILY: \""+ frmCSS.h2font.value +"\"; \n TEXT-ALIGN: "+ frmCSS.h2align.value +" }\n\nA:LINK {\n COLOR: "+ frmCSS.ualinkcol.value +";\n FONT-FAMILY: "+ frmCSS.ualinkfont.value +"} \n\nA:ACTIVE {\n COLOR: "+ frmCSS.alinkcol.value +";\n FONT-FAMILY: \""+ frmCSS.alinkfont.value +"\"} \n\nA:VISITED {\n COLOR: "+ frmCSS.vlinkcol.value +";\n FONT-FAMILY: \""+ frmCSS.vlinkfont.value +"\"}"
 
Back
Top