javascriptÈÕÀú
Ô´´úÂëÈçÏ£º
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>simple</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
</head>
<style>
div{font-family:ËÎÌå;font-size:12px}
#sele{
margin:0 auto;
background-color:#ababab;
width:300px;
height:30px;
padding-top:10px;
}
#title{
margin:0 auto;
width:300px;
height:30px;
}
#tb{
margin:0 auto;
width:300px;
height:150px;
background-color:#aabb00
}
</style>
<body>
<div id="message" style="width:250px;height:150px;position:absolute;background-color:#fffffa;z-index:10;top:50px;left:300px;display:none">
ÄúÒª¼Ç¼µÄÊÂÇ飺
<textarea id="stort" cols="30" rows="7">
</textarea>
<input type="button" value="±£´æ" id="saveButton" onclick="calendar.saveMessage()">
</div>
<div id="sele">
<select id="Year" id="selectYear" name="selectYear" onchange="calendar.setYear(document.all.selectYear.value)">
<option value="2000">2000Äê</option>
<option value="2001">2001Äê</option>
<option value="2002">2002Äê</option>
<option value="2003">2003Äê</option>
<option value="2004">2004Äê</option>
<option value="2005">2005Äê</option>
<option value="2006">2006Äê</option>
<option value="2007">2007Äê</option>
<option value="2008">2008Äê</option>
<option value="2009">2009Äê</option>
<option value="2010">2010Äê</option>
</select>
<span id="nowTime"></span>ʱ¼ä<span id="time"></span>
<select id="Month" id="selectMonth" name="selectMonth" onchange="calendar.setMonth(document.all.selectMonth.value)">
<option value="1">1ÔÂ</option>
<option value="2">2
Ïà¹ØÎĵµ£º
/*
* To change this template, choose Tools | Templates
* and open the template in the editor
*/
var File = {
name:'',
path:'',
ext:'',
cfiles:[],
attributes:{
  ......
×ֺţº´ó ÖРС
·½·¨Ò»£º×µÄ£¬×îÈÝÒ×Àí½âµÄ£¬ÇÒ¿ÉÒÔËæÒâÉèÖÃÒªÅųýµÄ×Ö·û
<script language="javascript">
function isChinese1(str){
var badChar ="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
badChar += "abcdefghijklmnopqrstuvwxyz";
badChar += "0123456789";
badChar += " "+"¡¡";//°ë½ÇÓëÈ«½Ç¿Õ¸ñ
badChar ......
1. oncontextm ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectst> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. ²»×¼Õ³Ìù
4. ·ÀÖ¹¸´ÖÆ
5. <link > IEµØÖ·À¸Ç°»»³É×Ô¼ºµÄͼ±ê
6. <link   ......
shift£ºÉ¾³ýÔÊý×éµÚÒ»Ï²¢·µ»ØÉ¾³ýÔªËØµÄÖµ£»Èç¹ûÊý×éΪ¿ÕÔò·µ»Øundefined
var a = [1,2,3,4,5];
var b = a.shift(); //a£º[2,3,4,5] b£º1
unshift£º½«²ÎÊýÌí¼Óµ½ÔÊý×鿪ͷ£¬²¢·µ»ØÊý×éµÄ³¤¶È
var a = [1,2,3,4,5];
var b = a.unshift(-2,-1); //a£º[-2,-1,1,2,3,4,5] b£º7
×¢£ºÔÚIE6.0ϲ ......
replace()×î¼òµ¥µÄËãÊÇÄÜÁ¦¾ÍÊǼòµ¥µÄ×Ö·ûÌæ»»¡£
ʾÀý´úÂëÈçÏ£º
<script language="javascript">
var strM = "javascript is a good script language";
//ÔÚ´ËÎÒÏ뽫×ÖĸaÌæ»»³É×ÖĸA
alert(strM.replace("a","A"));
</script>
ËüÖ»Ìæ»»ÁËÊ××Öĸ¡£µ«Èç ......