Entries filed under 'Dom'
Stripe your tables the OO way
Filed under DOM, CSS on 2.04.06
Update 16/05: After several requests, I have updated this script to use a more reliable method of swapping the class names in and out. The new addClassName and removeClassName functions can be found on the demo page (or in the original Particletree article I swiped them from).
Read the full entry... | Comment [38]
Equal height boxes with Javascript
Filed under DOM, Javascript on 28.03.06
Update 20/04: Steve Clay pointed out that the previous version didn’t work in Opera, so I have updated the code accordingly.
As any convert to DOM scripting will tell you, our temple is built on the twin pillars of unobtrusiveness and graceful degradation; your website’s functionality must not rely on scripting, but rather it should act as an additional layer of behaviour to enhance your users’ interaction experience.
Read the full entry... | Comment [10]
Re-div your page with DOM scripting
Filed under DOM, Javascript on 15.06.05
Many developers who have experimented with DOM-based Javascript will be familiar with the show/hide trick, featured in several web standards books including Zeldman’s Developing with Web Standards.
|