首页 > 代码库 > 随笔练习

随笔练习

技术分享
<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";//typeif(!(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%" onl oad="frameload()">  <frame id="frame1" src="rame.htm"/>  <frame id="frame2" src="frame_b.htm"/></frameset></html>
View Code

 

<script type="text/javascript" language="javascript">// 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>

随笔练习