May 11, 2005
Cascading Onload Image Fades Without Flash
Richard Rutter provides an excellent script for achieving Onload image fades without Flash, which is plain marvellous. The more Flash I can do away with, the happier I'll be. Flash is great for applets, games, and toons, but is pretty nasty for navigation and general page UI.
I've extended Richard's script to support a cascading load of multiple images, which suited my purposes better. Hopefully someone out there finds this useful. Thanks for the help with this Ryan! You can also replace the window.setTimeout with window.setInterval for a somewhat interesting/amusing/useless stuttery effect.
Update: Nick provided a nice update to the code which removed the necessity to specify the number of images in the array. Thanks!
Posted by kitsune at 01:42 PM | Comments (6) | TrackBack
April 07, 2005
This Site is XHTML Compliant - Yeah Right
Ok, it was bound to happen eventually. My first rant.
Has anyone else noticed the slew of sites that display links to the W3C html validator, and claim to be XHTML 1.0 valid, but simply aren't? My guess is that the majority of sites, bearing a Valid XHTML logo, aren't in fact valid.
In order to test this hypothesis, I've visited the first 10 blogs listed on Technorati tagged with XHTML, that claimed to be valid. I validated the pages, and then recorded the results. You would think that if any sites were going to validate, it would be those discussing standards compliant markup.
The sites visited were:
- http://www.jedisthlm.com/ - invalid.
- http://www.elmenda.com/ - valid!
- http://uniquelyalike.com/ - valid!
- http://technewsetc.blogsome.com/ invalid.
- http://blog.waag.org/henk/ - invalid.
- http://neme.org/main/ - valid!
- http://www.plasticshore.com/ - valid!
- http://www.sens.buffalo.edu/test/wordpress/ - invalid.
- http://www.sestaluna.com/maurobiani/ - invalid.
- http://www.feaverish.com/ - valid!
results: 5/10 validate.
This is actually more than I had anticipated. Well done to those of you that have taken care to author your documents correctly.
This is probably a pretty crap way to sample sites that are claiming standards compliance. What would be really great would be a way to return a random page, from google's dataset when queried for a keyword - i.e., an I'm feeling random button. Anyone written a google API hack for this? I'm sure it would have some interesting applications (more interesting than my little experiment in pedantry). It would also be nice to see blogging applications offer a validation feature when posting.
Posted by kitsune at 11:31 AM | Comments (3) | TrackBack