Jquery PrettyPhoto从URL中删除了#prettyphoto

Pas*_*cut 4 javascript wordpress jquery plugins

我使用漂亮的照片版本3.1.4.(http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/).我想从网址中删除"#prettyphoto [iframe]/number /".我设置了深层链接:false,但这没有用.我明白这可能是这些功能的问题:

function getHashtag(){url=location.href;hashtag=(url.indexOf('#prettyPhoto')!==-1)?decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)):false;return hashtag;};
function setHashtag(){if(typeof theRel=='undefined')return;location.hash=theRel+'/'+rel_index+'/';};
function clearHashtag(){if(location.href.indexOf('#prettyPhoto')!==-1)location.hash="prettyPhoto";}
Run Code Online (Sandbox Code Playgroud)

任何的想法?

Geo*_*rge 10

这是我的代码,它对我有用:

    <script type="text/javascript" charset="utf-8">
      $(document).ready(function(){
        $("a[rel^='prettyPhoto']").prettyPhoto({
        social_tools:false,
        deeplinking:false});
      });
    </script>
Run Code Online (Sandbox Code Playgroud)