Time of Update: 2017-01-19
<div> <label for="email">Email</label> <input name="email" type="text" id="email" style="width:134px;" onfocus=&quo
Time of Update: 2017-01-19
<HTML><HEAD><TITLE>鎖定表格欄位範例網頁</TITLE> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <STYLE type=text/css>BODY {
Time of Update: 2017-01-19
有時候,你會發現,在一些JS應用中,涉及到CSS的重新渲染(即頁面樣式需要更新)的話,IE死活不變。 此時你需要讓IE重新渲染一下: function handleIEhasLayout(){ //trigger re-rendering document.body.style.zoom = 1.1; //restore it
Time of Update: 2017-01-19
function lLoopRun(sFuncLoop,sFuncEnd,nDelay) {//writen by http://fengyan.iecn.cn//sFuncLoop >> 字串型,需要重複執行的Javascript函數或語句(多個函數或語句請用;分隔) //sFuncEnd >> 字串型,用於中止重複執行動作(sFuncLoop)的Javascript函
Time of Update: 2017-01-19
製作特殊字的指令碼 特殊文字的製作 特殊文字的製作 下面為效果顯示 1. 請輸入字母: 2. 請選擇一種字元: 3. Generate ASCII: copy & paste into html: [Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
Time of Update: 2017-01-19
JavaScript,是世界上最流行的程式設計語言之一。事實上世界上的每一台個人電腦都安裝並在頻繁使用至少一個JavaScript解譯器。JavaScript的流行完全是由於他在WWW指令碼語言領域中的地位決定的。 Despite its popularity, few know that JavaScript is a very nice dynamic object-oriented general-purpose programming language. How can this be
Time of Update: 2017-01-19
以前,你可能會直接設定self=this或者that=this等等,這樣做當然也能起作用,但是使用Function.prototype.bind()會更好,看上去也更專業。下面舉個簡單的例子:複製代碼 代碼如下:var myObj = { specialFunction: function () { }, anotherSpecialFunction: function ()
Time of Update: 2017-01-19
IE7 loads and parses all style sheets into a form that Explorer can understand. You can then use most CSS2/CSS3 selectors without having&nbs
Time of Update: 2017-01-19
頁頁裝載效果 [Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
Time of Update: 2017-01-19
選擇你的郵局 @daming2004.com @126.com @163.com @sina.com @sohu.com @163.net @Tom.com @21cn.com @yahoo.com.cn @263.net @eyou.com @21cn.net @Yeah.net @vip.163.com @vip.sina.com @netease.com @China.com @ChinaRen.com @elong.com @etang.com
Time of Update: 2017-01-19
setTimeout(code,millisec) //- 在指定時間後執行代碼 code必須; millisec必須; clearTimeout(setTimeoutId) //- 取消 setTimeout() setInterval(code,millisec);//指定間隔毫秒內迴圈執行代碼 code必須; millisec必須; clearInterval(intervalId);
Time of Update: 2017-01-19
連結1 連結1 [Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
Time of Update: 2017-01-19
描述語言要素在 TextStream 檔案中,如果檔案指標越過了行尾標誌,返回 True;否則返回 False。AtEndOfLine 屬性如果檔案指標在 TextStream 檔案的末尾,返回 True;否則返回 False。AtEndOfStream 屬性設定或返迴文件或者檔案夾的屬性。Attributes 屬性給使用者返回指定磁碟機或網際網路共用上可用空間的總數。AvailableSpace 屬性返回 TextStream 檔案中當前字元位置的列號。Column 屬性為
Time of Update: 2017-01-19
以下是訪問百度和Google網速測試,請問怎麼把得到的二個值儲存到save變數裡,並用document.write(save); 輸出出來,謝謝! [Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
Time of Update: 2017-01-19
複製代碼 代碼如下:<SPAN id=shi>隨機賢詩:</SPAN> <SPAN id=down>[
Time of Update: 2017-01-19
這裡介紹的其實本質上是兩種方法,通過建立DOM或通過JavaScript計算:1)通過新建立的Image, 經測試會發送一個Aborted的請求,並且IE6不支援, 將new Image改成document.createElement('IMG')也是一樣的;測試應該不喜歡這個方案;複製代碼 代碼如下:function getAbsoluteUrl(url){ var img = new Image(); img.src =
Time of Update: 2017-01-19
實現文字漸淡顯示的效果代碼如下: <html> <head> <script> <!-- function HelpArray(len){this.length=len } HelpText= new HelpArray(5) HelpText[0]="視點閃客" HelpText[1]="智慧無邊"
Time of Update: 2017-01-19
複製代碼 代碼如下:function getExplorerInfo() { var explorer = window.navigator.userAgent.toLowerCase() ; //ie if (explorer.indexOf("msie") >= 0) { var ver=explorer.match(/msie ([\d.]+)/)[1]; return
Time of Update: 2017-01-19
複製代碼 代碼如下:/** * 格式化日期 * @param {Object} ms 表示指定日期與 1970 年 1 月 1 日午夜間全球標準時間的毫秒數 * @return year-month-date hh:mm */ Util.parseToDate = function(ms){ &
Time of Update: 2017-01-19
得到元素真實的背景顏色 by Longbill 得到元素真實的背景顏色 By Longbill div1 直接通過div標籤定義背景色(#87cefa) div2 通過class name定義背景色(#ff99dd) div3 通過id定義背景色(#d8bfd8) div4 這是一個透明的div,背景色應為上一個元素的顏色(#bed742) getBg() [Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]