/* * * Copyright (c) 2006/2007 Sam Collett (http://www.texotela.co.uk) * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */ /* * jQuery Image Replacement. An alternative to using CSS hacks * The id attribute (or class) is used for the filename * * @name jQIR * @param String format Image format/file extension (e.g. png, gif, jpg) - ignored if specifying the filename in the class * @param String path (optional) Path to images folder * @param Function onload (optional) Function to run when image has loaded * @author Sam Collett (http://www.texotela.co.uk) * @example $(".jqir").jQIR("png", "images/"); * @before