﻿function AddFavorite(sURL, sTitle)
{
    try
   {
         window.external.addFavorite(sURL, sTitle);
   }
    catch (e)
   {
        try
        {
             window.sidebar.addPanel(sTitle, sURL, "");
        }
        catch (e)
        {
             alert("您可以尝试通过快捷键CTRL + D 添加书签~");
        }
   }
}
//var a=document.getElementById("ml")
//var b=document.getElementById("mk")
//var c=document.getElementById("mkb")
//if(b&&c)
//{
//if (b.scrollHeight<a.scrollHeight)     //很多人在这里写成了a.style.height，经测试不行。
//{
//c.style.height=a.scrollHeight-55+"px"; //在实际操作中因为左边有最小高度，此处可设定成了固定值。
//}
//}
function showweek() 
{now = new Date()  
　　if (now.getDay() == 0) return ("星期日") 
　　if (now.getDay() == 1) return ("星期一") 
　　if (now.getDay() == 2) return ("星期二") 
　　if (now.getDay() == 3) return ("星期三") 
　　if (now.getDay() == 4) return ("星期四") 
　　if (now.getDay() == 5) return ("星期五") 
　　if (now.getDay() == 6) return ("星期六") 
} 
function showdate() 
{ 
　　var now = new Date() 
　　var year = now.getYear() 
　　var month = now.getMonth()+1 
　　var day = now.getDate() 
　　return year+"年"+month+"月"+day+"日" 
}
