如:百度文本格式生成 距离自动更新还有996分16秒
<style type="text/css">
.current{padding:20px;font: 20px “Microsoft YaHei”, Arial, Tahoma;color:red;width:auto;}
.over {display: none;position: absolute;top: 0;left: 0;width: 100%;height: 100%;background-color: #f5f5f5;opacity:0.8;z-index: 1000;}
.layout {display: none;position: absolute;top: 30%;left: 30%;width: 40%;height: 20%;z-index: 1001;text-align:center;}
.on td{background:#B3E7FF;}
</style>
<script type="text/javascript">
function showLoading()
{
document.getElementById("over").style.display = "block";
document.getElementById("layout").style.display = "block";
}
</script>
<script type="text/javascript">
function showLoading_ex(){
xmlHttp.open("get", "?moduleid=<?php echo $moduleid;?>&moduleid_1001=<?php echo $moduleid_1001 ?>&file=m_baidu&action=sitemaps_txt&idto=<?php echo $sell_items_txt;?>&f=sell&table=sell&mo=5", false);
xmlHttp.send(null);
xmlHttp.open("get", "?moduleid=<?php echo $moduleid;?>&moduleid_1001=<?php echo $moduleid_1001 ?>&file=m_baidu&action=sitemaps_txt&idto=<?php echo $company_items_txt;?>&f=company&table=company&mo=4", false);
xmlHttp.send(null);
window.location.href='?moduleid=3&moduleid_1001=31&file=m_baidu';
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
var xmlHttp;
if(window.ActiveXObject){xmlHttp = new ActiveXObject("Microsoft.xmlHTTP");
}
else if(window.ActiveXObject){
xmlHttp = new ActiveXObject("Msxml2.xmlHTTP.4.0");
}
else if(window.ActiveXObject){
xmlHttp = new ActiveXObject("Msxml2.xmlHTTP");
}
else if(window.XMLHttpRequest){
xmlHttp = new XMLHttpRequest();
}else{
alert("You browser security setting not allow to create XMLHTTPP object.")
}
var maxtime = <?php echo $sitemaps_update_txt;?>*60 //一个小时,按秒计算,自己调整!
function CountDown(){
if(maxtime>=0){
minutes = Math.floor(maxtime/60);
seconds = Math.floor(maxtime%60);
msg = "<font size=2.5 color=green>距离自动更新还有<font size=3 color=black>"+minutes+"</font>分<font size=3 color=black>"+seconds+"</font>秒</font>";
if(maxtime <= 2*60) msg = "<font size=2.5 color=red>距离自动更新还有<font size=3 color=black>"+minutes+"</font>分<font size=3 color=black>"+seconds+"</font>秒!注意:即将进行自动更新,数据量大可能造卡机,请勿关闭窗口,请耐心等待!</font>" ;
document.all["timer"].innerHTML=msg;
--maxtime;
}
else{
clearInterval(timer);
showLoading();
setTimeout(
function() {showLoading_ex();}
,"5000");
}
}
timer = setInterval("CountDown()",1000);
//-->
</SCRIPT>
<div id="over" class="over"></div>
<div id="layout" class="layout"><img src="admin/image/m_loading.gif" /><div class="current">DIDICHE.COM 操作执行中......</div></div>