Help with this code here

M

Mr. Teatime

http://www.teatime.pwp.blueyonder.co.uk/music.htm

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
 
B

Blue Raja

Mr. Teatime said:
http://www.teatime.pwp.blueyonder.co.uk/music.htm

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?

<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>

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.

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.
 
M

Mr. Teatime

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.


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?
 
B

Blue Raja

Mr. Teatime said:
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?

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 :eek:(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top