javascript ÈÕÆÚʱ¼ä¿Ø¼þ
http://225355.blog.chinajavaworld.com/servlet/AttachmentServlet/download/225355-5934-2610/Calendar.js
Calendar.js£¨×¢£ºÔÚ.net»·¾³ÏÂ.jsÎļþÐè´æΪutf-8¸ñʽ£©
/**//**
*±¾ÈÕÀúÑ¡Ôñ¿Ø¼þÓÉtiannet¸ù¾ÝÇ°È˾ÑéÍêÉƶøµÃ¡£´ó²¿·Ö´úÂëÀ´×ÔmeizzµÄÈÕÀú¿Ø¼þ¡£
*tiannetÌí¼ÓÁËʱ¼äÑ¡Ôñ¹¦ÄÜ¡¢select,object±êÇ©Òþ²Ø¹¦ÄÜ£¬»¹ÓÐÆäËüС¹¦ÄÜ¡£
*ʹÓ÷½·¨£º
* (1)ֻѡÔñÈÕÆÚ <input type="text" name="date" readOnly onClick="setDay(this);">
* (2)Ñ¡ÔñÈÕÆÚºÍСʱ <input type="text" name="dateh" readOnly onClick="setDayH(this);">
* (3)Ñ¡ÔñÈÕÆÚºÍСʱ¼°·ÖÖÓ <input type="text" name="datehm" readOnly onClick="setDayHM(this);">
*ÉèÖòÎÊýµÄ·½·¨
* (1)ÉèÖÃÈÕÆÚ·Ö¸ô·û setDateSplit(strSplit);ĬÈÏΪ"-"
* (2)ÉèÖÃÈÕÆÚÓëʱ¼äÖ®¼äµÄ·Ö¸ô·û setDateTimeSplit(strSplit);ĬÈÏΪ" "
* (3)ÉèÖÃʱ¼ä·Ö¸ô·û setTimeSplit(strSplit);ĬÈÏΪ":"
* (4)ÉèÖÃ(1),(2),(3)Öеķָô·û setSplit(strDateSplit,strDateTimeSplit,strTimeSplit);
* (5)ÉèÖÿªÊ¼ºÍ½áÊøÄê·Ý setYearPeriod(intDateBeg,intDateEnd)
*˵Ã÷£º
* ĬÈÏ·µ»ØµÄÈÕÆÚʱ¼ä¸ñʽÈçͬ£º2005-02-02 08:08
*/
//------------------ Ñùʽ¶¨Òå ---------------------------//
//¹¦ÄÜ°´Å¥Í¬ÑùÑùʽ
var s_tiannet_turn_base = "height:16px;font-size:9pt;color:white;border:0 solid #CCCCCC;cursor:hand;background-color:#2650A6;";
//·Äê¡¢Ôµȵİ´Å¥
var s_tiannet_turn = "width:28px;" + s_tiannet_turn_base;
//¹Ø±Õ¡¢Çå¿ÕµÈ°´Å¥Ñùʽ
var s_tiannet_turn2 = "width:22px;" + s_tiannet_turn_base;
//ÄêÑ¡ÔñÏÂÀ¿ò
var s_tiannet_select = "width:64px;display:none;";
//Ô¡¢Ê±¡¢·ÖÑ¡ÔñÏÂÀ¿ò
var s_tiannet_select2 = "width:46px;display:none;";
//ÈÕÆÚÑ¡Ôñ¿Ø¼þÌåµÄÑùʽ
var s_tiannet_body = "width:150;background-color:#2650A6;display:none;z-index:9998;position:absolute;" +
"border-left:1 solid #CCCCCC;border-top:1 solid #CCCCCC;border-right:1 solid #999999;border-bottom:1 solid #999999;";
//ÏÔʾÈÕµÄtdµÄ
Ïà¹ØÎĵµ£º
ʵÀýÈçÏ£ºjavascript.htmlÎļþ
<html>
<head>
<title>JavaScriptÑéÖ¤</title>
</head>
<script language='JavaScript'>
......
ÉùÃ÷£º
function person(name, country)
{
this.name = name;
this.country = country;
}
ʵÀý»¯¶ÔÏó£º
var theauthor = new person('Daniel', 'U.S.A.');
ÒýÓãº
function sayHello(objPerson)
{
return "Hello " + objPerson. ......
javascript
¶ÔÏóµÄpropertyºÍprototype
ÊÇ
ÕâÑùÒ»ÖÖ¹Øϵ
ECMAScript¿ÉÒÔʶ±ðÁ½ÖÖÀàÐ͵ĶÔÏó£¬Ò»ÖÖ½Ð×öNative ObjectÊôÓÚÓïÑÔ·¶³ë;Ò»ÖÖ½Ð×öHost Object£¬ÓÉÔËÐл·¾³Ìá
¹©ÀýÈçdocument¶ÔÏó£¬
Dom NodeµÈ
Native objectsÊÇÒ»ÖÖËÉÉ¢µÄ½á¹¹²¢ÇÒ¿ÉÒÔ¶¯Ì¬µÄÔö¼ÓÊôÐÔ(property)£¬ËùÓеÄÊôÐÔ¶¼ÓÐÒ»¸öÃû×ÖºÍÒ»¸öÖµ£¬Õâ¸öÖµ ......
¡¾Ç°ÑÔ¡¿ºÃÎÄÕ£¬¾ÍÊÇÒªÂýÂýÑо¿£¬ËùÒÔÏÈת¹ýÀ´´æ×Å~
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ......
JavaScriptºÍJavaµÄÇø±ð
¡¡¡¡ËäÈ»JavaScriptÓëJavaÓнôÃܵÄÁªÏµ£¬µ«È´ÊÇÁ½¸ö¹«Ë¾¿ª·¢µÄ²»Í¬µÄÁ½¸ö²úÆ·¡£JavaÊÇSUN¹«Ë¾ÍƳöµÄÐÂÒ»´úÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼ÆÓïÑÔ£¬ÌرðÊʺÏÓÚInternetÓ¦ÓóÌÐò¿ª·¢£»¶øJavaScriptÊÇNetscape¹«Ë¾µÄ²úÆ·£¬ÆäÄ¿µÄÊÇΪÁËÀ©Õ¹Netscape Navigator¹¦ÄÜ,¶ø¿ª·¢µÄÒ»ÖÖ¿ÉÒÔǶÈëWebÒ³ÃæÖеĻùÓÚ¶ÔÏóºÍʼþÇý¶ ......