PrettyPhoto 无法在准备好的文档上工作
我已经看到这个问题并遵循了所有内容,但它对我来说根本不起作用
有人可以告诉我他们是否看到这里有什么问题吗? 我还不太擅长这个,我确信这一定很简单。
我的目标是在页面加载后显示弹出窗口。
任何帮助表示赞赏!
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
function showPopUp() {
var where = "images/popup.jpg";
var title = "";
var comment = "";
$.prettyPhoto.open(where, title, comment);
}
showPopUp();
});
</script>
I have seen this asked and followed everything but it simply doesnt work for me
Could anyone tell me if they see anything wrong here?
Im not very good at this yet, I am sure it must be something simple.
My goal is to display a popUp once the page is loaded.
Any help is appreciated!
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
function showPopUp() {
var where = "images/popup.jpg";
var title = "";
var comment = "";
$.prettyPhoto.open(where, title, comment);
}
showPopUp();
});
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题已在 3.0.3 版本中修复。
在这里找到解决方案: isSet 未定义
Problem has been fixed in version 3.0.3.
Solution was found here: isSet is not defined