Help with this code here

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mr. Teatime

    Help with this code here



    I want the 'More information | Time.... | Download' to be in a table so
    each time it appears it lines up with the previous one, but I can't work out
    how to do it - each time I try, the text appears on the line below rather
    than the line as it currently is. Any suggestions?
    Also I'd like all the information to display expanded if the person doesn't
    have javascript enabled, which I don't think happens currently. Again any
    help welcome...
    TIA


    --
    My music - http://www.jonathandalton.com


  • Blue Raja

    #2
    Re: Help with this code here

    "Mr. Teatime" <mr_teatime007N O@SPAMhotmail.c om> wrote in message
    news:h%jIc.1218 $Mz1.14785675@n ews-text.cableinet. net...[color=blue]
    > http://www.teatime.pwp.blueyonder.co.uk/music.htm
    >
    > I want the 'More information | Time.... | Download' to be in a table[/color]
    so[color=blue]
    > each time it appears it lines up with the previous one, but I can't work[/color]
    out[color=blue]
    > how to do it - each time I try, the text appears on the line below rather
    > than the line as it currently is. Any suggestions?[/color]

    <table>
    <tr>
    <td colspan="5" style="text-align: left;">
    <!-- title here, eg "NEW ♪ ♫ Bring On The Rain" -->
    </td>
    </tr>
    <tr>
    <td> <!-- More info --> </td>
    <td> | </td>
    <td> <!-- Time/Size details --> </td>
    <td> | </td>
    <td> <!-- Download link --> </td>
    </tr>
    <tr class="open">
    <td colspan="5"> <!-- colspan="6" if you want it to horizontally
    overrun the other table contents -->
    <!-- Additional info text block -->
    </td>
    </tr>
    <tr>
    <td> <!-- Divider --> </td>
    </tr>
    <!-- repeat for other entries -->
    </table>

    I'm not 100% sure that "display: none;" will work on <tr>s, but I can't see
    why not.
    [color=blue]
    > Also I'd like all the information to display expanded if the person[/color]
    doesn't[color=blue]
    > have javascript enabled, which I don't think happens currently.[/color]

    Set the info blocks to "open" in the code, then use Javascript to close them
    when the page loads. You've already got the function written, so you just
    have to add
    onload="setup() ;"
    to your body tag.

    Hope that helps.

    --

    Jason, aka The Blue Raja


    Comment

    • Mr. Teatime

      #3
      Re: Help with this code here

      [color=blue]
      >
      > Set the info blocks to "open" in the code, then use Javascript to close[/color]
      them[color=blue]
      > when the page loads. You've already got the function written, so you just
      > have to add
      > onload="setup() ;"
      > to your body tag.
      >
      > Hope that helps.
      >[/color]


      I have tried this - if you go to music3.htm, it's there. Whilst loading from
      my HD, the code works, but from the server, all text is displayed expanded
      (some computers it works fine). Any ideas?

      --
      My music - http://www.jonathandalton.com


      Comment

      • Blue Raja

        #4
        Re: Help with this code here

        "Mr. Teatime" <mr_teatime007N O@SPAMhotmail.c om> wrote in message
        news:JfvIc.1426 $217.17504378@n ews-text.cableinet. net...[color=blue][color=green]
        > > Set the info blocks to "open" in the code, then use Javascript to close[/color]
        > them[color=green]
        > > when the page loads. You've already got the function written, so you[/color][/color]
        just[color=blue][color=green]
        > > have to add
        > > onload="setup() ;"
        > > to your body tag.
        > >
        > > Hope that helps.[/color]
        >
        > I have tried this - if you go to music3.htm, it's there. Whilst loading[/color]
        from[color=blue]
        > my HD, the code works, but from the server, all text is displayed expanded
        > (some computers it works fine). Any ideas?[/color]

        Using both IE6 and Netscape 7.1 I see all the text expanded until the page
        has completely loaded, then it hides the extra info.
        The lag is probably due to image loading times, which are tiny locally, but
        significant remotely. I'm not sure what can be done to fix that :o(

        --

        Jason, aka The Blue Raja


        Comment

        Working...