Reputation: 5801
this jquery code enable you to show the box when click any specific text now i want it appear in the page start not in click i mean when the page open it appear automatic
Upvotes: 0
Views: 149
Reputation: 3285
Yes you can like so
$(document).ready(function(){$.facebox($(your_selecor_here);});
Upvotes: 0
Reputation: 14638
<div id="popup">
Hello World
</div>
And the script
jQuery(document).ready(function ()
{
if (document.getElementById("popup") != null)
{
$.facebox($('#popup').html());
}
}
Upvotes: 1