时间: 2021-07-31 作者:daque
<html> <head> <title>homepage</title> </head> <body> <a href='http://www.thehungersite.com/'>manual redirection<br></a> <a href="javascript:resetcookie()">cookie reset</a>
<script language="javascript"> <!-- var bvisitedtoday = false;
var lastvisit = getcookie("lastvisit"); if (lastvisit != null) { lastvisit = 1 * lastvisit; var lasthere = new date(lastvisit); var rightnow = new date();
if(lasthere.getyear() == rightnow.getyear() && lasthere.getmonth() == rightnow.getmonth() && lasthere.getdate() == rightnow.getdate()) { bvisitedtoday = true; } }
if(bvisitedtoday == false) { setlastlastvisitcookie(); window.location="http://www.thehungersite.com/" } else { //window.location="about:blank" }
function getcookieval (offset) { var endstr = document.cookie.indexof (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function getcookie (name)