frameset 框架使用
2010-12-17 09:59 yuejianjun 阅读(361) 评论(0) 编辑 收藏 举报 frameset 要在body之上
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="work.aspx.cs" Inherits="WebPage.work" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>收录统计 - 中国搜索营销引擎</title>
<script type="text/javascript">
window.onload = function () {
var cond = window.location.search;
document.getElementById("aa").src = "baidu.com" + cond;
document.getElementById("bb").src = "main.aspx" + cond;
}
</script>
</head>
<frameset rows="*" cols="*" frameborder="no" border="0" framespacing="0">
<frameset cols="150,*" frameborder="no" border="0" framespacing="0">
<frame src="index.aspx" id="aa" noresize name="menu" scrolling="yes">
<frame src="main.aspx" id="bb" noresize name="main" scrolling="yes">
</frameset>
</frameset>
<noframes>
<body>
您的浏览器不支持框架!</body>
</noframes>
</html>