Click to See Complete Forum and Search --> : For NetSurfer


David Harrison
10-20-2003, 04:30 PM
I used a div tag in this example, but you could just as easily replace it with:

<table><tr><td id="choir"></td></tr></table>

Since you are using XHTML 1.0, I would have thought that you would stray away fom using tables for layout. Anyway, I think that this is what you wanted.

All e-mails that come to via the forums from members seem to go in my Junk Mail folder and I hadn't checked them today. I'll fix that problem when I can be bothered.

By the way, if you each choir member to go into it's own div tag, that will require more div tags (obviously) each with a systematic name to make it easier to cycle through. I wasn't sure if that is what you wanted or not, so I left it like this:

NetSurfer
10-21-2003, 01:37 PM
Thanks for your reply. It's a bit advanced for me, but it makes sense.

Yolandi

David Harrison
10-23-2003, 03:07 PM
It's basically your script but with two things added to it:

document.getElementById("choir").innerHTML

and:

<div id="choir"></div>

The div tag just serves as something to put the content in.
The document.getElementById("choir") references the div tag, and the .innerHTML just tells it to insert whatever is between the speach marks into the div.

As far as I can remember that's all I did to it. Of course, the .innerHTML made some of your code redundant, (such as writing a new page), so I simply removed it to speed the script up a little.