[jQueryからこの回答をコピーする-hashchangeイベント]
同じ問題が発生しました(IE7でのハッシュ変更イベントの欠如)。私の目的に適した回避策は、ハッシュを変更するリンクのクリックイベントをバインドすることでした。
<a class='hash-changer' href='#foo'>Foo</a>
<script type='text/javascript'>
if (("onhashchange" in window) && !($.browser.msie)) {
//modern browsers
$(window).bind('hashchange', function() {
var hash = window.location.hash.replace(/^#/,'');
//do whatever you need with the hash
});
} else {
//IE and browsers that don't support hashchange
$('a.hash-changer').bind('click', function() {
var hash = $(this).attr('href').replace(/^#/,'');
//do whatever you need with the hash
});
}
</script>