Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Colorbox on page load

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

like image 482
Franklin Avatar asked May 11 '11 19:05

Franklin


1 Answers

EDITED:

<script type="text/javascript"> 
        $(document).ready(function(){
          $.colorbox({width:"30%", inline:true, href:"#subscribe"});
        }); 
</script>  
like image 135
kei Avatar answered Sep 22 '22 20:09

kei