开发者

calling jquery facbox from button click

开发者 https://www.devze.com 2022-12-14 06:47 出处:网络
i am using facebox that give help for opening box from link but i want to open box from jquery click function not from hyper l开发者_如何学编程ink.

i am using facebox

that give help for opening box from link

but i want to open box from jquery click function not from hyper l开发者_如何学编程ink.

like $("#Button2").click(function() { code to open facebox });

thanks


.

$("#Button2").click(function() { 

  // to load html/php page
  jQuery.facebox({ ajax: 'remote.html' });
  jQuery.facebox({ ajax: 'remote.php' });

  // load image
  jQuery.facebox({ image: 'images/dude.jpg' });

});


something like: jQuery.facebox('hi there')

0

精彩评论

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

关注公众号