常用的JavaScript指令碼集合

2021-04-06 20:31:44 字數 1862 閱讀 2928

寫登錄檔:

tablae相關(客戶端動態增加行列)

1.身份證嚴格驗證:

2.驗證ip位址

3.加sp1後還能用的無邊框視窗!!

chromeless window

"; temp += "";

temp += content;

temp += "

"; temp += "

"; cw_body.innerhtml = temp;

} settimeout("insert_content()",1000);

var if_max = true;

function show_cw()

}else

} window.onfocus  = show_cw;

window.onresize = show_cw;

// move window

var drag_x,drag_y,draging=false

function drag_move(e)

} function drag_down(e)

function drag_up(e)

貼兩個關於treeview的

treeview中如何在伺服器端得到客戶端設定後的節點擊中狀態

dadd

ccc

on this page i explain a ****** dhtml example script that features invisibility, moving and the changing of text colour.

example

test textmake test text invisible.

make test text visible.

move test text 50 pixels down.

move test text 50 pixels up.

change colour to red.

change colour to blue.

change colour to black.

change the font style to italic.

change the font style to normal.

change the font family to 'times'.

change the font family to 'arial'.

the script

the scripts work on this html element:

test text

#text

these scripts are necessary for the three effects:

var dhtml = (document.getelementbyid || document.all || document.layers);

function getobj(name)

else if (document.all)

else if (document.layers) }

function invi(flag)

var texttop = 400;

function move(amount)

function changecol(col)

一段實現datagrid的「編輯」、「取消」功能指令碼,目的是不產生頁面重新整理

<?xml version="1.0" encoding="gb2312"?>

by star

2003-4-8

關閉本視窗

密碼保護:

將以下**加入heml的之間:

JavaScript常用指令碼集錦5

將乙個dom節點 html字串混合型引數 轉化為原生的dom節點陣列 function checkelem a for var i 0 i a.length i else if a i length else return r 在parent執行環境下,在before元素下前面新增elem元素 fu...

JavaScript常用指令碼集錦5

將乙個dom節點 html字串混合型引數 轉化為原生的dom節點陣列 function checkelem a for var i 0 i a.length i else if a i length else return r 在parent執行環境下,在before元素下前面新增elem元素 fu...

Javascript指令碼 Location物件

location 物件是 window 物件的乙個部分,可通過 window.location 屬性來訪問。舉例說下 location 物件 的屬性與方法 hash 設定或返回從井號 開始的 url 錨 返回 head host 設定或返回主機名和當前 url 的埠號 返回 www.csdn.net...