求一个标准北京时间的源代码,只要时间不要日期的,我要插入到自己的网页!
2个回答
展开全部
<script> function bq(form){ form.wd.value = '北京时间 ' + form.wd.value; form.submit(); } function h(obj,url){obj.style.behavior='url(#default#homepage)';obj.setHomePage(url);} if (top.location != self.location) {top.location=self.location;} function ga(o,e){if (document.getElementById){a=o.id.substring(1); p = "";r = "";g = e.target;if (g) { t = g.id;f0 = g.parentNode;if (f0) {p = f0.id;h = f0.parentNode;if (h) r = h.id;}} else{h = e.srcElement;f0 = h.parentNode;if (f0) p = f0.id;t = h.id;}if (t==a || p==a || r==a) return true;window.open(document.getElementById(a).href,'_blank')}} function ss(w){window.status=w;return true;} function cs(){window.status='';} function c(){return true} function al_c(){return true} function al_c2(n,c){return true} </script> </span>北京标准时间:<span id="time">正在加载北京时间……</span></div> <script>(function(){var C="日一二三四五六";var B='<span style="font-size:20px">{4}:{5}:{6}</span>';var G=0;function E(I,H){return I.replace(/{(\d)}/g,function(J,K){return H[K]})}function D(H){return H<10?"0"+H:H}window.baidu_time=function(I){var H=I.time;if(G!=0){clearInterval(G);G=0}A(H);G=setInterval(function(){H+=1000;A(H)},1000)};function A(I){var H=new Date(I);document.getElementById("time").innerHTML=E(B,[H.getFullYear(),D((H.getMonth()+1)),D(H.getDate()),C.charAt(H.getDay()),D(H.getHours()),D(H.getMinutes()),D(H.getSeconds())])}function F(){var H=document.createElement("SCRIPT");H.src=" https://gss0.baidu.com/8aQDcnSm2Q5IlBGlnYG/app?module=beijingtime&t= "+new Date().getTime();document.getElementsByTagName("HEAD")[0].appendChild(H);setTimeout(function(){F()},60000)}F()})();</script>
易讯数据
2024-10-08 广告
2024-10-08 广告
易讯数据,www.data1688.com,系统集成包含北美、南美、欧洲、亚洲在内的全球200个国家1000万真实买家进出口采购产品的详细信息,每一条海关数据均是真实发生的采购记录,具有及时性,准确性和权威性。...
点击进入详情页
本回答由易讯数据提供
展开全部
<script language="JavaScript"> <!-- function get_time(){ var date = new Date(); var year = "", month = "", day = "", week = "", hour = "", minute = "", second = ""; year = date.getYear(); month = add_zero(date.getMonth() + 1); day = add_zero(date.getDate()); week = date.getDay(); switch (date.getDay()){ case 0: val = "星期天"; break case 1: val = "星期一"; break case 2: val = "星期二"; break case 3: val = "星期三"; break case 4: val = "星期四"; break case 5: val = "星期五"; break case 6: val = "星期六"; break } hour = add_zero(date.getHours()); minute = add_zero(date.getMinutes()); second = add_zero(date.getSeconds()); time_div.innerText = hour + ":" + minute + ":" + second ; } function add_zero(temp){ if(temp < 10) return "0" + temp; else return temp; } setInterval("get_time()", 1000); //--> </script> <font class="w12"><b> <div id="time_div"></div> </b></font>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询