javascriptÏÔʾʱ¼ä
//ÏÔʾµ±Ç°Ê±¼ä----------------------------------------------------------
<SCRIPT language="javascript" type="text/javascript" >
function reloop(){
var time = new Date( ); //»ñµÃµ±Ç°Ê±¼ä
//»ñµÃÄê¡¢Ô¡¢ÈÕ£¬Date()º¯ÊýÖеÄÔ·ÝÊÇ´Ó0£11¼ÆËã
var year = time.getFullYear();
var month = time.getMonth()+1;
var date = time.getDate();
//»ñµÃСʱ¡¢·ÖÖÓ¡¢Ãë
var hour = time.getHours();
var minute = time.getMinutes();
var second = time.getSeconds();
//»ñµÃÒ»¸öÐÇÆÚÖеĵڼ¸Ìì,Î÷·½µÄÐÇÆÚÊÇ´ÓÐÇÆÚÈÕ¿ªÊ¼£¬ÐÇÆÚÁù½áÊø
var day = time.getDay();
if (minute < 10) //Èç¹û·ÖÖÓÖ»ÓÐ1룬²¹0ÏÔʾ
minute="0"+minute;
if (second < 10) //Èç¹ûÃëÊýÖ»ÓÐ1룬²¹0ÏÔʾ
second="0"+second;
var weekDesc = new Array("ÐÇÆÚÌì","ÐÇÆÚÒ»","ÐÇÆÚ¶þ","ÐÇÆÚÈý","ÐÇÆÚËÄ","ÐÇÆÚÎå","ÐÇÆÚÁù");
for(var i=0;i<weekDesc.length;i++){
if(day==i){
document.getElementById("t").value="½ñÌìÊÇ:"+year+"Äê"+month+"ÔÂ"+date+"ÈÕ"+weekDesc[i]+" "+hour+":"+minute+":"+second;
setTimeout("reloop()",1000);
}
}
}
Ïà¹ØÎĵµ£º
±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔÀ´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷ÔÒò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......
1.document.formName.item("itemName") ÎÊÌâ
˵Ã÷:IEÏÂ,¿ÉÒÔʹÓÃdocument.formName.item("itemName")»òdocument.formName.elements["elementName"];FirefoxÏÂ,Ö»ÄÜʹÓÃdocument.formName.elements["elementName"].
½â¾ö·½·¨:ͳһʹÓÃdocument.formName.elements["elementName"].
JQUERY:
$("#idName")
&nb ......
ÔÎĵØÖ·£ºhttp://www.cnblogs.com/daniel-shen/archive/2006/07/12/449280.html
javascript ÖÐthis µÄÓ÷¨:
1.<div onclick="// ¿ÉÒÔÔÚÀïÃæʹÓÃthis">division element</div> this Ö¸Ïòdiv
2. <div id="elmtDiv">division element</div>
&nbs ......
http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/
demo£ºhttp://css-tricks.com/examples/FeaturedContentSlider/
Featured Content Slider Using jQuery
http://demo.webdeveloperplus.com/featured-content-slider/ ......
navigator¶ÔÏóÖ÷ÒªÓÃÓÚ¼ì²âä¯ÀÀÆ÷µÄ°æ±¾£¬¸Ã¶ÔÏóµÄÊôÐÔÖ÷ÒªÓУº
appcodeName£º
appVersion
.....
JavaScriptÖб£Áô×Ö¡£¡£¡£
ת»»º¯Êýeval("12.34*12")
parseInt()
parseFloat();
join() °ÑÒ»¸öÊý×éµÄËùÓÐÔªËض¼×ª»»³É×Ö·û´®
reverse()µßµ¹Êý×é
sortÅÅÐò
concat()
slice()
splice()
push()
pop()
toString() ......