0
正如您在下面的代碼中看到的,我有2個標誌my
和hk
。
當我點擊hk
標誌時,它將重定向到hk
頁面,同時將禁用hk
按鈕來顯示與其他按鈕的區別。點擊時禁用按鈕
那麼,我用什麼PHP代碼來禁用點擊按鈕?
<button id="btn_my" dojoType="dijit.form.Button"
onClick='location = "<?php echo url_realurl();?>/results/view/all/M"'>
<?php
echo ci_create_img('my');
?> <!--this is malaysia flay image -->
</button>
<button id="btn_hk" dojoType="dijit.form.Button"
onClick='location = "<?php echo url_realurl();?>/results/view/all/H"'>
<?php
echo ci_create_img('hk');
?><!--this is hongkong flay image-->
</button>
嗨Wesley, 謝謝你的友善help.It幫助了很多:) – user774105 2011-05-30 09:28:30