この問題に焦点を当てた質問をすでに投稿しましたが、誰も答えませんでした。ですから、これは実際には注意を取り戻すための再投稿です。
私の古い投稿はここにあります:リンク
私のJSコード:
$(document).ready(function() {
$('.con').load('views/startseite.html',function(){
$('.scroll').jScrollPane();
});
$('nav a').click(function(e) {
e.preventDefault()
var inc = $(this).attr('href').split('/').pop().split(".").shift(),
href = "views/" + inc + ".html"
$('.con').hide().load(href, function(){
$('.con').fadeIn('fast',function(){$('.scroll').jScrollPane();});
})
document.title = 'Robert-Richter.com | ' + firstToUpperCase(inc)
location.hash = inc
return false;
});
function firstToUpperCase( str ) {
return str.substr(0, 1).toUpperCase() + str.substr(1);
}
});
スクロールボックスの私の CSS:
.scroll {
position: relative;
right: 0;
width: 415px;
height: 422px;
overflow: auto;
}
現在のコードを含むページのライブ例:リンク
一部の人がいつも質問を読みたがる理由がわかりませんが、ここに行きます:これで私を助けてくれませんか?