最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

juery框架寫的彈窗效果適合新手

 更新時間:2013年11月27日 17:33:06   作者:  
彈窗效果想必大家都有見到過吧,在本文將為大家介紹下使用juery框架來寫個適合新手學(xué)習(xí)的彈窗效果
本人新手寫點(diǎn)代碼有點(diǎn)村,希望大家多多包含?。。。。。?
復(fù)制代碼 代碼如下:

<html>
<head>
<title>js彈窗效果</title>
<meta http-equiv="content-type" content="text/html charset=gb2312">
<script language="javascript" src="jquery-1.4.js"></script>
</head>

<script language="javascript">
//document.body.offsetWidth="512px";
function mina(){
$("#dv").css("display","block");
var a = $(document).height();
var b = $(window).width();
var h =$(window).height();
f = (b-300)/2;
d =(h-300)/2;
$("#dv").css("margin-top",d);
$("#dv").css("margin-left",f);
$("#zhezhao").toggle();
$("#zhezhao").css("width",b);
$("#zhezhao").css("height",a);
}
function nin(){
$("#dv").css("display","none");
$("#zhezhao").toggle();
}
</script>
<body>
<div style="display:none;position:absolute;z-index:100;background:#ccc" id="zhezhao"></div>
<input type="button" value="點(diǎn)擊" onclick="mina()">
<div id="dv" style="width:300px;height:300px;border:1px solid red;display:none;position:absolute;z-index:1000;background:white;">
<div><span id="ss"style="width:30px;height:30px;border:1px solid blue;background:black;float:right;" onclick="nin()"></span></div>
</div>
<table align="center" border="1" width="888" height="668">
<tr>
<td align="center">haha</td>
</tr>
</table>
</body>
</html>

如果對你有幫助也算沒有白白上傳?。。。。。。ㄐ枰私鈐query框架)

相關(guān)文章

最新評論

邹城市| 罗江县| 琼海市| 邮箱| 盐边县| 阳曲县| 乐昌市| 玉龙| 呼玛县| 手游| 平和县| 镇平县| 遂昌县| 中山市| 岫岩| 莒南县| 浦县| 元氏县| 和林格尔县| 肃南| 易门县| 西盟| 凯里市| 广汉市| 漯河市| 玉山县| 阿鲁科尔沁旗| 南雄市| 保定市| 六盘水市| 霍山县| 夹江县| 桦南县| 新乡县| 景洪市| 禹城市| 托里县| 小金县| 丹寨县| 林周县| 吉林市|