 | ";
hdyglist = hdyglist + "";
hdyglist = hdyglist + "| | ";
hdyglist = hdyglist + ""+ subtitle +" | ";
hdyglist = hdyglist + " |
";
document.getElementById("hdyglist").innerHTML = document.getElementById("hdyglist").innerHTML + hdyglist;
}
function format(n) //格式化数字为两位字符表示
{
var m=new String();
var tmp=new String(n);
if (n<10 && tmp.length<2)
{
m="0"+n;
}
else
{
m=n;
}
return m;
}
function WriteDateTo(yy,mm,n,hh,mi,se)
{
if (bUseTime)
{
outObject.value= yy + "-" + format(mm) + "-" + format(n) + " " + format(hh) + ":" + format(mi) + ":" + format(se); //注:在这里你可以输出改成你想要的格式
}
else
{
outObject.value= yy + "-" + format(mm) + "-" + format(n); //注:在这里你可以输出改成你想要的格式
}
}
var IntervalId
function Scroll(obj, h, s){
var h = h;
var s = s;
var obj = typeof(obj)=="string"?document.getElementById(obj):obj;
if(obj == undefined){
return false;
}
var status = obj.getAttribute("status")==null;
var oh = parseInt(obj.offsetHeight);
obj.style.height = oh;
obj.style.display = "block";
obj.style.overflow = "hidden";
if(obj.getAttribute("oldHeight") == null){
obj.setAttribute("oldHeight", oh);
}else{
var oldH = Math.ceil(obj.getAttribute("oldHeight"));
}
var reSet = function(){
if(status){if(oh < h){
oh = Math.ceil(h-(h-oh)/s);
obj.style.height = oh+"px";
}else{
obj.setAttribute("status",false);
window.clearInterval(IntervalId);
}}else{
obj.style.height = oldH+"px";
obj.removeAttribute("status");
window.clearInterval(IntervalId);
}}
IntervalId = window.setInterval(reSet,10);
return status;
}
function ScrollOver(obj){
var obj = typeof(obj)=="string"?document.getElementById(obj):obj;
if(obj == undefined){
return false;
}
var oldH = Math.ceil(obj.getAttribute("oldHeight"));
obj.style.height = oldH+"px";
obj.removeAttribute("status");
window.clearInterval(IntervalId);
}