Link to home
Start Free TrialLog in
Avatar of sahanz
sahanz

asked on

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 ?
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try this:
$(".example7").click(function(){
    $fn.colorbox({width:"80%", height:"80%", iframe:true, overlayClose: false});
});

Open in new window

Avatar of sahanz
sahanz

ASKER

Thanks, is there anyway to make them work without the existing text link ?