﻿// JavaScript Document
//显示天气
document.write('<div class="floatleft" style="padding-left:36px; width:422px; text-align:left;">');
document.write('<div class="floatleft" style="padding-top:5px; width:160px; height:20px;"><iframe src="http://m.weather.com.cn/m/pn4/weather.htm?id=101070601T" width="160" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" allowTransparency="true"></iframe></div>');
document.write('<div class="floatleft" style="width:256px;padding-top:5px;" id="stime"><script>thissetTime()</script></div>');
document.write('<div class="clear"></div>');
document.write('</div>');
document.write('<div class="floatright" style="width:460px; padding-right:41px;text-align:left;padding-top:5px;"><MARQUEE scrollAmount=1 scrollDelay=4 width=460 align="left" onmouseover="this.stop()" onmouseout="this.start()"><span id="gonggao"></span></MARQUEE></div>');
document.write('<div class="clear"></div>');
jqueryAjaxLoad('get','/htmlfiles/gonggao.html','',function(d){
document.getElementById('gonggao').innerHTML=d;	
},'gonggao')
var week;
if(new Date().getDay()==0)   week="星期日"
if(new Date().getDay()==1)   week="星期一"
if(new Date().getDay()==2)   week="星期二"
if(new Date().getDay()==3)   week="星期三"
if(new Date().getDay()==4)   week="星期四"
if(new Date().getDay()==5)   week="星期五"
if(new Date().getDay()==6)   week="星期六"
		 function initArray()
		 {
		   this.length=initArray.arguments.length
		   for(var i=0;i<this.length;i++)
		   {
		   this[i+1]=initArray.arguments[i]  ;
		   }
		   }
		  function dw(str)
		  {
		   var str1=String(str);
		  if(str1.length=="1")
		  {
		  str1="0"+str1;
		  }
		  return str1;
		  }
 

		        
		                function thissetTime(){	
		                 today=new Date(); 
		document.getElementById("stime").innerHTML="今天是："+today.getFullYear()+"年"+dw((today.getMonth()+1))+"月"+dw(today.getDate())+"日 "+week+" "+dw(today.getHours())+":"+dw(today.getMinutes())+":"+dw(today.getSeconds())+"&nbsp;";
		         
		              window.setTimeout("thissetTime()",1000);
		 }
                             
		             thissetTime();
		       
