开发者

Load facebox on body load

iam using facebox 1.1 and i want the facebox to load when the body loads, instead of clicking on the anchor tag with r开发者_如何学Cel=facebox.

Can anyone tell me how to achieve it ?


Have you read the documentation? It is described there under Controlling Facebox Programmatically. Ok, it is facebox 1.2, I don't know if this is available in 1.1 but I think so.

E.g.:

$(function(){
    $.facebox({ div: '#box' });
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜