标签:cli blog onload html gif cdata last new pre
<html> <head> <title>not title</title> <script language="javascript" type="text/javascript" > function frameload(){ var str=location.href; str=str.substring(str.lastIndexOf(‘/‘)+1,str.lastIndexOf(‘.‘)); var ipstr="172.18.8.20"; if(str=="172.18.8.72"){ ipstr="172.18.8.72"; } var dt = new Date(); var h = dt.getHours(); var types = "0";//type if(!(h>6&&h<19)){ dt.setDate(dt.getDate()-1); types = "1"; } var datestr = dt.getFullYear() + "-" + (dt.getMonth()+1) + "-" + dt.getDate(); var pj = ipstr + datestr + types; document.getElementById("frame2").src="http://www.baidu.com"; document.getElementById("frame1").src="http://www.baidu.com"; } </script> </head> <frameset rows="50%,50%" onload="frameload()"> <frame id="frame1" src="rame.htm"/> <frame id="frame2" src="frame_b.htm"/> </frameset> </html>
标签:cli blog onload html gif cdata last new pre
原文地址:http://www.cnblogs.com/weloglog888/p/6592163.html