Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    10

    Unanswered: create dynamic html table

    code :

    <table>
    <tr>
    <%for i=0 to 10%><td>my test</td>
    <%next%>
    </tr>
    </table>

    now,i want when i<7,the 1st row auto change 2nd row;

    example:

    my test my test my test my test my test my test my test

    my test my test my test my test

  2. #2
    Join Date
    Jan 2004
    Location
    california
    Posts
    6

    Thumbs up Re: create dynamic html table

    Hi here the solutions.

    best of luck.

    <table>
    closeme=false
    <%for i=0 to 10%>
    if i=7 then
    Response.write "<tr>"
    closeme=true
    end if
    <td>my test</td>
    if closeme=true
    Response.write "</tr>"
    closeme=False
    end if
    </tr>
    <%next%>
    </table>


    Originally posted by wlj_sh
    code :

    <table>
    <tr>
    <%for i=0 to 10%><td>my test</td>
    <%next%>
    </tr>
    </table>

    now,i want when i<7,the 1st row auto change 2nd row;

    example:

    my test my test my test my test my test my test my test

    my test my test my test my test

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •