<%@ Page language="c#" Codebehind="employee.aspx.cs" AutoEventWireup="false" Inherits="BBpage.employee" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>

<HEAD>
<title>employee</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<style type="text/css">
<!--
.u {
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 12px;
color: #000000;
font-weight: normal;
font-variant: normal;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
var Ison = 'n';
function StateClip()
{
if(blockDiv.style.visibility=='visible')
{
   blockDiv.style.visibility='hidden';
   Ison = 'n';
}
else
{
blockDiv.style.visibility='visible';
Ison = 'y';
}
//var e = document.all["lay1"].style;
}<!--
//function window.onunload()
//{
//        window.open ('exit.aspx','','height=50,width=50,scrollbars=no,resizable=no');
 //}
 
 function ChangeState(Img,StateNo)
 { 
  // alert('here');
  stateImg.src=Img;
 //parent.document.frames['DoJs']
 opener.parent.DoJs.ActUserState(StateNo); }
 
 
document.onmouseup = CloseClip; function CloseClip()
{
  if(Ison=='y')
  {
   blockDiv.style.visibility='hidden';
  }
}</script>主页的代码;</HEAD>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" MS_POSITIONING="GridLayout">
<div id=blockDiv  style="position:absolute; left:0px; top:53px; width:168px; height:65px; z-index:1; border: 2px none #000000; visibility: hidden;"> 
  <table width="100%" height="100%" border="1"  bordercolorlight=#DDDDDD bordercolordark=#ffffff bgcolor="#dddddd">
    <tr> 
      <td><table width="104%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="15%" height="22" align="center" background="images/state_bg_line.gif"><img src="pic/man2.gif" width="16" height="16"></td>
            <td width="85%" class="u"style="cursor:hand"  onMouseOver="this.bgColor='#7AA2FC';" onMouseOut="this.bgColor='#dddddd';" onClick="ChangeState('pic/man2.gif','1')">上线</td>
          </tr>
          <tr> 
            <td height="22" align="center"  background="images/state_bg_line.gif" bgcolor="#FF0000"><img src="pic/state2.gif" width="15" height="16" border="0"></td>
            <td valign="middle" class="u" style="cursor:hand" onMouseOver="this.bgColor='#7AA2FC';" onMouseOut="this.bgColor='#dddddd';" onClick="ChangeState('pic/state2.gif','2')">&nbsp;忙碌</td>
          </tr>
          <tr> 
            <td height="18" align="center" background="images/state_bg_line.gif"><img src="pic/man3.gif" width="16" height="16"></td>
            <td class="u" style="cursor:hand" onMouseOver="this.bgColor='#7AA2FC';" onMouseOut="this.bgColor='#dddddd';"  onClick="ChangeState('pic/man3.gif','4')">&nbsp;隐身</td>
          </tr>
        </table></td>
    </tr>
  </table>
</div>
<FONT face="宋体" color="gainsboro"></FONT> 
<table width="170" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td><img src="images/head.gif" width="170" height="22"></td>
  </tr>
  <tr> 
    <td height="34" background="images/member_state_bg.gif"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="6%">&nbsp;</td>
          <td width="16%"><table width="29" height="27" border="0" cellpadding="0" cellspacing="0" background="images/member_bg.gif">
              <tr>
                <td align="center" valign="middle"><a href="#"><img src="pic/man2.gif"  id="stateImg"width="16" height="16" border="0" onClick="StateClip()"></a><iframe src="InfoDoJs.aspx"  id="DoJs" name="DoJs" height="0" width="0"></iframe></td>
              </tr>
            </table></td>
          <td width="78%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr class="u"> 
                <td width="2"></td>
                <td width="59%"><%Response.Write(Session["UserName"]);%></td>
                <td width="33%">[在线]</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td><table width="170" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="23" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="75%"> <div align="center" class="u"><a href="#"><img src="images/company_emp_2.gif" width="24" height="58" border="0"></a></div></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><img src="images/cs_server_1.gif" width="24" height="59"></td>
              </tr>
              <tr> 
                <td><img src="images/installer_info_1.gif" width="24" height="59"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td> <div align="right"><img src="images/select_memu_5.gif" width="24" height="173"></div></td>
              </tr>
            </table></td>
          <td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td colspan="2"><img src="images/head_line_1.gif" width="146" height="3"></td>
              </tr>
              <tr> 
                <td width="98%" valign="bottom"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="341" > <IFRAME id="right" style="DISPLAY: block; WIDTH: 100%; HEIGHT: 100%" name="right" src="OutBar.aspx"
frameBorder="0" scrolling="no" bordercolor="#ffe9d2" bgcolor="#ffffff"></IFRAME> 
                      </td>
                    </tr>
                    <tr> 
                      <td height="5"><img src="images/line_3.gif" width="143" height="2"></td>
                    </tr>
                  </table></td>
                <td width="2%"><img src="images/right_line_2.gif" width="3" height="346"></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td colspan="2"><img src="images/line_4.gif" width="170" height="2"></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td><img src="images/button_line.gif" width="170" height="44"></td>
  </tr>
</table>
</body>
</HTML>浮动框InfoDoJs.aspx的代码。<%@ Page language="c#" Codebehind="InfoDoJs.aspx.cs" AutoEventWireup="false" Inherits="BBpage.InfoDoJs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>InfoDoJs</title>
<script language="javascript">
   function ActUserState(SNo)
   { 
     alert('here');
     document.all['StateNo'].vaule = SNo;
    Form1.submit();
 return;
   }
</script>
<%
ChangeState();
%>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" name="myform" method="post" action="InfoDoJs.aspx" runat="server">
<input type="button" name="Submit" value="按钮" onClick="ActUserState()">
  <input  name="StateNo" type="hidden" id="StateNo">
</form>
</body>
</HTML>