够cool的弹出说明页[网页特效]

王朝html/css/js·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>

<!--# 特效来源:http://www.webjx.com/js -->

<!-- 把下列代码加到<body>区域中 -->

<script language="JavaScript">

function WM_readCookie(name)

{

if(document.cookie == '')

return false;

else

return unescape(WM_getCookieValue(name));

}

var Read_cookie=WM_readCookie("yescnet_openday");

function openday()

{

Arrset=window.showModalDialog('http://www.webjx.com/img/200407082.htm','好吗','dialogWidth:435px;dialogHeight:297px;scroll:0;status:0;help:1;edge:raised');

setCookie("yescnet_openday",Arrset.charAt(0),1);

setCookie("yescnet_MIDw",Arrset.charAt(1),1);

}

//写入cookies

function setCookie(c_n,c_v,c_y)

{

var the_cookie = c_n + "=" + escape(c_v);

var the_date = new Date();

the_date .setYear(the_date.getYear() + c_y);

var the_cookie_date =the_date.toGMTString();

the_cookie = the_cookie +";expires=" + the_cookie_date;

document.cookie =the_cookie;

}

//读取cookies

function WM_getCookieValue(name)

{

var firstChar,lastChar;

var theBigCookie = document.cookie;

firstChar = theBigCookie.indexOf(name);

if(firstChar != -1)

{

firstChar +=name.length + 1;

lastChar = theBigCookie.indexOf(';', firstChar);

if(lastChar == -1) lastChar = theBigCookie.length;

return theBigCookie.substring(firstChar, lastChar);

} else

{

return false;

}

}

</script>

<base target="online_window">

<body onload="javascript:if(Read_cookie!=0)openday();">

[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航