Open Colorbox on page load

Franklin picture Franklin · May 11, 2011 · Viewed 39.4k times · Source

I have been trying to make the colorbox work on page load, but I can see only the loading with a plain background. I used this code

$.fn.colorbox({id:'', title:'',open:true});

You can find the demo here

http://www.bloggermint.com/demos/popupsub/colorbox/example5/index.html

Answer

kei picture kei · May 11, 2011

EDITED:

<script type="text/javascript"> 
        $(document).ready(function(){
          $.colorbox({width:"30%", inline:true, href:"#subscribe"});
        }); 
</script>