JavaScript,UI
22 October 2008 | 0 Comments
An Event Apart 2008, Day 1, 3:45pm – 4:45pm Read the previous talk in this series, On-the-Spot Usability Reviews by Robert Hoekman, Jr., or view An Event Apart’s Table of Contents Designing the Details: Web-App UI Design Beyond the Basics Jason Fried of 37 Signals Hilight the craftmanship of our product The calendar items that [...]
JavaScript
13 February 2008 | 0 Comments
Usually JavaScript libraries include a getElementsByClassName function. However, if you’re building your own personal library, you may want to include your own version. Robert Nyman has built and amended over the past 2.5 years a function for this very method: The Ultimate getElementsByClassName! The parameters passed in are the element of origin (e.g., document), the [...]
JavaScript
16 August 2007 | 0 Comments
I have previously used the following to check if an element belongs to a certain CSS class: PLAIN TEXT JavaScript: if(myElement.className == 'colorful-class'){ takeAction(); } This method fails when an element bears two or more classes (which I have been using more frequently). A better method is to use JavaScript regular expressions methods to [...]
CSS,JavaScript
16 June 2007 | 2 Comments
Congratulations to Dawid Lizak for winning the CSS Off competition of June. View his winning entry. Gripes Note: A lot of these gripes are directed to my own misunderstanding of the rules of this fairly new competition. If you disagree with any of my gripes, please, leave a comment. Non-Semantic HTML There are divs named [...]
CSS,JavaScript,Web Dev
6 January 2007 | 9 Comments
Courtesy of Daniel Nolan, I found this handy little rollover JS to add rollovers for all your images. It is standards compliant and will not invalidate your HTML. It also majorly cuts down on the bulkiness of your HTML, eliminating the inline JS that is so common on sites nowadays for image rollovers. Why not [...]