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' });
});
精彩评论