日期:2014-05-17  浏览次数:20901 次

请问如何对日历表中对有文章的日期高亮显示?谢谢了
刚开始学asp

现在在作一个工作日志系统

现在的日志查询界面如下

年         月

1       2       3       4       5       6       7  
8       9       10     11     12     13     14
15     16     17     18     19     20     21
22     23     24     25     26     27     28
29     30     31


请问怎样可以做到对有日志的日期数字高亮显示?或是别的方法与没有日志的区分就好

google上搜了半天,没找到特别合适的

谢谢各位了!

刚注册没有多少分,见谅!

//bow




------解决方案--------------------
<SCRIPT language=javascript>
// written by Tan Ling Wee on 2 Dec 2001
// last updated 20 June 2003
// email : fuushikaden@yahoo.com

var fixedX = -1 // x position (-1 if to appear below control)
var fixedY = -1 // y position (-1 if to appear below control)
var startAt = 1 // 0 - sunday ; 1 - monday
var showWeekNumber = 1 // 0 - don 't show; 1 - show
var showToday = 1 // 0 - don 't show; 1 - show
var imgDir = "Image/ " // directory for images ... e.g. var imgDir= "/img/ "

var gotoString = "返回当前月份 "
var todayString = "今天是: "
var weekString = "周数 "
var scrollLeftMessage = "单击滚动到上一月,长按持续滚动. "
var scrollRightMessage = "单击滚动到下一月,长按持续滚动. "
var selectMonthMessage = "单击选择月份. "
var selectYearMessage = "单击选择年份. "
var selectDateMessage = "选择 [date] 作为日期. " // do not replace [date], it will be replaced by date.

var crossobj, crossMonthObj, crossYearObj, monthSelected, yearSelected, dateSelected, omonthSelected, oyearSelected, odateSelected, monthConstructed, yearConstructed, intervalID1, intervalID2, timeoutID1, timeoutID2, ctlToPlaceValue, ctlNow, dateFormat, nStartingYear

var bPageLoaded=false
var ie=document.all
var dom=document.getElementById

var ns4=document.layers
var today = new Date()
var dateNow = today.getDate()
var monthNow = today.getMonth()
var yearNow = today.getYear()
var imgsrc = new Array( "drop1.gif ", "drop2.gif ", "left1.gif ", "left2.gif ", "right1.gif ", "right2.gif ")
var img = new Array()

var bShow = false;

/* hides <select> and <applet> objects (for IE only) */
function hideElement( elmID, overDiv )
{
if( ie )
{
for( i = 0; i < document.all.tags( elmID ).length; i++ )
{
obj = document.all.tags( elmID )[i];
if( !obj || !obj.offsetParent )
{
continue;
}

// Find the element 's offsetTop and offsetLeft relative to the BODY tag.
objLeft = obj.offsetLeft;
objTop = obj.offsetTop;
objParent = obj.offsetParent;

</SCRIPT>