Sorry - I'm at a college in Missouri, so I'm afraid I can't fully answer your post right now, merely guide you in the proper direction.
Sorry for the delay getting back to you. I tried your code and all I got was a blank screen (i.e. the table didn't load).
and
3. If this were within a PHP print "" statement, how do you deal with the quotes? (I assume those double quotes would take you OUT of the print, and then cause a parse error)
I grouped these quotes together because they have the same solution: escape the delimiter. To see what I mean, take a look at your onLoad section of the HTML code you posted:
onLoad='document.getElementById([COLOR=red][b]'[/b][/COLOR]mytable[COLOR=red][b]'[/b][/COLOR]).style.display =" block"'
Notice the single quotes I changed to red font? Since you used single quotes as the delimiter for your onLoad statement (by the way, HTML 4.0 compliancy says 'onLoad' should be lowercase 'onload' I do believe), so you'll have to do one of two things:
- Escape the quotes. In HTML/Javascript and PHP alike, you can escape quotes using a single backslash, like so:
onload='alert("This is some \'quoted\' text!")'
or
echo "This is some \"quoted\" text.";
If you use the delimiter inside the block of text (the string), you must escape it in this manner by preceding it with a single backslash.
Alternatively, as in your HTML problem, you can simply switch to a different type of quote, like so:
onLoad='document.getElementById("mytable").style.display =" block"'
Either of the two methods should solve your HTML problem, I believe.
BTW I am extremely fascinated by this, particularly the getElementById business. What is that? Javascript? Document Object Model? I sure would like to learn more about it.
Well, yes. It's Javascript. I'm not exactly a good mentor (I know I wouldn't be ANY good teaching Javascript), so you'll have to either search around or ask around on a Javascript-oriented forum (or even try the Echo Lounge on these forums) for an in-depth explanation. Basically, I told Javascript first to go to the HTML document, look for an element (or HTML tag, like <table>) with the id of mytable, go to it's style, go to the display attribute of the style, and change it.
4. Is it possible to have a message that says "picture loading"... (wait a minute I think you had a solution for that, I wll go back and re-read)
Though it is untested, I believe you could implement some sort of a splash screen using the second code example in my previuos post. If it doesn't work on the first try, see if you can tweak it yourself, or post the code you used and I'll see if I can catch my mistake(s) the second time through.