posts - 0,  comments - 0,  trackbacks - 0
          click() 對象.click() 使對象被點擊。
          closed 對象.closed 對象窗口是否已關閉true/false
          clearTimeout(對象) 清除已設置的setTimeout對象
          clearInterval(對象) 清除已設置的setInterval對象
          confirm("提示信息") 彈出確認框,確定返回true取消返回false
          cursor:樣式 更改鼠標樣式 hand crosshair text wait help default auto e/s/w/n-resize
          event.clientX 返回最后一次點擊鼠標X坐標值;
          event.clientY 返回最后一次點擊鼠標Y坐標值;
          event.offsetX 返回當前鼠標懸停X坐標值
          event.offsetY 返回當前鼠標懸停Y坐標值

          document.write(document.lastModified) 網頁最后一次更新時間
          document.ondblclick=x 當雙擊鼠標產生事件
          document.onmousedown=x 單擊鼠標鍵產生事件

          document.body.scrollTop; 返回和設置當前豎向滾動條的坐標值,須與函數配合,
          document.body.scrollLeft; 返回和設置當前橫向滾動務的坐標值,須與函數配合,
          document.title document.title="message"; 當前窗口的標題欄文字
          document.bgcolor document.bgcolor="顏色值"; 改變窗口背景顏色
          document.Fgcolor document.Fgcolor="顏色值"; 改變正文顏色
          document.linkcolor document.linkcolor="顏色值"; 改變超聯接顏色
          document.alinkcolor document.alinkcolor="顏色值"; 改變正點擊聯接的顏色
          document.VlinkColor document.VlinkColor="顏色值"; 改變已訪問聯接的顏色
          document.forms.length 返回當前頁form表單數
          document.anchors.length 返回當前頁錨的數量
          document.links.length 返回當前頁聯接的數量
          document.onmousedown=x 單擊鼠標觸發事件
          document.ondblclick=x 雙擊鼠標觸發事件
          defaultStatus window.status=defaultStatus; 將狀態欄設置默認顯示

          function function xx(){...} 定義函數
          isNumeric 判斷是否是數字
          innerHTML xx=對象.innerHTML 輸入某對象標簽中的html源代碼
          innerText divid.innerText=xx 將以div定位以id命名的對象值設為XX

          location.reload(); 使本頁刷新,target可等于一個刷新的網頁

          Math.random() 隨機涵數,只能是0到1之間的數,如果要得到其它數,可以為*10,再取整
          Math.floor(number) 將對象number轉為整數,舍取所有小數
          Math.min(1,2) 返回1,2哪個小
          Math.max(1,2) 返回1,2哪個大

          navigator.appName 返回當前瀏覽器名稱
          navigator.appVersion 返回當前瀏覽器版本號
          navigator.appCodeName 返回當前瀏覽器代碼名字
          navigator.userAgent 返回當前瀏覽器用戶代標志

          onsubmit onsubmit="return(xx())" 使用函數返回值
          opener opener.document.對象 控制原打開窗體對象

          prompt xx=window.prompt("提示信息","預定值"); 輸入語句
          parent parent.框架名.對象 控制框架頁面

          return return false 返回值
          random 隨機參數(0至1之間)
          reset() form.reset(); 使form表單內的數據重置

          split("") string.split("") 將string對象字符以逗號隔開
          submit() form對象.submit() 使form對象提交數據

          String對象的 charAt(x)對象 反回指定對象的第多少位的字母
          lastIndexOf("string") 從右到左詢找指定字符,沒有返回-1
          indexOf("string") 從左到右詢找指定字符,沒有返回-1
          LowerCase() 將對象全部轉為小寫
          UpperCase() 將對象全部轉為大寫
          substring(0,5) string.substring(x,x) 返回對象中從0到5的字符
          setTimeout("function",time) 設置一個超時對象
          setInterval("function",time) 設置一個超時對象

          toLocaleString() x.toLocaleString() 從x時間對象中獲取時間,以字符串型式存在
          typeof(變量名) 檢查變量的類型,值有:String,Boolean,Object,Function,Underfined

          window.event.button==1/2/3 鼠標鍵左鍵等于1右鍵等于2兩個鍵一起按為3
          window.screen.availWidth 返回當前屏幕寬度(空白空間)
          window.screen.availHeight 返回當前屏幕高度(空白空間)
          window.screen.width 返回當前屏幕寬度(分辨率值)
          window.screen.height 返回當前屏幕高度(分辨率值)
          window.document.body.offsetHeight; 返回當前網頁高度
          window.document.body.offse
          posted on 2006-12-03 12:02 navy 閱讀(94) 評論(0)  編輯  收藏 所屬分類: JavaScript

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 岢岚县| 平乐县| 郁南县| 天峻县| 大方县| 静安区| 和田县| 鄢陵县| 绵阳市| 比如县| 大石桥市| 即墨市| 象州县| 驻马店市| 沂南县| 福鼎市| 十堰市| 吴江市| 东城区| 雅江县| 远安县| 博野县| 自贡市| 阿拉善左旗| 句容市| 三亚市| 军事| 韶山市| 拉萨市| 温州市| 乐昌市| 鄂温| 广德县| 曲麻莱县| 北安市| 灵宝市| 合肥市| 太湖县| 鱼台县| 青神县| 黎平县|