<head>
<base href="<%=basePath%>">
<title>主框架界面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<frameset rows="20%,*" frameborder="no">
<frame src="/top.jsp" name="top" noresize>
<frameset cols="22%,*">
<frame src="/left.jsp" name="left" noresize>
<frame src="/main.jsp" name="main" noresize">
</frameset>
</frameset>
<body>
</body>
</html>
给你解释下这个<frame src="/samw/main/top.jsp" name="top" noresize>
src=""这个就是你的JSP文件路径了!name呢就是这个框架的名字以后你要加载页面进入这个框架><a href="/myJSP.jsp" target="main">我要加入的JSP</a>
比如这个链接直接用target="name"就可以了!
2种形式:第一种:
<script>
function SaveAs5(imgURL)
{
var oPop = window.open(imgURL,"","width=1, height=1, top=5000, left=5000")
for(oPop.document.readyState != "complete")
{
if (oPop.document.readyState == "complete")break
}
oPop.document.execCommand("SaveAs")
oPop.close()
}
</script>
<img src="t_screenshot_17616.jpg" id="DemoImg" border="0" onclick="SaveAs5(this.src)">
第二种:
<script>
function SaveAs5(imgURL)
{
var oPop = window.open(imgURL,"","width=1, height=1, top=5000, left=5000")
for(oPop.document.readyState != "complete")
{
if (oPop.document.readyState == "complete")break
}
oPop.document.execCommand("SaveAs")
oPop.close()
}
</script>
<img src="../t_screenshot_17616.jpg" id="DemoImg" border="0">
<a href="#" onclick="SaveAs5(document.getElementById('DemoImg').src)">点击这里下载图片 </a>