Javascript-A-Palooza!
Thursday, January 26th, 2006
So, I started off with a simple, five-page, static website. Piece of cake. I design it - it was rough going there for a bit as I tried to find the look for this site - but in the end I’m really stoked on it. I go to implement it in xhtms/css and all goes relatively smoothly. Yay.
But then … on the home page … I’m loving how it looks with minimal content but there are a few more paragraphs that I’d like to be able to add. I make a “read more” link at the bottom of the minimal content but I’m thinking that I dont’ really want to go to a new page when I click “read more,” because the “more” text doesn’t really deserve it’s own page. I think, “Hey it would be cool if when I click ‘read more’ then content box just expands and then there’s the “more”. I know how to do that!”
Ah, such simple thinking. Little did I know this would lead me down an obsessive path and a steep javascript learning curve to produce several pages with chunks of content which can be turned off and on by clicking links while at the same time keeping everything semantic and good to go for those with javascript disabled.
more ...
