【网页特效代码-页面特效】网页中弹出小窗口,页面背景
渐突变为半透明[最新]
【网页特效代码-页面特效】网页中弹出小窗口,页面背景逐渐变为半透明.txt我是天使回不去天堂是因为体重的原因。别人装处我只好装经验丰富。泡妞就像挂QQ每天哄她2个小时很快就可以太阳了。
<!DO CTYPE,,,,,html,,,,,PUBLIC,,,,,"-
//W3 C//DTD,,,,,XHTML,,,,,1.0,,,,,Transitional//EN",,,,,"http:
//;>
<head>
<ti tl e>网页中弹出小窗口,页面背景逐渐变为半透明-,291911320</ti tle>
<s tyle>html,body{font-size:12px;margin:0px;height:100%;}
.mesWindow{border:#666,,,,,1 px,,,,,solid;background:#fff;}
.mesWindowTop{border-bottom:#eee,,,,,1 px,,,,,solid;margin-left:4px;padding:3px;font-weight:bold;text-align:left;font-size:12px;}
.mesWindowContent{margin:4px;font-size:12px;}
.mesWindow,,,,,.close{height:15px;width:28px;border:none;cursor:pointer;text-decoration:underline;background:#fff}
</s tyle>
<script>va的可见状态function,,,,,setSelectState(state)
{
var,,,,,objl=document.getElementsByTagName('select');for(var,,,,,i=0;i<objl.length;i++){objl[i].style.visibility=state;
}
}function,,,,,mousePosition(ev)
{if(ev.pageX,,,,, | | ,,,,,ev.pageY)
{return,,,,,{x:ev.page};
}return,,,,,{x:ev.c
Top
};
}
//弹出方法function,,,,,showMes sageBox(wTitle,content,pos,wWidth)
{closeWindow();var,,,,,bWidth=parseInt(document.documentElement.scrollWidth);var,,,,,bHeight=parseInt(document.documentElement.scrollHeight);if(isIe){
setSelectState('hidden');}va;b ac k.i d="b ac k";var,,,,,styleS tr="top:0px;le ft:0px;po sition:abs olute;background:#666;width:"+bWidth+"px;height:"+bHeight+"px;";s tyleS tr+=(i sI e)?"filter:alpha(opacity=0);":"opacity:0;";b ac k.s tyl e.c s s Te xt=style S tr;document.body.appendChild(back);showB ackground(back,50);va;mesW.id="mesWindow";mesW.className="mesWindow";mesW.innerHTML="<div,,,,,clas s='mesWindowTop'><table,,,,,width='100%',,,,,height='100%'><tr><td>"+wTitle+"</td><td,,,,,s tyle='width:1 px;'><input,,,,,type='button关闭窗口
关闭
',,,,,/></td></tr></table></div><div,,,,,class='mesWindowContent',,,,,id='mesWindowContent'>"+content+"</div><div,,,,,clas s='mesWindowBottom'></div>";s tyleS tr="le ft:"+(((pos.x-wWidth)>0)?(pos.x-wWidth):pos.x)+"px;top:"+(pos.y)+"px;position:absolute;width:"+wWidth+"px;";mesW.style.cs sText=styleStr;document.body.appendChild(mesW);
}
//让背景渐渐变暗
function,,,,,showB ackground(obj ,endInt)
{if(isIe)
{obj .filters.alpha.opacity+=1;if(obj .filters.alpha.opacity<endInt)
{setTimeout(function(){showBackground(obj ,endInt)},5);
}
}else{var,,,,,al=parseFloat(obj.style.opacity);al+=0.01;obj .s tyl e.op acity=al;if(al<(endInt/100))
{s etTimeout(function(){showB ackground(obj,endInt)},5);}
}
}
//关闭窗口function,,,,,closeWindow()
{if(document.getElementById('back')!=null)
{document.getElementById('back').parentNode.removeChild(document.getElementById('b ac k'));
}if(document.getElementById('mesWindow')!=null)
{document.getElementById('me sWindow').parentNode.removeChild(document.getElementById('mesWindow'));
}if(isIe){setSelectState('');}
}
//测试弹出function,,,,,testMessageBox(ev)
{va;messContent=
'>消息正文</div>";showMessageBox();
}
</script>
</head>
<b o dy>
<div,,,,,s tyle="padding:20px">
<dix(event);">弹出窗口</a></div>
<div,,,,,style="text-align:left;padding-left:20px;padding-top:10px";><select,,,,
,ID="S elect1",,,,,NAME="S elect1"><option>下拉</option></s elect>弹出窗口时会将其
隐藏关闭时会让其显示 目的是在IE中防止弹出的DIV挡不住下拉框</di v>
<di
Box(event);">弹出窗口</a></div>
<diox(event);">弹出窗口</a></div>
</div>
</b o dy>
</html>
ZJI原名维翔主机,是原来Wordpress圈知名主机商家,成立于2011年,2018年9月更名为ZJI,提供香港、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册业务。ZJI今年全新上架了台湾CN2线路服务器,本月针对香港高主频服务器和台湾CN2服务器提供7折优惠码,其他机房及产品提供8折优惠码,优惠后台湾CN2线路E5服务器月付595元起。台湾一型CPU:Inte...
昨天,有在"阿里云秋季促销活动 轻量云服务器2G5M配置新购年60元"文章中记录到阿里云轻量服务器2GB内存、5M带宽一年60元的活动,当然这个也是国内机房的。我们很多人都清楚备案是需要接入的,如果我们在其他服务商的域名备案的,那是不能解析的。除非我们不是用来建站,而是用来云端的,是可以用的。这不看到其对手腾讯云也有推出两款轻量服务器活动。其中一款是4GB内存、8M带宽,这个比阿里云还要狠。这个真...
ZJI是成立于2011年原Wordpress圈知名主机商—维翔主机,2018年9月更名为ZJI,主要提供香港、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册业务。本月商家针对香港阿里云线路独立服务器提供月付立减270-400元优惠码,优惠后香港独立服务器(阿里云专线)E3或者E5 CPU,SSD硬盘,最低每月仅480元起。阿里一型CPU:Intel E5-2630L...