Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaScriptÖеÄDate¶ÔÏó

1.ÉùÃ÷Ò»¸öDateʱ¼ä¶ÔÏóµÄ·½Ê½ÓÐÒÔÏÂÈýÖÖ
     Date()£º±íʾ¹¹ÔìÒ»¸öµ±Ç°ÏµÍ³Ê±¼ä¶ÔÏó
     Date(int year,int month,int day)£º¹¹ÔìµÄʱ¼ä¶ÔÏóËùÖ¸ÏòµÄʱ¼äΪ Ä꣺1900+year;Ô£ºmonth+1;ÈÕ£ºday;ʱ,·Ö,Ã룺00
     Date(int millsecond)£º¹¹ÔìµÄʱ¼ä¶ÔÏóËùÖ¸ÏòµÄʱ¼äΪ1970Äê1ÔÂ1ÈÕ08ʱ00·Ö00Ãë+millsecondºÁÃëËùµÃµÄʱ¼ä
2.Date¶ÔÏó³£Óõķ½·¨
     getYear()£º»ñÈ¡"µ±Ç°¶ÔÏóËùÖ¸ÏòµÄÄê·Ý-1900"ËùµÃµÄÄê·Ý
     getMonth()£º»ñÈ¡"µ±Ç°¶ÔÏóËùÖ¸ÏòµÄÔ·Ý-1"ËùµÃµÄÔ·Ý
     getDate()£º»ñÈ¡µ±Ç°¶ÔÏóµÄÈÕÆÚ
     getDay()£º»ñÈ¡µ±Ç°¶ÔÏóµÄÈÕÆÚ
     getHours()£º»ñÈ¡µ±Ç°¶ÔÏóµÄСʱ
     getMinutes()£º»ñÈ¡µ±Ç°¶ÔÏóµÄ·ÖÖÓ
     getSeconds()£º»ñÈ¡µ±Ç°¶ÔÏóµÄÃëÖÓ
     getTime()£º»ñÈ¡µ±Ç°Ê±¼ä¶ÔÏó¾àÀë1970Äê1ÔÂ1ÈյĺÁÃëÊý
     setYear(int year)£º½«Äê·ÝÉèÖÃΪ1900+year
     setMonth(int month)£º½«Ô·ÝÉèÖÃΪmonth+1
     setDate(int date)£ºÉèÖÃÈÕÆÚ
     setHours(int hour)£ºÉèÖÃСʱ
     setMinutes(int minute)£ºÉèÖ÷ÖÖÓ
     setSeconds(int second)£ºÉèÖÃÃëÖÓ
   
     
                  


Ïà¹ØÎĵµ£º

Javascript+css ʵÏÖÍøÒ³»»·ô¹¦ÄÜ


ÏÖÔÚÍøÕ¾»»Æ¤·ôÊDZȽϳ£¼ûµÄ¹¦ÄÜ£¬´ó¶àÊýÂÛ̳¶¼Óеģ¬ÒªÏëʵÏÖÕâÑùЧ¹û¿ÉÒÔ¿´ÈçÏ´úÂ룺Html´úÂ벿·Ö:
1.ÒªÓÐÒ»¸ö´øidµÄÑùʽ±íÁ´½Ó,ÎÒÃÇҪͨ¹ý²Ù×÷Õâ¸öÁ´½ÓÀ´µ÷Óò»Í¬µÄhref.
<link href="css/main0.css" rel="stylesheet" type="text/css" id="cssfile" />
2.Ƥ·ôÑ¡Ôñ°´Å¥(ºǫ́Ϊÿ¸öliÌí¼Óonclickʼþ,´¥·¢»»· ......

javascriptÒ»¶Îʱ¼ä´úÂë

<SCRIPT language=javaScript>
<!--
now = new Date(),hour = now.getHours()
if(hour < 6){document.write("Á賿ºÃ!")}
else if (hour < 9){document.write("ÔçÉϺã¡")}
else if (hour < 12){document.write("ÉÏÎçºÃ£¡")}
else if (hour < 14){document.write("ÖÐÎçºÃ£¡")}
else if (hour &l ......

JavaScript³£Ó÷½·¨×ܽᗗÅжÏä¯ÀÀÆ÷ÀàÐÍ

ÅжÏä¯ÀÀÆ÷ÀàÐÍ
<SCRIPT language=javascript>
if(navigator.appVersion.indexOf("MSIE 6.") != -1 ){
window.location = "111.htm" ;
}
</SCRIPT>
°´Å¥±³¾°Í¼Æ¬Ìæ»»
<input type=button style="background-image:url(a.gif)" value=test onmouseover="this.style.backgroundImage='url(b.gif ......

JavaScript³£Ó÷½·¨×ܽᗗÀûÓýű¾·â×°

ÀûÓýű¾·â×°£¬·½±ãʵÏÖÍøÕ¾Ðü¸¡¹ã¸æ
ÏÂÃæÊÇJS½Å±¾(floatdiv.js)
/*======================================================================
¸¡¶¯¿éÖ§³Ö½Å±¾
DESIGN BY : Åí¹ú»Ô
DATE: 2004-02-26
SITE: http://kacarton.yeah.net/
BLOG: http://blog.csdn.net/nhconch
EMAIL: kacarton@sohu.com
ÎÄÕÂÎ ......

javascript»ñÈ¡ÍøÒ³¸ß¶ÈÓë¿í¶È

ÐèÒªÒýÈëjquery-1.3.2.js
»ñÈ¡¿í¶È
function getCurrentWidth(){
 var currentWidth = 0;
 // handle IE 6
 if ($.browser.msie && $.browser.version < 7) {
  var scrollWidth = Math.max(
   document.documentElement.scrollWidth,
   docu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ