title: Fancybox problem when changing the href on ie 7 and 6
body: <p>In my work i changed the dialogue boxes for fancybox, all went dandy, even with minor problems, such as making it run on pageload, but nothing that i could not managed.   </p>
  
  <p>but now, I am facing a enormous obstacle:<br>
  IE6 and IE7 untamed behaviour. I need to change the url of the place where fancybox is going to show. I could not find anything in the documentation except to add content, but not a id. So my question is: where am I wrong?</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
   &lt;link rel="stylesheet" type="text/css" href="http://fancybox.net/js/fancybox/jquery.fancybox-1.3.0.css" media="screen" /&gt;
  
   &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.min.js"&gt;&lt;/script&gt;
   &lt;script type="text/javascript" src="http://fancybox.net/js/fancybox/jquery.easing-1.3.pack.js"&gt;&lt;/script&gt;
   &lt;script type="text/javascript" src="http://fancybox.net/js/fancybox/jquery.mousewheel-3.0.2.pack.js"&gt;&lt;/script&gt;
  
   &lt;script type="text/javascript" src="http://fancybox.net/js/fancybox/jquery.fancybox-1.3.0.pack.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
  
          $(document).ready(function() {
  
          jQuery.fn.cornyBox = function(selector) {
  
              if (selector) { this.attr('href', selector); }
  
              $(this).fancybox();
  
          };
  
  
         //$('#aAlert').cornyBox();
          $('#aAlert').cornyBox('#dvAlert2');
  
          });
  
  
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="alertHolder"&gt;
          &lt;a id="aAlert" href="#dvAlert1" &gt;hit me&lt;/a&gt;
          &lt;div id="dvAlert1" class='alert'&gt;
              something
          &lt;/div&gt;
  
          &lt;div id="dvAlert2" class='alert'&gt;
              something else
          &lt;/div&gt;
      &lt;/div&gt;  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If I use <code>$('#aAlert').cornyBox();</code> I have no problems, because obviously i set no new href on the link.<br>
  It works on IE8, Firefox and Chrome. In IE6, IE7, not, though.</p>