Tuesday, May 1, 2007

DOM Scripting

I hate Adobe. Every single one of their however functional products is unstable, slow, and bloated. I just lost my whole post because I got distracted and clicked an innocuous looking link that was a pdf that then loaded Adobe Acrobat that crashed Firefox... so all over again here goes:

I'm on Chapter 4 of this wonderful book DOM Scripting: Web Design with Javascript and the Document Object Model and sadly I'm thoroughly enjoying this non-fiction book aimed at teaching you something. This book is about using javascript to enhance your website with pretty effects and subtle animations.

The example I just read was creating a simple photo gallery. I took some photos of Bouncer while we went for a walk around the block this morning. It's been so nice out!

See my simple dog gallery

My favorite part of this book is that the author, Jeremy Keith, doesn't assume that you already put the other parts of your project together yourself. For example, to DOM script anything, you have to have an HTML document to script. Any other book would assume that the reader already knows all this and would only include the snippet of HTML that is relevant. The author shows you what the entire HTML document looks like so the you don't get distracted from what you're really trying to learn. It's nice that he adds a little CSS example, too, so you can get all excited about how "pretty" your scripting turned out... um yah. I definitely spent more time tweaking the CSS and colors than I did on the scripting.

The best part of the book is the subscription to "say what you're gonna say, say it, then say what you said" method of presentation. Loves it!

My mother should really love me more since I'm learning this stuff to make a website for Northwest Hand Therapy (I suppose I have personal nerd interest, too). I've had some ideas for her site layout that I'll post when the scanner gets unearthed.

I guess while I'm at it I'll hopefully make the photo gallery on mustard.net and the wedding website prettier, too.