It's a common practice on many sites to put the focus on the first input. But, in many cases, this first input has already been…
Image shows in Firefox but not in Internet Explorer (IE)
In almost every case, this is going to be an issue related to the format of the image itself. The image may be in a…
Forcing external links to open in a new window with Javascript
This task becomes relatively easy with the help of our friend jQuery. The code below is almost too simple! $('a').each(function() { url = $(this).attr('href');…
CSS Sprites – the elegant way
I was trying to come up with a way to use image sprites for background images, without needing to specify a ton of class names.…
Table background on alternate rows
3 ways to do this: jQuery #1 $('table tr:even').addClass('even'); jQuery #2 $('table tr:even').css('background-color', '#eee'); Background Image If you are certain that all table rows will…