这里有:http://www.51windows.net/myjs/?u=/myjs/JsList.asp

解决方案 »

  1.   

    给我写信,我发给你一个。[email protected]
      

  2.   

    就是说我要的      <-    12-06 12-07 12-08 12-09 12-10 12-11 12-12    ->
    我一点左边的箭头就列出七天前的日期,一点右边箭头就列出七天后的日期
      

  3.   

    <?php 
    /* PHP自动生成月历代码共享
    Function Written by Nelson Neoh @3/2004. 
    For those who wants to utilize this code, please do not remove this re. 
    If you have done any enhancement to this code, please post the copy at http://www.dev-club.com PHP board. Thank you. Function usage: calendar(Month,Year) 
    */ //function calendar($MM,$YYYY){ 
    if($MM=="") $MM = date("m"); 
    if($YYYY=="") $YYYY = date("Y"); 
    if($YY=="") $YY = date("Y"); 
    if(checkdate($MM,1,$YYYY)){ 
    $stringDate = strftime("%d %b %Y",mktime (0,0,0,$MM,1,$YYYY)); 
    $days = strftime("%d",mktime (0,0,0,$MM+1,0,$YYYY)); 
    $firstDay = strftime("%w",mktime (0,0,0,$MM,1,$YYYY)); 
    $lastDay = strftime("%w",mktime (0,0,0,$MM,$days,$YYYY)); 
    $printDays = $days; 
    $preMonth = strftime("%m",mktime (0,0,0,$MM-1,1,$YYYY)); 
    $preYear = strftime("%Y",mktime (0,0,0,$MM-1,1,$YYYY)); 
    $nextMonth = strftime("%m",mktime (0,0,0,$MM+1,1,$YYYY)); 
    $nextYear = strftime("%Y",mktime (0,0,0,$MM+1,1,$YYYY)); 
    print("<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" width=220>"); 
    print("<tr><th valign=\"top\"><a href=\"".$_SERVER['PHP_SELF']."?NB=".$_GET["NB"]."&MM=".$preMonth."&YY=".$preYear."\"><img src=images/leftarrow.png border=0></a></th>"); 
    print("<th colspan=\"5\"><font size=2>".strftime("%Y年%m月",mktime (0,0,0,$MM,1,$YYYY))."</font></th>"); 
    print("<th valign=\"top\"><a href=\"".$_SERVER['PHP_SELF']."?NB=".$_GET["NB"]."&MM=".$nextMonth."&YY=".$nextYear."\"><img src=images/rightarrow.png border=0></a></th></tr>"); 
    print("<tr style=\"font-family: Verdana; font-size:x-small\">"); 
    print("<th>日</th><th>一</th><th>二</th><th>三</th><th>四</th><th>五</th><th>六</th></tr>"); $currentDays = 1; 
    for($a=1;$a<=5;$a++){ 
    print("<tr align=\"left\" valign=\"top\" style=\"font-family: Verdana; font-size:x-small\">"); 
    $diffDays = $firstDay-$lastDay; 
    if($firstDay>$lastDay && $currentDays ==1 && ($diffDays<>1)){ 
    for($x=$lastDay;$x>=0;$x--){ 
    $printDays = $days-$x; 
    print("<td align='center' width=14%><a href=reserve.php?date=$YY$MM$printDays>$printDays</a></td>"); 

    for($z=1;$z<$firstDay-$lastDay;$z++){ 
    print("<td align='center' width=14%>&nbsp;</td>"); 

    for($y=$firstDay;$y<7;$y++){ 
    print("<td align='center' width=14%><a href=reserve.php?date=$YY$MM$currentDays>$currentDays</a></td>"); 
    $currentDays++; 

    } elseif($firstDay!=0 && $currentDays==1){ 
    for($z=1;$z<=$firstDay;$z++){ 
    print("<td align='center' width=14%>&nbsp;</td>"); 

    for($y=$firstDay;$y<7;$y++){ 
    print("<td align='center' width=14%><a href=reserve.php?date=$YY$MM$currentDays>$currentDays</a></td>"); 
    $currentDays++; 

    } else { 
    for($u=1;$u<=7 && $currentDays<=$days;$u++){ 
    print("<td align='center' width=14%><a href=reserve.php?date=$YY$MM$currentDays>$currentDays</a></td>"); 
    $currentDays++; 

    //在这里加入以下两行
    while($u++ <=7)
      print("<td>&nbsp;</td>"); 

    print("</tr>"); 

    print("</table>"); 

    //} 
    ?>
    这个函数请问怎么改才能让是星期日的日期的颜色为红色,而当前日期是黄色??谢谢