开发者

Load facebox on body load

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

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

精彩评论

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