Sad Code Monkey

Sad, yes, but also brilliant.

 

Sad Code Monkey is a place where we document new-found techniques and code snippets, and share our knowledge with other code monkeys.

Archive for the 'Javascript' Category

The evil that is Spry Menus…

Wednesday, July 28th, 2010

When using Dreamweaver, it seems easy to create a Spry Menu navigation bar for your website. All you have to do is go into the CSS and change the colors, etc to match your design and you’re set… right? Well, depending on how much you have changed, the answer could be no. And sometimes your [...]

Read the rest of this entry »

Javascript 101: Print, Back, Close

Thursday, January 21st, 2010

Do you want some easy code for printing a page, going back in your browser, or closing a window? Just copy and paste this E-Z code.

Read the rest of this entry »

Null links (#) will cause a browser to jump to top of page, annoying anyone who wants the page to remain in the same scroll position when the link is clicked

Read the rest of this entry »

Transparent PNG files in IE6

Thursday, July 9th, 2009

I’ve found that working with IE6 definitely has its limitations. One specific problem is that it can’t handle displaying PNG files with transparency.

Read the rest of this entry »

Dynamic date for HTML pages

Friday, May 29th, 2009

More and more web sites are being built in PHP where you can have includes… adding a dynamic date in the footer is an easy task with basic PHP code… but what about that site built in simple HTML?

Read the rest of this entry »