troubles with <object>
Yesterday, I was trying to figure out a workaround that would allow users with cutting edge browsers to see graphics in a sidebar, while folks with older browsers would see text. Setting a div with a background image doesn't work for obvious reasons -- you can't link to a background image (or a div). Suddenly, I remembered good ole <object> -- you could specify a .png graphic, and an alternate text (or graphic). Example: <object data="frog.png">Frogs in Habitat</object>
Bingo! So, I got it working on all the browsers on my PC, where it displayed either the .png link or the text link, and I thought, woo hoo! And then I looked at it at home on my mac. Unfortunately, Mac/IEs universally don't know what to do with object, so they don't display either the .png or the text. Oh well, back to the drawing board.
Thursday, May 23, 2002 09:20 a.m.
A cool example of stylesheet switching
I've been particularly obsessed with stylesheet switchers lately. Not just because they're cool (though they most certainly are), but for the usability aspect. Allowing users to change font size is, as Martha would say, a good thing. Eric has this set up so it doesn't show up in Opera 5 (and other browsers that just wouldn't understand), which is way cool. His design doesn't crash and burn in older/weirder browsers, either. Now I must learn from him.
Thursday, April 18, 2002 09:38 a.m.