問題は、検索ページが開いているときにすべてのリンクがアクティブになっていないことです。だから、私は問題がこのJQUERYコードから来たことを発見しました:
var shouldShow = $.cookie('show_desc') == 'yep';
if( shouldShow ) { $('#searchunder').show(); $('body').animate({ paddingTop: 80 }); }
else { $('#searchunder').hide(); $('body').animate({ paddingTop: 25 }); }
// shows the group_desciption on clicking the noted link
$('#search').click(function() {
$('body').animate({ paddingTop: 80 });
$('#searchunder').show('fast');
$.cookie('show_desc', 'yep');
return false;
});
// hides the group_desciption on clicking the noted link
$('#close').click(function() {
$('body').animate({ paddingTop: 25 });
$('#searchunder').hide('fast');
$.cookie('show_desc', 'nope');
return false;
});
//return false;を追加すると、リンクは機能しています。しかし、私が返すとfalseを削除します。検索バーが非表示になり、再び開きます。では、解決策は何でしょう?