由於承接前人的code,所以就沒有重新刻畫面,要將標題列變成選單,因此需要在table中觸發function去呼叫切換設定頁面

所以才會在table中去加入onclick的方法去呼叫function

此外,要讓滑鼠移過去的時候,會出現手指,所以在css加上了cursor:pointer的屬性。

此外,透過 document.getElementById('contentM').contentWindow.GotoSupervisor(t); 可以由iframe的父頁去呼叫子頁的function。

而parent.changemenu('t3'); 則是用在子頁呼叫父頁的function。

<script>

var $j = jQuery.noConflict();

function changemenu(t){
document.getElementById('contentM').contentWindow.GotoSupervisor(t);
}

</script>

<div class="lefttabmid" id="t4" style="margin-left:15px; cursor: pointer;"><table onclick ="javascript:changemenu('t4');" height="52px"><tbody><tr><td><img style="margin-left:3px;" border="0" src="images/New_ui/icon_menu_3.png"></td><td><div style="width:120px;"><script>lang(QIS_step3);</script></div></td></tr></tbody></table></div>

arrow
arrow
    文章標籤
    css pointer iframe function
    全站熱搜

    Yisin 發表在 痞客邦 留言(0) 人氣()