Javascript Layout Tricks: Bob Broen Long Term Results
Javascript Layout Tricks: Bob Broen Long Term Results
Bob Broen
if (document.images) {
// you can use the array images
}
Writing JavaScript
// YUI framework
YAHOO.util.Event.addListener('mybutton',
'click', sayHello);
Adding a click event
// jQuery framework
$('#mybutton').click(sayhello);
Shameless jQuery plugs
Scripting a function to
create an even height
on adjacent articles and
headers.
Column heights
this.each(function() {
if ( wall.children().length > 0 ) {
if( wall.children('.masonryWrap').length == 0 ) {
wall.wrapInner('<div class=\"masonryWrap\"></div>');
JavaScript rocks!
Check out the examples on:
http://www.myfirstswiftysite.nl/