开发者

jquery facebox plugin problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜