R roj Medlem sedan apr. 2002 179 inlägg Frågan 30 jan. 2003 10:08 #1 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>"
%>
E erka Medlem sedan dec. 1999 6 522 inlägg Om du visar källa, hur ser koden ut då ?
Y yaz Medlem sedan maj 2002 1 028 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.
R roj Medlem sedan apr. 2002 179 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>
R roj Medlem sedan apr. 2002 179 inlägg Okej nu funkar det men inte med mitt stylesheet.. Går det inte att ha det nu då eller?
Palle Medlem sedan apr. 2000 3 174 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]
R roj Medlem sedan apr. 2002 179 inlägg Tack Palle funkar ju toppen.. :)
Palle Medlem sedan apr. 2000 3 174 inlägg Gutt mos!
Replace-funktionen i texteditorn kan rädda liv.. ;)
Va fan har Word med saken att göra? :p
Han kanske använde det för att söka och ersätta? ;)