masking the right mouse button $ (document). Bind ("ContextMenu", function () {return false;});
Shielded left mouse button selection $ (document). Bind ("Selectstart", function () {return false;});
Get the parameters inside the URL, use alert (geturlparms ("Parm"))
function Geturlparms (name) {
var reg = new RegExp ("(^|&)" + name + "= ([^&]*) (&|$)"); Constructs a regular expression object that contains a target parameter
var r = window.location.search.substr (1). Match (REG); Match target parameters
if (r! = null) return unescape (r[2]); return null; Return parameter values
}
CheckBox Select All
function SelectAll (BOXID) {
$ ("#" + Boxid + ": CheckBox"). attr ("Checked", true);
}
checkbox is not selected at all
function Selectnone (BOXID) {
$ ("#" + Boxid + ": CheckBox"). attr ("checked", false);
}
CheckBox Select All or select All
function Select (Boxid, Isselect) {
if (isselect! = null && Isselect = = "True") {
$ ("#" + Boxid + ": CheckBox"). attr ("Checked", true);
}
else {
$ ("#" + Boxid + ": CheckBox"). attr ("checked", false);
}
}
Common jquery Features