谁有一个在IE,FF,下都兼容的JS日历代码

来源:百度知道 编辑:UC知道 时间:2024/05/13 05:55:47
还补充下:是一条线的日历代码

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Canlender--JavaScript</title>
<style>
td {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
cursor: hand;
}
</style>

</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="180">
<tr><td id=cc>
</td></tr></table>
</body>
<script language="JavaScript">
function RunNian(The_Year)
{
if ((The_Year%400==0) || ((The_Year%4==0) && (The_Year%100!=0)))
return true;
else
return false;
}
function GetWeekday(The_Year,The_Month)
{

var Allday;
Allday = 0;
if (The_Year>2000)
{

for (i=2000 ;i<The_Year; i++)
if (