<%@ Page Title="主页" Language="C#" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="winload._Default" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>会员管理</title>
<style type="text/css">
body{ margin:0px; padding:0px; list-style:none;}
.email{ width:140px; height:500px; float:left; padding:5px 10px; background:url(images/bg.jpg); font-family:"微软雅黑"; font-weight:bold; font-size:12px;}
.email ul{ margin:0px; padding:0px; list-style:none;}
.email ul li{ width:140px;line-height:30px; float:left; display:block; border-bottom:dashed 1px #CCC;}
.email ul li a{ text-decoration:none; color:#000;}
.email ul li a:hover{ color:#207100;}
.email ul li img{ float:left; margin:5px 10px 0 0;}
</style>
</head>
<body bgcolor="#199130">
<form id="form1" runat="server" >
<div class="email">
<ul>
<li id="liWriteEmail" οnclick="onchangeTag(1)">
<img src="images/1.png" width="16" height="16" alt="写邮件" /><a href="#">写邮件11</a>
</li>
<li id="liReceiveEmail" οnclick="onchangeTag(2)">
<img src="images/2.png" width="16" height="16" alt="收件箱" /><a href="#">收件箱</a>
</li>
<li id="liSendEmail" οnclick="onchangeTag(3)">
<img src="images/3.png" width="16" height="16" alt="发件箱" /><a href="#">发件箱</a>
</li>
<li id="liUnusedEmail" οnclick="onchangeTag(4)">
<img src="images/4.png" width="16" height="16" alt="废件箱" /><a href="#">废件箱</a>
</li>
</ul>
</div>
</form>
<div style="color: #FFF;">
<iframe src="1.aspx" id="body1" scrolling="auto" frameborder="0"
width="100%" height="700" style="vertical-align: top;"></iframe>
</div>
</body>
</html>
<script type="text/javascript" language="javascript">
window.onload = function ()//一般是在页面全部加载完成之后会自动的执行这个函数
{
//parent.document.all("Email_Left").style.height=document.body.scrollHeight;
//parent.document.all("Email_Right").style.height=document.body.scrollHeight;
var herf = document.location.href; //获取当前的地址
alert(herf);
}
</script>
<script type="text/javascript" language="javascript">
window.onload = function () {
// parent.document.all("Email_Left").style.height=document.body.scrollHeight;
// parent.document.all("Email_Right").style.height=document.body.scrollHeight;
alert("加载完成");
}
function onchangeTag(num) {
var tem_widget = parent.document.all("body1");
// alert("点击事件" + Email_Right.toString);
switch (num) {
case 1:
tem_widget.src = "1.aspx";
break;
case 2:
tem_widget.src = "2.aspx";
break;
case 3:
tem_widget.src = "3.aspx";
break;
case 4:
tem_widget.src = "4.aspx";
break;
}
if (num.toString().length >= 2) {
var rnum = num.toString().substring(1, 2);
tem_widget.src = "Default.aspx?type=" + rnum;
}
}
</script>
CodeBehind="Default.aspx.cs" Inherits="winload._Default" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>会员管理</title>
<style type="text/css">
body{ margin:0px; padding:0px; list-style:none;}
.email{ width:140px; height:500px; float:left; padding:5px 10px; background:url(images/bg.jpg); font-family:"微软雅黑"; font-weight:bold; font-size:12px;}
.email ul{ margin:0px; padding:0px; list-style:none;}
.email ul li{ width:140px;line-height:30px; float:left; display:block; border-bottom:dashed 1px #CCC;}
.email ul li a{ text-decoration:none; color:#000;}
.email ul li a:hover{ color:#207100;}
.email ul li img{ float:left; margin:5px 10px 0 0;}
</style>
</head>
<body bgcolor="#199130">
<form id="form1" runat="server" >
<div class="email">
<ul>
<li id="liWriteEmail" οnclick="onchangeTag(1)">
<img src="images/1.png" width="16" height="16" alt="写邮件" /><a href="#">写邮件11</a>
</li>
<li id="liReceiveEmail" οnclick="onchangeTag(2)">
<img src="images/2.png" width="16" height="16" alt="收件箱" /><a href="#">收件箱</a>
</li>
<li id="liSendEmail" οnclick="onchangeTag(3)">
<img src="images/3.png" width="16" height="16" alt="发件箱" /><a href="#">发件箱</a>
</li>
<li id="liUnusedEmail" οnclick="onchangeTag(4)">
<img src="images/4.png" width="16" height="16" alt="废件箱" /><a href="#">废件箱</a>
</li>
</ul>
</div>
</form>
<div style="color: #FFF;">
<iframe src="1.aspx" id="body1" scrolling="auto" frameborder="0"
width="100%" height="700" style="vertical-align: top;"></iframe>
</div>
</body>
</html>
<script type="text/javascript" language="javascript">
window.onload = function ()//一般是在页面全部加载完成之后会自动的执行这个函数
{
//parent.document.all("Email_Left").style.height=document.body.scrollHeight;
//parent.document.all("Email_Right").style.height=document.body.scrollHeight;
var herf = document.location.href; //获取当前的地址
alert(herf);
}
</script>
<script type="text/javascript" language="javascript">
window.onload = function () {
// parent.document.all("Email_Left").style.height=document.body.scrollHeight;
// parent.document.all("Email_Right").style.height=document.body.scrollHeight;
alert("加载完成");
}
function onchangeTag(num) {
var tem_widget = parent.document.all("body1");
// alert("点击事件" + Email_Right.toString);
switch (num) {
case 1:
tem_widget.src = "1.aspx";
break;
case 2:
tem_widget.src = "2.aspx";
break;
case 3:
tem_widget.src = "3.aspx";
break;
case 4:
tem_widget.src = "4.aspx";
break;
}
if (num.toString().length >= 2) {
var rnum = num.toString().substring(1, 2);
tem_widget.src = "Default.aspx?type=" + rnum;
}
}
</script>