21. april 2004 - 10:56Der er
19 kommentarer og 1 løsning
hver anden linie andet bgcolor
her er koden med bgcolor, men det kommer med dette fejl:
Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '0' /skiper/wwwroot/test_radio.asp, line 70
<% do until rs.EOF %>
<tr> <% for each x in rs.fields %> <td colspan="8"><table width="100%" border="0"> <% x = 0
Do until rs.eof If x = 1 then Bgcolor = "bgcolor=#ffffcc" Else Bgcolor = "bgcolor=#fffffc" End If %> <tr <% Response.write bgcolor %> > <% x = x + 1 If x > 1 then x = 0 End If
if bgskift mod 2 = 0 then color="bgcolor='#eeeeee'" else color="bgcolor='#ffffff'" end if %> <table> <tr> <td width="200" <%=color%>><%=RS("tabelnavn") %></td> </tr> <% RS.MoveNext loop
<tr> <% for each x in rs.fields %> <td colspan="8"><table width="100%" border="0"> <% x = 0
Do until rs.eof If x mod 2 = 0 then Bgcolor = "bgcolor=#ffffcc" Else Bgcolor = "bgcolor=#fffffc" End If %> <tr <% Response.write bgcolor %> > <% x = x + 1 Rs.movenext Loop %>
nu laver den fejl i: Error Type: ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /skiper/wwwroot/test_radio.asp, line 92
<% next rs.MoveNext <------------------ %> <% loop %> </table>
Prøv og se om du ikke kan bruge det her til noget (det virker nemlig):
<% antal = 10 For t = 1 to antal if t MOD 2 then response.write("<font color='#000066'><strong>Blå baggrund</strong></font><br>") else response.write("<font color='#FF0000'><strong>Rød baggrund</strong></font><br>") end if next %>
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.