层显示

news/2024/5/18 14:54:28 标签: Google, JavaScript, jQuery, CSS, XHTML

<!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>
    <title>无标题页</title>
    <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#res").css("left",($(window).width()-$("#res").width())/2+"px");
            $("#res").css("top",($(window).height()-$("#res").height())/2+"px");
            $("#Text1").focus(function(){
                $("#res").fadeIn();
            })
            $("#Button1").click(function(){
                $("#Text1").val($("#result").html());
                $("#res").fadeOut();
            })
            $("input[type=checkbox]").click(function(){
                if($(this).attr("checked")==true)
                    $("#result").append($(this).val()+",");
                else
                     $("#result").html($("#result").html().replace($(this).val(),""));
            })
        })
    </script>
</head>
<body style="margin:0 auto; padding:0; text-align:center;">
    <input id="Text1" type="text" style="height:20px;border:1px solid #ccc;" />
    <div id="res" style="width:300px;height:300px;border:1px solid #ccc;z-index:10; background:yellow; FILTER:alpha(opacity=30);opacity=0.3;position:absolute; display:none;">
        <input id="Button1" type="button" value="确定" /><span id="result"></span><br />
        <input id="Checkbox1" type="checkbox" value="youku"/>youku
        <input id="Checkbox2" type="checkbox" value="tudou" />tudou
        <input id="Checkbox3" type="checkbox" value="baidu" />baidu
        <input id="Checkbox4" type="checkbox" value="google" />google
    </div>
</body>
</html>

<script type="text/javascript"><!-- google_ad_client = "pub-1985112462197986"; /* 新广告 336x280, 创建于 10-8-20 */ google_ad_slot = "6915893334"; google_ad_width = 336; google_ad_height = 280; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><script type="text/javascript"><!-- google_ad_client = "pub-1985112462197986"; /* 336x280, 创建于 10-6-25 */ google_ad_slot = "9255958887"; google_ad_width = 336; google_ad_height = 280; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

http://www.niftyadmin.cn/n/1127268.html

相关文章

bandari

如果试过在宁静的夜里沉思&#xff0c;倾听这个世界在转了一天之后究竟想说些什么&#xff0c;那么你该会同意&#xff0c;其实真正的寂静&#xff0c;并非是全然无声的。夜晚的寂静&#xff0c;是由一种如泡沫般细腻、如薄纱般绵密的声响所编织成的。它随着空气存在&#xff0…

Android第一个个人APP(帐号助手)

第一个app上线了&#xff0c;关于帐号保存的一个app。本地保存&#xff0c;无须联网。 下载地址为&#xff1a;http://android.myapp.com/myapp/detail.htm?apkNamecom.weeky.accounthelper app截图例如以下&#xff1a; 请大家多多支持&#xff0c;做的不好&#xff0c;敬请谅…

在OS X安装Docker

2019独角兽企业重金招聘Python工程师标准>>> 在学习Docker的过程中仔细的阅读了官方的入门教程, 为加深学习的印象, 翻译此教程, 也同时方便他人学习使用. 目录 开始使用Docker在OS X安装Docker理解镜像(images)和容器(containers)搜索&运行whalesay镜像构建你自…

HTML的前世今生

HTML的基础知识扫盲 作者&#xff1a;尹正杰 版权声明&#xff1a;原创作品&#xff0c;谢绝转载&#xff01;否则将追究法律责任。 三年前&#xff0c;我就听周围的一些工程师说&#xff0c;python就是一个脚本语言&#xff0c;没啥好学的&#xff0c;学JAVA吧&#xff0c;pyt…

testNG入门详解

TestNG 的注释: DataProvider ExpectedExceptions Factory Test Parameters <suite name"ParametersTest"><test name"Regression1"><classes><class name"com.example.ParameterSample" /><class name"com.exa…

three.js(五) 地形纹理混合

地形生成通常使用高度图&#xff0c; 而高度图的生成可以使用绘图工具&#xff0c;或者通过分形算法生成&#xff0c;例如square-diamond, fbm方法。这里采用简单求平均值随机波动的方法。对于一个2^n1 * 2^n1 的网格&#xff0c; 中心点的高度是四角点的平均值加随机偏移&a…

加息对股市影响|加息会有什么后果

中国历史上五次加息对股指产生的影响 第一、二次加息&#xff08;1993年5月15日、7月11日&#xff09;&#xff1a;央行采取了两次升息措施&#xff0c;一年存款利率由6.3&#xff05;增加到了9.15&#xff05;。这两次加息&#xff0c;使得首个交易日沪指分别下跌27.43点及23.…

Eclipse 3.0.1插件方案(Java、c#版)

Eclipse 3.0.1插件方案(Java、c#版) Bromon原创 请尊重版权 Eclipse 3.0推出已经好几个月了&#xff0c;但是我一直都在继续使用2.1.4&#xff0c;等的就是各种插件的稳定生机。最近在Eclipse 3.0.1的平台上稍有操练&#xff0c;觉得插件的功能更加丰富强大&#xff0c;安装也…