【问题标题】:prettyPhoto loads on browser refreshprettyPhoto 在浏览器刷新时加载
【发布时间】:2011-08-17 21:43:17
【问题描述】:

我使用 prettyPhoto 来显示画廊、YouTube 和 Flash,但是当我使用单个图像时,我遇到了“刷新”问题。当我单击缩略图时,prettyPhoto 会打开,并将 #!prettyPhoto/0/ 附加到查询字符串中。但是当 prettyPhoto 关闭时,它不会删除 /0/,因此刷新页面时会再次打​​开相同的图像。我查看了演示页面,它删除了 /0/。

我的代码再简单不过了。关于如何删除 /0/ 或阻止 prettyPhoto 在刷新时加载的任何想法?

<link href="css/prettyPhoto.css" rel="stylesheet" type="text/css" media="all" lang="en" xml:lang="en" charset="utf-8" />
<script src="/js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<a href="/templates/template9.jpg" rel="prettyPhoto" title="This is the description"><img src="/templates/template9.jpg" width="60" height="60" alt="This is the title" /></a>
<script type="text/javascript">
    $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto({social_tools:false,theme:'light_rounded'});});
</script>

我的开发页面:http://www.sremarketing.com/untitled-3.html

【问题讨论】:

    标签: jquery prettyphoto


    【解决方案1】:

    我在新版本 (3.1.3) 中使用 pp 3.1.2,此问题已修复。

    【讨论】:

      猜你喜欢
      • 2011-09-14
      • 1970-01-01
      • 2018-03-14
      • 2015-07-23
      • 1970-01-01
      • 2015-02-18
      • 2017-03-22
      • 1970-01-01
      • 2018-12-25
      相关资源
      最近更新 更多