これは、jquery を使用して外部の .js で記述されています...
次のように、ビューに出入りする2つのウィンドウがあります。
$(document).ready(function() {
// hides gallery1 as soon as the DOM is ready
$('#gallery1').hide();
// shows the menu on click
$('#showgal1').click(function() {
$('#gallery1').delay(490).show('slide', {direction:'left'});
$('#gallery2').hide('slide', {direction:'right'});
//need code to disable showgal1 and enable showgal2
});
$('#showgal2').click(function() {
$('#gallery2').delay(490).show('slide', {direction:'right'});
$('#gallery1').hide('slide', {direction:'left'});
//need code to disable showgal2 and enable showgal1
});
});
'gallery1' と 'gallery2' はフラッシュ イメージ ギャラリーを含む DIV であり、'showgal1' と 'showgal2' はアンカーの ID です...
のように見える
<a href="#" id="showgal1">gallery 1</a>
一方がクリックされたときに.click機能を無効にし、もう一方を再度有効にする方法が見つかりません...
デフォルトで「showgal1」を無効にしたいのですが、「showgal2」イベントが発生すると、属性が削除され、「showgal1」がクリックされるまで「showgal2」が無効になります...
まだ機能し.attr('disabled','disabled')ていません...