2011-11-02 83 views
0

我正在一個網站上,我希望能夠從所有其他網頁訪問該網站上的菜單頁面上的動態內容,但是當您嘗試從另一個頁面訪問它,這不是」即使離開頁面。我怎樣才能把我帶到菜單頁面,並且也能準確顯示點擊的內容。爲此創建的函數作爲顯示下面動態內容可訪問性問題

$(document).ready(function() { 
     jcps.fader(300, '#switcher-panel'); 
    }); 

     var _tagIndex = window.location.href.indexOf('#'); 
     if (_tagIndex>=0) { 
      showContent(window.location.href.substr(_tagIndex)); 
     } 

回答