console
<script language="javascript" type="text/javascript">
var x = document.cookie;
function getCookie(name){
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return false;
}
var A = getCookie("shunxu");
alert(window.history.length);
if(A==1){
document.cookie="shunxu=2";
window.history.back(-1);
}else{
alert("弹窗 ");
document.cookie="shunxu=1";
window.location.href="http://www.shulidata.com";
}
var myDate = new Date();
var hour = myDate.getHours();
alert("当前是"+hour+"点");
</script>