news.west.cox.net wrote:
[...]
I think I am finally done with the javascript for this page.
http://pending.buildingonline.com/spib/locator.pl
Hmm, not a bad looking page, can I offer a couple of tips?
I'm at a bit of a loss as to why you made display of the header image
dependent on JavaScript. It may be better to load an image with an
HTML <img...> tag then change it with JS. That way the page still
looks good without JS, just that the image won't change.
Another trick would be to hide the "Check All" checkbox - say use
style="visibility: hidden;" so your page layout is unaffected - then
use JS to reveal it when the page is loaded;
checkboxRef.style.visibility = 'visible';
That way if the user doesn't have JS enabled, they don't see a button
that doesn't do anything for them.
I also don't know why the "View entire roster in popup" page uses JS at
all. On the ancient machine I'm using, it loads in about 1/4 the time
with JS disabled and looks pretty much the same. I can't see how JS is
improving the page.
Anyhow, what you do about the above is up to you :-)
Cheers, Rob.