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 'HTML' Category

Well, I’ve avoided it long enough. Use NOBR when you don’t want any part of a string to break. I’ve avoided using it on phone numbers forever, basically because I’m lazy. But I finally buckled to the pressure and gave it a go. NOBR also helps avoid the dreaded widows. Here’s a sample code: <p>To [...]

Read the rest of this entry »

Backing up Dreamweaver site files

Friday, November 12th, 2010

There is a simple way to backup your site files in Dreamweaver. Just go to “Manage Sites” and click “Export” and it will export all your site information with logins and passwords and local paths into .ste files. Then, if you ever have to re-install Dreamweaver, you can just re-import these files and save yourself [...]

Read the rest of this entry »

Background image maps, in CSS

Tuesday, September 28th, 2010

Here’s the scenario: You have a background image in your layout… like a header logo, and you want to apply a link to that logo – back to the home page, for example. In old HTML days we would have had an image file in place (not a CSS background) and apply an image map. [...]

Read the rest of this entry »

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 »

Passing SWF variables in Dreamweaver code

Tuesday, December 29th, 2009

When passing variables from a web page created in Dreamweaver to an SWF file, make sure you add the variable name to the path as outlined below.

Read the rest of this entry »

Drop down menus over Flash content

Wednesday, August 26th, 2009

A lot of display problems can arise when you have Spry menus (or any other type of drop down menu) in your navigation, and the drop down displays over a flash movie.

Read the rest of this entry »

Browser specific conditional comments

Saturday, July 11th, 2009

When dealing with users on multiple platforms and multiple browsers, sometimes browser specific changes are a necessity.

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 »