Skip to content

24 ways to impress your friends

Vote up?

Jesse Rosenfield

Should the path to x.gif in the .js file be relative to the CSS or the HTML document? I am doing this on a wordpress site locally:

I have the path as:

// Path to a transparent GIF image var shim = ‘/wordpress/wp-content/themes/blank2r/images/x.gif’;

// RegExp to match above GIF image name var shim_pattern = /x\.gif$/i;


what am I doing wrong? My png’s still have a grey bg in IE6.