星越多,越红,就该越谦虚(顺便散分)
xjbx
博客专家认证 2003-04-15 10:56:41 近来,一直在内蒙古出差,呵呵,沙尘暴一阵接一阵,还真没好好出去玩玩,闲的时候就窝在电脑前写程序,上上网,来csdn成了我的习惯了哟!而asp版是必逛的版了!不才,也许因为过去的一些经验,可以给那些需要帮助的朋友提供些许的思路,也混到了一颗红星。其实,倒不是,我在asp方面水平高,只不过是觉得,也许我的的思路可以避免一些需要帮助的朋友少走些弯路,那痛苦是我当初初学asp都体会过的!更重要的原因,是我可以在参与的过程中,也让自己提高不是,助人帮己,何乐而不为呢?
星越多,越红,并不代表你水平越高,你越可以看“轻”别人.纵观在csdn里面有种感觉让我不是很舒服:“相轻”,说文人相轻也就罢了,程序员之间也相轻!另一个就是对初学者着“轻视”,回答问题了了几个字,不痛不痒,让提问者一头雾水。诚然,我们不该代提问者都想好了,很多的时候该让他自己去探索答案,回答问题只是提供思路,找出问题所在,至于如何解决该他自己来行动。但是,那种“轻看”的、不负责任的回答,对谁都没帮助,顶多是混点分罢了!呵呵,说的严重些,这比那些倒分的,追求分的多寡,有什么区别呢?
人有所短,尺有所长!如果不能容,就永远不能博。
做程序员有4、5年了,感觉要学的东东太多了。曾经做过1年多的asp,现在基本不写了,已经转到了c++和java了,呵呵,在那两个版,我是初学者了!很多是一颗绿星的朋友,看的出是高手!
呵呵,罗嗦这么多,最后贴个“日历”的js代码,大家要珍惜时间哟!
-------------------------------------
<SCRIPT language=javascript>
<!--
function Year_Month()
{
var now = new Date();
var yyyy = now.getYear();
var mmmm = now.getMonth() + 1;
var cl = '<font color = "#3A6EA5">';
if ( now.getDay() == 0 )
cl = '<font color = "#C00000">';
if ( now.getDay() == 6 )
cl = '<font color = "#00C000">';
return( cl + yyyy + '年' + mmmm + '月</font>' );
}
function Date_of_Today()
{
var now = new Date();
var cl = '<font color = "#FF0000">';
if ( now.getDay() == 0 )
cl = '<font color = "#C00000">';
if ( now.getDay() == 6 )
cl = '<font color = "#00C000">';
return( cl + now.getDate() + '</font>' );
}
function CurentTime()
{
var now = new Date();
var hh = now.getHours();
var mm = now.getMinutes();
var ss = now.getTime() % 60000;
ss = ( ss - ( ss % 1000 ) ) / 1000;
var clock = hh + ':';
if( mm < 10 )
clock += '0';
clock += mm + ':';
if( ss < 10 )
clock += '0';
clock += ss;
return( clock );
}
function Day_of_Today()
{
var day = new Array();
day[0] = "星期日";
day[1] = "星期一";
day[2] = "星期二";
day[3] = "星期三";
day[4] = "星期四";
day[5] = "星期五";
day[6] = "星期六";
var now = new Date();
var cl = '<font color = "#0000DF">';
if ( now.getDay() == 0 )
cl = '<font color = "#C00000">';
if ( now.getDay() == 6 )
cl = '<font color = "#00C000">';
return( cl + day[ now.getDay() ] + '</font>' );
}
function refreshCalendarClock()
{
document.all.calendarClock1.innerHTML = Year_Month();
document.all.calendarClock2.innerHTML = Date_of_Today();
document.all.calendarClock3.innerHTML = Day_of_Today();
document.all.calendarClock4.innerHTML = CurentTime();
}
var
webUrl = webUrl;
document.write( '<table border = "0" cellpadding = "0" cellspacing = "0"><tr><td>' );
document.write( '<table id = "CalendarClockFreeCode" border = "0" cellpadding = "0" cellspacing = "0" width = "60" height = "70" style = "position:absolute; visibility:hidden" bgcolor = "#FFFFE7">' );
document.write( '<tr><td align = "center"><font style = "cursor:hand; color:#FF0000; font-family:宋体; font-size:14pt; line-height:120%"' );
if( webUrl != 'netflower' )
{
document.write( '</td></tr><tr><td align = "center"><font style = "cursor:hand; color:#2000FF; font-family:宋体; font-size:9pt; line-height:110%"' );
}
document.write( '</td></tr></table>' );
document.write( '<table border = "0" cellpadding = "0" cellspacing = "0" width = "61" bgcolor = "#D6D3CE" height = "70">' );
document.write( '<tr><td valign = "top" width = "100%" height = "100%">' );
document.write( '<table border = "1" cellpadding = "0" cellspacing = "0" width = "58" bgcolor = "#FFFFE7" height = "67">' );
document.write( '<tr><td align = "center" width = "100%" height = "100%">' );
document.write( '<font id = "calendarClock1" style = "font-family:宋体; font-size:7pt; line-height:120%"></font><br>' );
document.write( '<font id = "calendarClock2" style = "color:#FF0000; font-family:Arial; font-size:14pt; line-height:120%"></font><br>' );
document.write( '<font id = "calendarClock3" style = "font-family:宋体; font-size:9pt; line-height:120%"></font><br>' );
document.write( '<font id = "calendarClock4" style = "color:#100080; font-family:宋体; font-size:8pt; line-height:120%"></font>' );
document.write( '</td></tr></table>' );
document.write( '</td></tr></table>' );
document.write( '</td></tr></table>' );
refreshCalendarClock();
setInterval( 'refreshCalendarClock()', 1000);
-->
</SCRIPT>