Jeg skal indsætte følgende kode med javascript, men css
formateringen virker ikke!
Er der nogen der kan hjælpe?
Kode start:
<script>
info="<STYLE TYPE="text/css">" +
"" +
"body {" +
" font-family : Arial, sans-serif;" +
" text-align:center;" +
" color: #000000;" +
" background-color : #ffffff;" +
" }" +
"" +
"a {" +
" color : #377785;" +
" background-color : transparent;" +
" /*background-color : #ffffff;*/" +
" text-decoration : none;" +
" font-weight : normal;" +
" font-style : normal; " +
" " +
" " +
"}" +
"" +
"" +
"" +
".skrivboks {" +
" margin-left: auto;" +
" margin-right: auto;" +
" position: relative;" +
" left:0px;" +
" top:0px;" +
" width : 400px;" +
" text-align:center;" +
" font-weight : normal;" +
" color : #000000;" +
" background-color : #ffffff;" +
" padding:5px;" +
" border-top : solid 1px #000000;" +
" border-bottom : solid 1px #000000;" +
" border-left : solid 1px #000000;" +
" border-right : solid 1px #000000;" +
"" +
"}" +
"" +
"" +
"" +
"" +
"" +
".header {" +
" margin-left: auto;" +
" margin-right: auto;" +
" position: relative;" +
" left:0px;" +
" top:0px;" +
" font-size : 12px;" +
" width : 400px;" +
" text-align : left;" +
" font-weight : normal;" +
" color : #000000;" +
" background-color : #ffffff;" +
" padding:5px;" +
" border-top : solid 1px #000000;" +
" border-left : solid 1px #000000;" +
" border-right : solid 1px #000000;" +
"} " +
"" +
"" +
".besked {" +
" margin-left: auto;" +
" margin-right: auto;" +
" position: relative;" +
" left:0px;" +
" top:0px;" +
" width : 400px;" +
" font-size : 12px;" +
" text-align : left;" +
" font-weight : normal;" +
" color: #000000;" +
" background-color : #ffffff;" +
" padding:5px;" +
" border-top : solid 1px #000000;" +
" border-bottom : solid 1px #000000;" +
" " +
" border-left : solid 1px #000000;" +
" border-right : solid 1px #000000;" +
" " +
"}" +
"" +
".beskedukommentar {" +
" margin-left: auto;" +
" margin-right: auto;" +
" position: relative;" +
" left:0px;" +
" top:0px;" +
" width : 400px;" +
" font-size : 12px;" +
" text-align : left;" +
" font-weight : normal;" +
" color: #000000;" +
" background-color : #ffffff;" +
" padding:5px;" +
" border-top : solid 1px #000000;" +
" border-bottom : solid 1px #000000;" +
" border-left : solid 1px #000000;" +
" border-right : solid 1px #000000;" +
" " +
"}" +
"" +
".kommentar {" +
" margin-left: auto;" +
" margin-right: auto;" +
" font-size : 12px;" +
" text-align : left;" +
" font-weight : normal;" +
" position: relative;" +
" left:0px;" +
" top:0px;" +
" width : 400px;" +
" color : #000000;" +
" background-color : #ffffff;" +
" padding:5px;" +
" " +
" border-top : none 0px #000000;" +
" border-left : solid 1px #000000;" +
" border-right : solid 1px #000000;" +
" border-bottom : solid 1px #000000;" +
" " +
"}" +
"" +
".mellemrum {" +
" margin-left: auto;" +
" margin-right: auto;" +
" color: #000001;" +
" background-color : transparent;" +
" text-align : left;" +
" position: relative;" +
" left:0px;" +
" top:0px;" +
" width : 400px;" +
" height:10px;" +
" padding:15px;" +
" }" +
"" +
".bund {" +
" font-size : 10px;" +
" margin-left: auto;" +
" margin-right: auto;" +
" color : #000000;" +
" background-color : #ffffff;" +
" text-align:center;" +
" position: relative;" +
" left:0px;" +
" top:0px;" +
" width : 400px;" +
" height:10px;" +
" padding:5px;" +
" }" +
"" +
"</STYLE>" +
"</HEAD>" +
"" +
"<BODY >" +
"" +
"" +
"" +
"" +
"" +
"" +
"<div class="mellemrum"></DIV>" +
"" +
"<div class="header"><b>Navn: </b>Jakob<br><b>Email:
</b><a
href="mailto:pcnoerd@hotmail.com">pcnoerd@hotmail.com</a>
<br><b>Dato: </b>søndag d. 02 februar 2003 kl.
16:11:43<br></div><div class="beskedukommentar">Tester
lige...<br /><br /><IMG SRC="smil/default01.gif"
BORDER="0" WIDTH="15" HEIGHT="15"
ALIGN="bottom" ALT=""></DIV><div
class="mellemrum"></DIV><div
class="header"><b>Navn: </b>Webmasteren<br><b>Email:
</b><a
href="mailto:webmaster@newbie.dk">webmaster@newbie.dk</a>
<br><b>Website: </b><a href="
http://www.newbie.dk"
target="_blank">
www.newbie.dk
class="beskedukommentar">Tillykke med din nye gæstebog
... <IMG SRC="smil/default01.gif" BORDER="0"
WIDTH="15" HEIGHT="15" ALIGN="bottom"
ALT=""> </DIV><div class="mellemrum"></DIV>" +
"<div class="skrivboks">" +
"" +
" <FORM METHOD="POST"
ACTION="
http://www.newbie.dk/webservices/guestbook/inc/writeb
ook.php?id=pcnoerd9ae82ff5172c207be5186da377e5010c">" +
" <INPUT TYPE=hidden NAME=skrivhilsen VALUE=1>" +
" <TABLE BORDER="0">" +
" <tr><td>Navn:</td><td><input type="text"
size="20" name="input1"
/></td></tr><tr><td>Email:</td><td><input type="text"
size="20" name="input2"
/></td></tr><tr><td>Website:</td><td><input type="text"
size="20" name="input3"
/></td></tr><tr><td>Icq:</td><td><input type="text"
size="20" name="input4" /></td></tr>" +
"</TABLE>" +
"" +
"" +
" <TEXTAREA NAME=hilsen COLS=25 ROWS=7></TEXTAREA><BR>" +
" <INPUT TYPE=submit VALUE=Send hilsen"><BR>" +
" </FORM> " +
"</DIV>" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"<div class="bund">Opdateret d. 28.01.2003<br />© Michael
Gandrup Vendelbo<br /> " +
"<a href="
http://www.newbie.dk">Leveret at newbie.dk<br
/> stedet alle kan forstå</a>" +
"</div><br/><br/>" +
""
document.write(info)
</script>
--
Danmarks største specialiserede IT jobdatabase
- Udelukkende med IT- og internetrelaterede jobs
- Opret en profil og lad drømmejobbet finde dig
KLIK HER! =>
http://www.html.dk/job