1
我已经使用prettyPhoto来显示画廊,YouTube和Flash,但是当我使用单个图像时出现“刷新”问题。 prettyPhoto会在我点击一个缩略图时打开,并将#!prettyPhoto/0 /添加到查询字符串中。但是,当prettyPhoto关闭时,它不会删除/ 0 /,因此当页面刷新时,相同的图像会再次打开。我看了演示页面,它删除了/ 0 /。prettyPhoto加载浏览器刷新
我的代码不能简单一些。有关如何删除/ 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