【网页特效代码-页面特效】网页中弹出小窗口,页面背景
渐突变为半透明[最新]
【网页特效代码-页面特效】网页中弹出小窗口,页面背景逐渐变为半透明.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>
弘速云是创建于2021年的品牌,运营该品牌的公司HOSU LIMITED(中文名称弘速科技有限公司)公司成立于2021年国内公司注册于2019年。HOSU LIMITED主要从事出售香港VPS、美国VPS、香港独立服务器、香港站群服务器等,目前在售VPS线路有CN2+BGP、CN2 GIA,该公司旗下产品均采用KVM虚拟化架构。可联系商家代安装iso系统。国庆活动 优惠码:hosu10-1产品介绍...
酷锐云是一家2019年开业的国人主机商家,商家为企业运营,主要销售主VPS服务器,提供挂机宝和云服务器,机房有美国CERA、中国香港安畅和电信,CERA为CN2 GIA线路,提供单机10G+天机盾防御,提供美国原生IP,支持媒体流解锁,商家的套餐价格非常美丽,CERA机房月付20元起,香港安畅机房10M带宽月付25元,有需要的朋友可以入手试试。酷锐云自开业以来一直有着良好的产品稳定性及服务态度,支...
v5.net一直做独立服务器这块儿的,自从推出云服务器(VPS)以来站长一直还没有关注过,在网友的提醒下弄了个6G内存、2核、100G SSD的美国云服务器来写测评,主机测评给大家趟雷,让你知道v5.net的美国云服务器效果怎么样。本次测评数据仅供参考,有兴趣的还是亲自测试吧! 官方网站:https://v5.net/cloud.html 从显示来看CPU是e5-2660(2.2GHz主频),...