开发者

jquery facebox plugin problem

开发者 https://www.devze.com 2023-01-05 13:22 出处:网络
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

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


<div id="popup">
    Hello World
</div>

And the script

jQuery(document).ready(function ()
{
    if (document.getElementById("popup") != null) 
    {
        $.facebox($('#popup').html());
    }
}


Yes you can like so

$(document).ready(function(){$.facebox($(your_selecor_here);});
0

精彩评论

暂无评论...
验证码 换一张
取 消