Javascript 与API和其他选项的连接
我正在用它来创建一个画廊。我已经实现了API以尽快启动gallery。这就是代码,它是有效的Javascript 与API和其他选项的连接,javascript,prettyphoto,Javascript,Prettyphoto,我正在用它来创建一个画廊。我已经实现了API以尽快启动gallery。这就是代码,它是有效的 <!DOCTYPE html> <html> <head> <title>jQuery lightbox clone - prettyPhoto - by Stephane Caron</title> <meta http-equiv="Content-Type" content="text/htm
<!DOCTYPE html>
<html>
<head>
<title>jQuery lightbox clone - prettyPhoto - by Stephane Caron</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.6.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$().prettyPhoto()
api_images = ['images/fullscreen/2.jpg'];
$.prettyPhoto.open(api_images);
});
</script>
</head>
<body>
</body>
</html>
jQuery lightbox克隆-Prettypto-由Stephane Caron编写
$(文档).ready(函数(){
$().pretto()
api_images=['images/fullscreen/2.jpg'];
$.prettypto.open(api_图像);
});
现在我需要从图库中删除一些东西,比如社交按钮。
是文档,在“定制”部分有我需要的。我应该使用选项social_tools并将其设置为false,如何将其插入上述代码中
致意
编辑:已解决!只需要将这些指令作为参数,类似于:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$().prettyPhoto({social_tools: false, modal: true, allow_resize: true})
api_images = ['images/fullscreen/2.jpg'];
$.prettyPhoto.open(api_images);
social_tools: false;
});
</script>
$(文档).ready(函数(){
$().prettypto({social_tools:false,modal:true,allow_resize:true})
api_images=['images/fullscreen/2.jpg'];
$.prettypto.open(api_图像);
社会工具:错误;
});