Vol. 2, No. 14
TODAY'S LESSON: Design Tricks for Explorer
Big-league, heavy-hitting Web developers such as yourself know how
hard it is to design a site that everyone can enjoy because we all
experience theWeb through different browsers running on different
operating systems. Why, just LOOK at how spotty and erratic browser
coverage can be:
Browser Chart
As we wait, toes tapping, for the arrival of Browser Utopia (i.e.,
complete standards compliance), we're left with a difficult decision.
Either we, 1) go the lowest-common-denominator route and strip both
the whiz and the bang from our sites, 2) make two different versions
of our sites and rely on browser-sniffing code to serve up the right
pages to the right people, or 3) build the site of our wildest dreams
and simply leave the poor saps who can't see the magic out in the cold.
Well today we're going to see what's behind curtain number 3.
Specifically, we'll be adding three new features to our site that are
tailored for people running Internet Explorer on Windows machines.
One of the features (iframes) will run on early versions of IE and even
some other browsers, but the other two require far more recent versions
of IE: The Favorites Icon needs IE5 or better, and SMIL needs at least
IE5.5.
Sounds crazy like a plum, no? But with close to 75% of Internet users
riding the Web with just such a setup (IE5+ for Windows), it isn't as
nuts as it first seems -- after all, if three out of four people can
see your site, that ain't half bad.
So let's start with a smile!
>>> SMIL and the World Smiles with You <<<
Want to fancify your site with graphics that shrink or blush or race
across the screen when users click on them? Sure you do! One way to
accomplish all that is to build a bulky, plug-in-required Flash
animation. OR you could simply use a few lines of SMIL, a markup
language that has a lot in common with XML and HTML, so it shouldn't
be too much of a leap for you to learn (think picking up Italian after
mastering Spanish).
Want to find out for yourself how easy it is to turn that frown
upside-down? Join Webmonkey Rodney as he walks you through the basics
of the language, time lines, and color transitions:
SMIL 2.0: Codeless Animation in HTML (IE5.5 or better)
>>> Playing Favorites <<<
Has this happened to you? You find a site you'd like to see more of
and you click "Add to Favorites." The next time you pull down your
Favorite menu, it's there, as expected. But, much to your surprise,
it's accompanied by a cute little icon -- so cute in fact, it's all
you can do to keep from click-click-clicking on it all the livelong
day, right?
Once you get over the giddy rush of your first Favorites Icon, the
next logical step is to create one for your own site -- after all,
your users deserve to have their days brightened with a splash of
color, don't they? Something to collect, like Girl Scout merit badges
or gold star stickers on a report card? Here, let Webmonkey Emily
show you how it's done:
All About the Favorites Icon
>>> iFrame, You Frame, We All Frame! <<<
Two lessons back we learned all about frames. Remember how we used
them to split up the browser window? How we could link and load from
one frame to the next? After playing around with them, however, I'm
sure you discovered their tragic limitation: Unlike Elsa the lion,
frames are not born free. No, they're bound to the side of the
browser window.
Enter iframes (or "floating frames), the more flexible and liberated
cousin of frames. Iframes behave just like an image and can sit
anywhere on the page. They go where they want to go and pull in
whatever content they want to -- so liberated! So are you sold?
For details on the implemention of iframes, check out Webmonkey
Zach's treatise on the matter:
The IFrames Lowdown