Loading javascript file based on cookie using jQuery
<p>I don't know why this code isn't working. This code should make sure that only one ad pop is presented in a user session. If I remove the two cookie lines then it works but not with the two cookie lines. Please help:</p>

<pre><code>&lt;script type="text/javascript"&gt;  
var zflag_nid="1185";    
 var zflag_cid="3307";    
 var zflag_sid="823";   
 var zflag_width="1";    
 var zflag_height="1";   
 var zflag_sz="15";   

 if(!jQuery.cookie('myCookie1')) {
 jQuery.cookie('myCookie1','myValue');  
jQuery.getScript("http://d8.zedo.com/jsc/d8/fo.js",function(){ alert("Loaded");});
}
&lt;/script&gt;   
</code></pre>
