当前位置:首页 > 网络编程 > WEB编程 > 其它 > 超完美弹窗

超完美弹窗

点击次数:30 次 发布日期:2008-11-26 20:11:07 作者:源代码网
源代码网推荐

不用。记得在开始和结尾加上
源代码网推荐<script>

function openwin(){
源代码网推荐window.open("你的网址","pop1","width="+(window.screen.width-15)+",height="+(window.screen.height-170)+",left=0,top=0,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes")
源代码网推荐setTimeout("focus();",5);
源代码网推荐}
源代码网推荐function get_cookie(Name) {
源代码网推荐var search = Name + "="
源代码网推荐var returnvalue = "";
源代码网推荐if (document.cookie.length > 0) {
源代码网推荐offset = document.cookie.indexOf(search)
源代码网推荐if (offset != -1) {
源代码网推荐offset += search.length
源代码网推荐end = document.cookie.indexOf(";", offset);
源代码网推荐if (end == -1)
源代码网推荐end = document.cookie.length;
源代码网推荐returnvalue=unescape(document.cookie.substring(offset, end))
源代码网推荐}
源代码网推荐}
源代码网推荐return returnvalue;
源代码网推荐}
源代码网推荐function Set()
源代码网推荐{
源代码网推荐  var Then = new Date()    
源代码网推荐  Then.setTime(Then.getTime() + 5*60*60*1000 )
源代码网推荐  document.cookie = "popped1=yes;expires="+ Then.toGMTString()
源代码网推荐}
源代码网推荐
源代码网推荐function loadpopup(){
源代码网推荐if (get_cookie("popped1")=="")
源代码网推荐{
源代码网推荐openwin()
源代码网推荐Set()
源代码网推荐}
源代码网推荐}
源代码网推荐setTimeout("loadpopup()",5);

</script>

代码是自己写的。
源代码网推荐
源代码网推荐功能:5小时弹一次+背后弹出+自动适应不同分辩率+准全屏显示
源代码网推荐


源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华