adding to an href
<p>I want to add to an href when a link becomes "active" My code selects a specific class, adds a class and then, if it is a specific file, needs this additional input ("?lightbox[width]=350&amp;lightbox[height]=170") added to the href. My code is as follows:</p>

<pre><code> $('.active').removeClass("lightbox").addClass("lightbox");

$('.active  [href$='.swf'],[href$='.mov'],[href$='.flv'],[href$='.wmv']').attr("href", function(i, href) 
{return href + '?lightbox[width]=350&amp;lightbox[height]=170';
</code></pre>

<p>Doesn't want to add to the href. Any help would be appreciated!</p>
