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