0

我正在使用脸书

帮助从链接打开盒子

但我想从 jquery 单击功能而不是从超链接打开框。

像 $("#Button2").click(function() { 打开 facebox 的代码 });

谢谢

4

2 回答 2

2

类似于:jQuery.facebox('你好')

于 2009-12-20T08:07:15.160 回答
2

.

$("#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' });

});
于 2009-12-20T08:14:13.427 回答