Iframe左侧页面缩放

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
  <head>
    <style type="text/css">
html,body{
       margin:0px;
       height:100%;
}
.navPoint {
COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt
}
</style>
<script>
var ssrc = "";
$(document).ready(function(){
ssrc = "../images/main_55.gif";
});

function switchSysBar(){

if (ssrc=="../images/main_55.gif")
{
document.all("img1").src="../images/main_55_1.gif";
document.all("frmTitle").style.display="none"
ssrc = "../images/main_55_1.gif";
}
else
{

document.all("img1").src="../images/main_55.gif";
document.all("frmTitle").style.display=""
ssrc = "../images/main_55.gif";
}
}
</script>

</head>

<body style="height: 100%">
<table border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;height: 100%">
  <tr style="height: 100%">
    <td width="250" height="100%" id=frmTitle noWrap name="fmTitle" align="center" valign="top">
       <iframe name="leftFrame" height="98%" width="250"  border="0" frameborder="0" scrolling="no">
       </iframe>
    </td>
    <td width="2"  style="width:6px;" height="100%" valign="middle" bgcolor="1873aa" onclick="switchSysBar()">
    <SPAN class=navPoint id=switchPoint title=关闭/打开左栏>
    <img src="../images/main_55.gif" name="img1" width=6 height=40 id=img1>
    </SPAN>
    </td>
    <td style="width:100%;" height="100%" align="center" valign="top">
    <iframe name="mainFrame" height="98%" width="100%" border="0" frameborder="0" scrolling="no">
    </iframe>
    </td>
  </tr>
</table>
</body>
</html>

你可能感兴趣的:(iframe)