Replace headings (or any text) with images.
Parameters
Download source code | Changelog (latest update: 17 Apr 2007)
For example, imagine the following structure:
<h1 id="heading1" class="jqir">Heading 1</h1>
<h2 class="jqir {src:heading2.png}">Heading 2</h2>
<h3 id="heading3" class="jqir"><a href="http://jquery.com">Heading 3</a></h2>
Then in your javascript (extension is ignored if file name is defined in class):
$(".jqir").jQIR("png", "images/");
Would result in:
<h1 id="heading1" class="jqir"><img alt="Heading 1" src="images/heading1.png"></h1>
<h2 class="jqir {src:heading2.png}"><img alt="Heading 2" src="images/heading2.png"></h2>
<h3 id="heading3" class="jqir"><a href="http://jquery.com"><img alt="Heading 3" src="images/heading3.png"></a></h2>
$(".jqir").jQIR("gif");