rojMedlem sedan apr. 2002179 inlägg
Hmm jag får inga felmedelanden men samtidigt så skriver min kod ingenting? Någon som ser vad som är fel?
<%
response.write "<TABLE width='100%' border='0' cellspacing='0'>"
response.write "<TR height='30%'>"
response.write "<TD class='td'> </TD>"
response.write "</TR>"
response.write "</TABLE>"
response.write "<TABLE width='15%' border='0' cellspacing='0'>"
response.write "<TR>"
response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> </TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> </TD>"
response.write "<TR>"
response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "<TR>"
response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''> "
response.write "</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''> "
response.write "</TD>"
response.write "</TR>"
response.write "</TABLE>"
response.write "<b>hej</b>"
%>
erkaMedlem sedan dec. 19994 597 inlägg
Om du visar källa, hur ser koden ut då ?
yazMedlem sedan maj 2002880 inlägg
hmm, kan det bero på enkel-fnuttarna som är nästlade i dina styles?
ett tips är annars att strunta i response.write helt o hållet. gör så här istället:
1. skriv din asp-kod. stäng asp-tag
2. skriv ren html
3. öppna asp-tag och fortsätt med asp-kod, variabler o allt möjligt
4. repetera när du vill lägga in större kodstycken i html.
rojMedlem sedan apr. 2002179 inlägg
Typ så här
<TABLE width='100%' border='0' cellspacing='0'><TR height='30%'><TD class='td'> </TD></TR></TABLE><b>hej</b>
rojMedlem sedan apr. 2002179 inlägg
Okej nu funkar det men inte med mitt stylesheet.. Går det inte att ha det nu då eller?
PalleMedlem sedan apr. 20002 716 inlägg
Testa denna: *phu* ;)
[RED]<%
Response.Write ""&_
"<TABLE width=""100%"" border=""0"" cellspacing=""0"">"& vbcrlf &_
"<TR height=""30%"">"& vbcrlf &_
"<TD class=""td""> </TD>"& vbcrlf &_
"</TR>"& vbcrlf &_
"</TABLE>"& vbcrlf & vbcrlf &_
"<TABLE width=""15%"" border=""0"" cellspacing=""0"">"& vbcrlf &_
"<TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';""> </TD>"& vbcrlf &_
"</TR><TR>"& vbcrlf &_
"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';""> </TD>"& vbcrlf &_
"</TR>"& vbcrlf &_
"</TABLE>"& vbcrlf &_
"<b>hej</b>"
%>[/RED]
rojMedlem sedan apr. 2002179 inlägg
Tack Palle funkar ju toppen.. :)
PalleMedlem sedan apr. 20002 716 inlägg
Gutt mos!
Replace-funktionen i texteditorn kan rädda liv.. ;)
rojMedlem sedan apr. 2002179 inlägg
Wiklund!!Medlem sedan juli 2002556 inlägg
Va fan har Word med saken att göra? :p
Denniz PoPMedlem sedan aug. 2002206 inlägg
Han kanske använde det för att söka och ersätta? ;)