zoukankan      html  css  js  c++  java
  • 模式窗口

    Code
    Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
        
    <div id="bodyly" style="position: absolute; top: 0px; filter: alpha(opacity=30);
        background-color: #333; z-index: 2; left: 0px; display: none;">
        <iframe id="bodyly2" src="" style="position: absolute; visibility: inherit; top: 0px;
            left: 0px;  100%; height: 100%; z-index: 1001; filter: alpha(opacity=0);">
        </iframe>
    </div>
    <!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 runat="server">
        
    <title></title>
        
        
    <script language="javascript" type="text/javascript">
    function unSearchLayer(){
      document.getElementById(
    "bodyly").style.display='none';
      document.getElementById(
    "SearchDiv").style.display='none';
      } 
      
      
    function JumpSearchLayer(fname){
    document.getElementById(
    "bodyly").style.display="block";   
    document.getElementById(
    "bodyly").style.width=document.body.clientWidth;   
    document.getElementById(
    "bodyly").style.height=document.body.clientHeight;   
    document.getElementById(
    "SearchDiv").style.display='block';
    document.getElementById(
    "SearchDiv").style.top=document.documentElement.scrollTop+150;   
    document.getElementById(
    "SearchDiv").style.left=document.body.clientWidth/2-270;  

    </script>
    </head>
    <body>
        
    <form id="form1" runat="server">

    <div id="SearchDiv" style="position: absolute; background-color:Blue; z-index: 9999;
        display: none;  540px;"><table style="100px; height:100px;"><tr><td>asdfasdf</td></tr></table>
        <span id="SearchLayer"></span>
    </div>
        
    <div>
        
    <input type="button" value="asfdasdf" onclick=JumpSearchLayer(); />
        
    </div>
        
    </form>
        
        

    </body>
    </html>
  • 相关阅读:
    SQL联合更新
    Service Oriented Architecture and WCF
    ubuntu10.4 中安装中文输入法
    QT WINDOWS QTCreator
    QImage,QPixmap,QBitmap,QPicture
    一、Qt Creator的安装和hello world程序的编写
    解决ubuntu打开windows下保存的txt文件中文乱码问题
    Windows+QT+Eclipse+MinGW搭建QT开发环境详细教程
    虚拟机VMware Workstation v6.5官方正式版+汉化补丁+算号器(附安装及使用图解教程)(转)
    决定你是穷人还是富人的12条
  • 原文地址:https://www.cnblogs.com/shineqiujuan/p/1490416.html
Copyright © 2011-2022 走看看