このサイト「http://lopatin.github.com/sliderTabs/」からこの jquery SliderTabs を試しています。すべて正常に動作します。外部リンクを使用して特定のタブに移動する際に問題が発生しています。ここに私の次のコードがあります:
<script>
$(function(){
$('#customers').sliderTabs();
if(document.location.hash!='') {
//get the index from URL hash
selectedTab = document.location.hash.substr(1,document.location.hash.length);
$("#customers").sliderTabs('select', selectTab - 1);
}
});
</script>
しかし、それは私にはうまくいかないようです。誰でもこれで私を助けることができますか?