http://www.21page.net/public/calendar.asp
把这个程序扒下来就可以了

解决方案 »

  1.   

    Meixx 的日历:calendar.js
    //Copyright by GEE department of haihuisoft company
    //All right reserved
    //author: Bi Adem Zheng @2004-05-21 12:50
    //author: Liu James Ming @2004-05-21 12:50
    //author: Niall O'Cuilinn @2004-11-12
    document.write("<div id=aCalendarLayer style='position: absolute; z-index: 9999; width: 140; height: 200; display: none'>");
    document.write("<iframe name=aCalendarIframe scrolling=no frameborder=0 width=100% height=100%></iframe></div>");
    document.write("<div id=jCalendarLayer style='position: absolute; z-index: 9999; width: 140; height: 193; display: none'>");
    document.write("<iframe name=jCalendarIframe scrolling=no frameborder=0 width=100% height=100%></iframe></div>");function writeIframe()
    {
    var strIframe = 
    "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>"+
    " <style>"+
    " *{"+
    " font-size: 12px;"+ 
    " font-family: 瀹嬩綋;"+
    " }"+
    " .bg{"+
    " color: "+ WebCalendar.lightColor +";"+ 
    " cursor: default;"+ 
    " background-color: "+ WebCalendar.darkColor +";"+
    " }"+
    " table#tableMain{"+ 
    " width: 140;"+ 
    " height: 180;"+
    " }"+
    " table#tableWeek td{"+
    //" color: "+ WebCalendar.lightColor +";"+
    " }"+
    " table#tableDay  td{"+ 
    //" font-weight: bold;"+
    " }"+
    " td#AmenYearHead, td#amen1YearMonth{"+
    " color: "+ WebCalendar.wordColor +";"+
    " }"+
    " .out { "+
    " text-align: center;"+
    " border-top: 1px solid "+ WebCalendar.DarkBorder +";"+ 
    " border-left: 1px solid "+ WebCalendar.DarkBorder +";"+
    " border-right: 1px solid "+ WebCalendar.lightColor +";"+ 
    " border-bottom: 1px solid "+ WebCalendar.lightColor +";"+
    " }"+
    " .over{"+ 
    " text-align: center;"+ 
    " border-top: 1px solid #FFFFFF;"+ 
    " border-left: 1px solid #FFFFFF;"+
    " border-bottom: 1px solid "+ WebCalendar.DarkBorder +";"+ 
    " border-right: 1px solid "+ WebCalendar.DarkBorder +";"+
    " }"+
    " input{"+ 
    " border: 1px solid "+ WebCalendar.darkColor +";"+ 
    " padding-top: 1px;"+ 
    " height: 18;"+
    " cursor: hand;"+
    " color:"+ WebCalendar.wordColor +";"+ 
    " background-color: "+ WebCalendar.btnBgColor +";"+
    " }"+
    "</style></head>"+
    "<body onselectstart='return false' style='margin: 0px' oncontextmenu='return false'>"+
    "<form name=amen>"; if (WebCalendar.drag){ 
    strIframe += 
    "<script language=javascript>"+
    " var drag=false, cx=0, cy=0, amen_o = parent.WebCalendar.calendar; "+
    " function document.onmousemove(){"+
    " if(parent.WebCalendar.drag && drag){"+
    " if(amen_o.style.left=='')"+
    " amen_o.style.left=0;"+ 
    " if(amen_o.style.top=='')"+
    " amen_o.style.top=0;"+
    " amen_o.style.left = parseInt(amen_o.style.left) + window.event.clientX-cx;"+
    " amen_o.style.top  = parseInt(amen_o.style.top)  + window.event.clientY-cy;"+
    " }"+
    " }"+
    " function document.onkeydown(){ "+
    " switch(window.event.keyCode){ "+ 
    " case 27 : parent.hiddenCalendarA(); break;"+
    " case 37 : parent.prevM(); break; "+
    " case 38 : parent.prevY(); break; "+
    " case 39 : parent.nextM(); break; "+
    " case 40 : parent.nextY(); break;"+
    " case 84 : document.forms[0].today.click(); break;"+
    " } "+
    " window.event.keyCode = 0;"+ 
    " window.event.amen_returnValue= false;"+
    " }"+
    " function dragStart(){"+
    " cx=window.event.clientX; "+
    " cy=window.event.clientY; "+
    " drag=true;"+
    " }"+
    "</script>";
    } strIframe += 
    "<select name=tmpYearSelect  "+
    " onblur='parent.hiddenSelect(this)' style='z-index:1;position:absolute;top:3;left:40;display:none'"+
    " onchange='parent.WebCalendar.thisYear =this.value; parent.hiddenSelect(this); parent.writeCalendar();'>"+
    "</select>"+
    "<select name=tmpMonthSelect "+
    " onblur='parent.hiddenSelect(this)' style='z-index:1; position:absolute;top:3;left:103;display:none'"+
    " onchange='parent.WebCalendar.thisMonth=this.value; parent.hiddenSelect(this); parent.writeCalendar();'>"+
    "</select>"+
    "<table id=tableMain  border=1 cellspacing=2 cellpadding=0>"+
    "<tr><td width=100% height=19 bgcolor='"+ WebCalendar.lightColor +"'>"+
    "   <table width=100% id=tableHead border=0 cellspacing=1 cellpadding=0>"+
    " <tr align=center>"+
    " <td width=10.5% height=19 class=bg title='Previous Month&#13;Hot Key锛氣哱uFFFD' style='cursor: hand' onclick='parent.prevM()'><b>&lt;&nbsp;</b></td>"+
    " <td>Year</td>"+
    "     <td width=43% id=AmenYearHead  title='Click here to Select year' onclick='parent.funYearSelect(parseInt(this.innerText, 10))'"+
    "         onmouseover='this.bgColor=parent.WebCalendar.darkColor; this.style.color=parent.WebCalendar.lightColor'"+
    "         onmouseout='this.bgColor=parent.WebCalendar.lightColor; this.style.color=parent.WebCalendar.wordColor'></td>"+"<td>Month</td>"+
    "     <td width=36% id=amen1YearMonth title='Click here to Select Month' onclick='parent.funMonthSelect(parseInt(this.innerText, 10))'"+
    "         onmouseover='this.bgColor=parent.WebCalendar.darkColor; this.style.color=parent.WebCalendar.lightColor'"+
    "     onmouseout='this.bgColor=parent.WebCalendar.lightColor; this.style.color=parent.WebCalendar.wordColor'></td>"+
    "     <td width=10.5% class=bg title='Next Month&#13;Hot Key锛氣啋' onclick='parent.nextM()' style='cursor: hand'><b>&nbsp;&gt;</b></td>"+
    " </tr>"+
    " </table>"+
    "</td></tr>"+
    "<tr><td height=20>"+
    " <table id=tableWeek border=1 width=100% cellpadding=0 cellspacing=0 ";
    if(WebCalendar.drag){
    strIframe += "onmousedown='dragStart()' onmouseup='drag=false' onmouseout='drag=false'";
    }
    strIframe += " borderColorLight='"+ WebCalendar.darkColor +"' borderColorDark='"+ WebCalendar.lightColor +"'>"+
    " <tr align=center>"+
    " <td width=14.28%>S</td>"+
    " <td width=14.28%>M</td>"+
    " <td width=14.28%>T</td>"+
    " <td width=14.28%>W</td>"+
    " <td width=14.28%>T</td>"+
    " <td width=14.28%>F</td>"+
    " <td width=14.28%>S</td>"+
    " </tr>"+
    " </table>"+
    "</td></tr>"+
    "<tr><td valign=top width=100% bgcolor='"+ WebCalendar.lightColor +"'>"+
    " <table id=tableDay height=120 width=100% border=0 cellspacing=1 cellpadding=0>";
    for(var x=0; x<5; x++){ 
    strIframe += 
    " <tr>";
    for(var amen_y=0; amen_y<7; amen_y++)  
    strIframe += 
    " <td class=out id='amenDay1"+ (x*7+amen_y) +"'></td>"; 
    strIframe += 
    " </tr>";
    }
    strIframe += 
    " <tr>";
    for(var x=35; x<39; x++) 
    strIframe += 
    " <td class=out id='amenDay1"+ x +"'></td>";
    strIframe +=
    " <td colspan=3 class=out title='"+ WebCalendar.regInfo +"'>"+
    " <input "+
    " style=' "+
    " background-color: "+ WebCalendar.btnBgColor +";"+
    " cursor: hand; "+
    " padding-top: 4px; "+
    " width: 100%; "+
    " height: 100%; "+
    " border: 0'"+
    " onfocus='this.blur()'"+
    " type=button "+
    " value='&nbsp; &nbsp; clear' "+
      

  2.   


    " onclick='parent.cleardateA()'>"+
    " </td>"+
    " </tr>"+
    " </table>"+
    "</td></tr>"+
    "<tr><td height=20 width=100% bgcolor='"+ WebCalendar.lightColor +"'>"+
    "    <table border=0 cellpadding=1 cellspacing=0 width=100%>"+
    " <tr>"+
    " <td>"+
    " <input name=prevYear title='Previous Year&#13;Hot Key锛氣啈' "+
    " onclick='parent.prevY()' type=button value='&lt;&lt;'"+
    " onfocus='this.blur()' "+
    " style='amen:expression(this.disabled=parent.WebCalendar.thisYear==1000)'>"+
    " <input name=prevMonth title='Previous Month&#13;Hot Key锛氣哱uFFFD' "+
    " onclick='parent.prevM()' type=button value='&lt;&nbsp;'"+
    " onfocus='this.blur()'> "+
    " </td>"+
    " <td align=center>"+
    " <input name=today type=button value='Today' "+
    " onfocus='this.blur()' title='Today&#13;Hot Key锛歍'"+
    " onclick=\"parent.amen_returnDate(new Date().getDate() +'/'+ (new Date().getMonth() +1) +'/'+ new Date().getFullYear())\">"+
    " </td>"+
    " <td align=right>"+
    " <input title='Next Month&#13;Hot Key锛氣啋' name=nextMonth "+
    " onclick='parent.nextM()' type=button value='&nbsp;&gt;'"+
    " onfocus='this.blur()'>"+
    " <input name=nextYear title='Next Year&#13;Hot Key锛氣啌' "+
    " onclick='parent.nextY()' type=button value='&gt;&gt;'"+
    " onfocus='this.blur()' style='amen:expression(this.disabled=parent.WebCalendar.thisYear==9999)'>"+
    " </td>"+
    " </tr>"+
    " </table>"+
    "</td></tr>"+
    "<table></form></body></html>";
    with(WebCalendar.iframe)
    {
    document.writeln(strIframe);document.close();
    for(var i=0; i<39; i++)
    {
    WebCalendar.dayObj[i] = eval("amenDay1"+ i);
    WebCalendar.dayObj[i].onmouseover = dayMouseOver;
    WebCalendar.dayObj[i].onmouseout  = dayMouseOut;
    WebCalendar.dayObj[i].onclick     = amen_returnDate;
    }
    }
    }function writeIframeMonth()
    {
    var strIframe = 
    "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>"+
    " <style>"+
    " *{"+
    " font-size: 12px;"+
    " font-family: 瀹嬩綋;"+
    " }"+ 
    " .bg{"+
    " color: "+ WebCalendarJames.lightColor +";"+
    " cursor: default; "+
    " background-color: "+ WebCalendarJames.darkColor +";"+
    " }"+
    " table#tableMain{ "+
    " width: 100%; "+
    " height: 100;"+
    " }"+
    " table#tableDay  td{"+ 
    " color: "+WebCalendarJames.wordColor+";"+ 
    " background-color: "+WebCalendarJames.dayBgColor+";"+
    " }"+
    " td#JamesYearHeadMonth, td#james1YearMonth{"+
    " color: "+ WebCalendarJames.wordColor +";"+
    " }"+
    " .out { "+
    " text-align: center;"+ 
    " border-top: 1px solid "+ WebCalendarJames.DarkBorder +";"+ 
    " border-left: 1px solid "+ WebCalendarJames.DarkBorder +";"+
    " border-right: 1px solid "+ WebCalendarJames.lightColor +";"+ 
    " border-bottom: 1px solid "+ WebCalendarJames.lightColor +";"+
    " }"+
    " .over{"+
    " text-align: center;"+
    " border-top: 1px solid #FFFFFF;"+
    " border-left: 1px solid #FFFFFF;"+
    " border-bottom: 1px solid "+ WebCalendarJames.DarkBorder +";"+ 
    " border-right: 1px solid "+ WebCalendarJames.DarkBorder +";"+
    " }"+
    " input{"+
    " border: 1px solid "+ WebCalendarJames.darkColor +";"+
    " padding-top: 1px;"+
    " height: 18;"+
    " cursor: hand;"+
    " color:"+ WebCalendarJames.wordColor +";"+
    " background-color: "+ WebCalendarJames.btnBgColor +";"+
    " }"+
    "</style></head>"+
    "<body onselectstart='return false' style='margin: 0px' oncontextmenu='return false'>"+
    "<form name=james>"; if (WebCalendarJames.drag){ 
    strIframe += 
    "<script language=javascript>"+
    " var drag=false, james_cx=0, james_cy=0, james_o = parent.WebCalendarJames.calendar; "+
    " function document.onmousemove(){"+
    " if(parent.WebCalendarJames.drag && drag){"+
    " if(james_o.style.left=='')"+
    " james_o.style.left=0;"+
    " if(james_o.style.top=='')"+
    " james_o.style.top=0;"+
    " james_o.style.left = parseInt(james_o.style.left) + window.event.clientX-james_cx;"+
    " james_o.style.top  = parseInt(james_o.style.top)  + window.event.clientY-james_cy;"+
    " }"+
    " }"+
    " function document.onkeydown(){ "+
    " window.event.keyCode = 0; "+
    " window.event.james_returnValue= false;"+
    " }"+
    " function dragStart(){"+
    " james_cx=window.event.clientX;"+
    " james_cy=window.event.clientY;"+
    " drag=true;"+
    " }"+
    "</script>";
    }
      

  3.   

    油箱地址:[email protected]
    发过来好吗? 万分感谢
      

  4.   

    http://bbs.hxsd.com.cn/post/view?bid=25&id=4668599&sty=1&tpg=2&age=60
      

  5.   

    楼上两位……在NETSCAPE上8行哩