open links in a popup with jquery
<p>I found some code that i think is what i am looking for but its not fully working. The php file has 10 urls and it echos one of them randomly. What I am trying to accomplish here is to have the url load in a popup window and after 60 seconds reload the popup window with a new url from the php file.</p>

<pre><code>&lt;button id="fullurl"&gt;open window&lt;/button&gt;

    &lt;script type="text/javascript"&gt; 
function loadurl(){
    $.getJSON('links.php?json', function(data){
        $('#fullurl').popupWindow('src', 'http://' + data.url, { height:500, width:800, top:50, left:50 }); 
        }
    );
}
&lt;/script&gt;
</code></pre>
