Question : Jquery Help, Body on load

I'm using color box, light box plugin. http://colorpowered.com/colorbox/

This is the script.

$(document).ready(function(){
                        //Examples of how to assign the ColorBox event to elements
                        
                        $(".example7").colorbox({width:"80%", height:"80%", iframe:true, overlayClose: false});
                        
});


so heres the html

<a class='example7' href="http://google.com">Outside Webpage (Iframe)</a>


So when click the link the popup appear, so what I want is, I want to open the popup on the page load. How can I do that ?

Answer : Jquery Help, Body on load

Try :

1:
2:
3:
4:
5:
6:
$(document).ready(function(){
                        //Examples of how to assign the ColorBox event to elements
                        
                        $(".example7").colorbox({width:"80%", height:"80%", iframe:true, overlayClose: false}).click();
                        
});
Random Solutions  
 
programming4us programming4us