Unconsciously, I have been working for a year and a half. The first company has stayed for three months. The first company has stayed for now and has made a lot of systems. I found that I still like to use Iframe when working on the system, and it is a classic Iframe, such
The common usage is to place an image at the top, display the System Logo, exit the system, and return to the home page function. Place the menu at left and click an option to display the corresponding interface at right; there is a separation standard between left and right. Click left to hide and then click left to show.
The advantage is that when the data on the right page is displayed, we only refresh the data on the right side, but do not refresh the top and left sides to reduce network traffic transmission. Iframe is certainly not used for commercial websites, because Web Crawlers seem to be not interested in the data in Iframe. The current company uses the master page, and it seems a bit inferior to Iframe.
Then, you can first think about how to complete the functions of the entire page. ,
For my company, there are too few people familiar with Div, and the interface layout still uses the traditional Table layout. The following section shows the Table layout.
<Table width = "100%" height = "100%" border = "0" cellspacing = "0" cellpadding = "0"> <tr> <td colspan = "3" height = ""100" bgcolor = "red"> top </td> </tr> <td width = "190" id = "frmTitle" noWrap = "noWrap" name = fmTitle "valign =" top "height =" 100% "> <iframe height =" 100% "width =" 100% "frameborder =" 0 "src =" left. aspx "name =" leftFrame "> </iframe> </td> <td width =" 6 "style =" width: 6px; background: #1568b4 "valign =" middle "height =" 100% "> <span id =" switchPoint "title =" close/Open sidebar "> <label onclick =" switchSysBar () "style =" cursor: pointer; "> click </label> </span> </td> <td valign =" top "width =" 100% "height =" 100% "> <iframe height =" 100%" width = "100%" frameborder = "0" name = "center" src = "right. aspx "> </iframe> </td> </tr> </table>
In order to click on left to display the page on the right, we need to pay special attention to the name value of Iframe on the right, because this value is very important, whether it is the target or window in <a href = "" target = "">. the target of open ("", target) specifies the name of the Iframe, that is, the target to be opened is in this value. I don't know if my explanation is clear.
Second, the method to disable the open is to display the td id as frmTitle and do not display the problem. The js Code is as follows:
<script type="text/javascript"> function switchSysBar() { var ssrc = document.all("frmTitle").style.display; if (ssrc == "none") { document.all("frmTitle").style.display = ""; } else { document.all("frmTitle").style.display = "none" } } </script>
This completes.