jquery rollover question
<p>i made an image roll over (first one i make with out tutorials) and i want to know if there is a way to kill the script if the one image ends with over.jpg and make script continue if the image doesn't</p>

<p>this is my code</p>

<pre><code>$('#topNav a img').hover(function(){
    var rSrc = $(this).attr('name');
    $(this).attr('src','images/' + rSrc + 'over.jpg');
}, function(){
    var rSrc = $(this).attr('name');
    $(this).attr('src', 'images/' + rSrc + '.gif');
});
</code></pre>

<p>html</p>

<pre><code>    &lt;a href="index.html" class="nav"&gt;&lt;img src="images/m_1over.jpg" name="m_1"/&gt;&lt;/a&gt;
&lt;a href="aboutus.html" class="nav"&gt;&lt;img src="images/m_2.gif" name="m_2"/&gt;&lt;/a&gt;
</code></pre>

<p>i tried adding </p>

<pre><code>if($('img[src$=.gif]')
</code></pre>

<p>before the script but it doesn't work...</p>
