JavaScript ÈÕÀú
html:
<html>
<head>
<title>calendaragain</title>
<link rel=stylesheet href="calendaragain.css">
<script type = "text/javascript">
//show the all page
function allpage()
{
timeintext();
getnowtimeagain();//for change month and year
timeintable();
}
/*
time in text
*/
var nowTime,nowTimeYear,nowTimeMonth,nowTimeDate,nowTimeHours,nowTimeMinutes,nowTimeSeconds;
var nowTimeShowInText;
//set the nowtime in the text
function timeintext()
{
//get nowtime
nowTime = new Date();
nowTimeYear = nowTime.getFullYear(); //now Year
Ïà¹ØÎĵµ£º
ÒÔÏÂÊÂÀýΪ½áºÏ±¾È˵çÄÔ¶øÉè¼ÆµÄ²ÎÊý,ÄúÒ²¿É¸ÄΪ×Ô¼ºµÄ³ß´ç
<SCRIPT LANGUAGE="JavaScript">
var chicun;
chicun=screen.width;
if(chicun==1280||chicun==1440||chicun==1600)
{
<!--
function initEcAd() {
document.all.AdLayer1.style.posTop = -100;
document.all.AdLayer1.style.visibility = 'vis ......
1¡¢×Ö·û´®×ª»»ÎªÊýÖµ
³£¹æ·½·¨£º
JScript code
var a = parseFloat("12");
var b = parseInt("34");
¿ÉÒÔÓÃ
JScript code
var a = +("12");
var b = +("34");
2¡¢¶àάÊý×é
³£¹æ·½·¨£º
JScript code
var A = new Array(2);
A[0] = new Array(2);
A[1] = new Array(2);
A[0][0] = 1;
A[0][1] = 2;
A[1][0] = ......
JavaScript ʱ¼ä¼Ó¼õ:
<HTML>
<BODY>
<script type="text/javascript">
var time = new Date("04/30/2010");
document.write(time);
......
±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔÀ´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷ÔÒò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......
============˼·============
1¡¢Ê×ÏÈÏëµ½£¬ÔÚչʾÐÎÏóµÄdivÖУ¬Ò»¶¨Òª½«¿ã×Ó¡¢Ò·þ¡¢Í··¢ºÍÍ·ÊεÄͼƬ·Ö±ð·ÅÔÚ²»Í¬µÄ²ã£¨Õâ¿ÉÒÔÓÃz-index±ê¼Ç£©¡£ÒòΪͷÊÎÒª¸Çסͷ·¢£¬Í··¢Òª¸ÇÔÚÒ·þÉÏ£¬Ò·þµÄÏÂÑØÒ²Òª¸Çס¿ãÍ·¡£
2¡¢¸÷ÖÖÒÂÎïÈçºÎÔÚdivÖж¨Î»£¿¿ÉÒÔÔÚÖÆ×÷ͼƬʱ¾Í¶¨ºÃλÖã¬Í¼Æ¬³ß´çÓëdivÏàͬ£¬¸ÃÓж«Î÷µÄµØ·½·ÅÉ϶«Î÷ ......