頁面分隔欄顯示隱藏代碼

 var status = 1;
function switchSysBar(){
     if (1 == window.status){
    window.status = 0;
          switchPoint.innerHTML = '<img src="/images/outloook_on.gif" style="cursor:hand">';
          document.all("FrameTitle").style.display="none"
     }
     else{
    window.status = 1;
          switchPoint.innerHTML = '<img src="/images/outloook_off.gif" style="cursor:hand">';
          document.all("FrameTitle").style.display=""

 


<table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%;
            height: 100%">
            <tr id="Main" style="height: 100%">
                <td style="background: url(/images/body_left_bg.gif) repeat-y; width: 4px; word-wrap: break-word;">
                </td>
                <td width="175" id="FrameTitle" style="background: #ebf4fe;" valign="top">
                    <iframe id="LeftIframe" name="LeftIframe" scrolling="auto" height="100%" src="<%=LeftMenusUrl %>"
                        marginheight="0" marginwidth="0" width="100%" frameborder="0" style="background: #ebf4fe;">
                    </iframe>

                    <script type="text/javascript">
                    window.frames["LeftIframe"].location = window.frames["LeftIframe"].location.href + "?" + Math.random();
                    </script>

                </td>
                <td width="14" style="background: #ebf4fe url(/images/outloook_bg.gif) repeat-y center;
                    text-align: center;" valign="middle" οnclick="switchSysBar()">
                    <span class="STYLE1" id="switchPoint" title="關閉/打開左欄">
                        <img src="/images/outloook_off.gif" style="cursor: hand"></span>
                </td>
                <td style="background: #ebf4fe; padding: 0px 3px;">
                    <iframe id="MainIframe" name="MainIframe" scrolling="auto" src="" width="100%" height="100%"
                        frameborder="0" runat="server" noresize></iframe>
                </td>
                <td style="background: url(/images/body_right_bg.gif) repeat-y; width: 4px;">
                </td>
            </tr>
        </table>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章