[thelist] Apologies

Lachlan Cannon tiedefenderdelta6 at yahoo.com
Tue Jan 22 09:23:14 CST 2002


Sorry before, on the CSS customisation thread (I can't
remember it's subject, and deleted the mails, hence this
subject. Peter replied to my post with criticism about the
method, and I went a little ballistic (I believe) replying
to it. Sorry about that, Peter, just I don't like seeing
useful tools criticed for the way they're implemented. In
my mind it's like calling light bulbs stupid if you only
ever see them being used as decorations (ie not screwed in
or turned on). I don't think that it is just 'cool',
although some might see it is such, and I believe it is a
great usability improvement over sites which give you no
control whatsoever, preferences or on the site itself.
Nevertheless, my outburst was over the top. Once again,
sorry. I humbly proffer a tip.

<tip type="site functionality">
If you're going to make a portion of your site only
accessible to some people, make sure no one else even sees
that part. For example, if you're going to use Paul
Sowden's style sweet switcher, implement it in a way that
people with browsers with no javascript / javascript turned
off / not a high enough version don't see it at all, for
example, by conditionally docuemnt.writing the buttons into
the page depending on whether there is the support there.
For example, for the switcher.

function giveSwitcher() {
if (document.getElementById()) {
    document.write("<button
onclick=\"changeStyle('grey');\">Grey skin</button>");
    document.write("<button
onclick=\"changeStyle('blue');\">Blue skin</button>");
}
}
</tip>

Lach

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/




More information about the thelist mailing list