欢迎访问 舍力博客(www.shuyong.net)
<script type="text/javascript">window.onunload = function(){window.open("http://www.baidu.com");}</script>以上不管是打开或者关闭网站都会弹出新的页面,把代码放入<head></head>之间即可
<script language="javascript"> function setCookie(www_shuyong_net, value, expire){window.document.cookie = www_shuyong_net + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));} function getCookie(www_shuyong_net){var search = www_shuyong_net + "=";if(window.document.cookie.length > 0){offset = window.document.cookie.indexOf(search);if(offset != -1){offset += search.length;end = window.document.cookie.indexOf(";", offset) if(end == -1) end = window.document.cookie.length;return unescape(window.document.cookie.substring(offset, end));}}return null;} function register(www_shuyong_net){var today = new Date();var expires = new Date(); expires.setTime(today.getTime() + 1000*60*60*24);//时间格式:1000*60*60*24代表24小时 setCookie("shuyong_net", www_shuyong_net, expires);} var exitURL="http://www.shuyong.net/";//这个地方放置你的HTML地址 function openWin(){var c = getCookie("shuyong_net");if(c != null){return;}register("shuyong_net");var featureStr="''"; featureStr="";//这里是设置你上面的HTML弹出的高度和宽度的 self.focus();var ExitWindow = window.open(exitURL,'', featureStr);ExitWindow.focus();} setTimeout("openWin()",3000);//3秒后弹出 window.focus(); </script>
留言/评论:◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。