上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 全选,取消全选gridview中的checkbox, 点击某一项的checkbox时,自动识别是否应该将checkAll设为选中还是非选中可以尝试将checkbox直接用html控件,此处用了runnat="server" , 如果用html控件不能执行到相应的脚本,提示脚本函数未定义,请加上runat="server"为checkbox<div class="mainContent"> <asp:GridView ID="gvContent" runat="server" D 阅读全文
posted @ 2013-06-02 18:53 Vihone 阅读(382) 评论(0) 推荐(0) 编辑
摘要: //Javascript语言精粹 全书脚本Demo,可以用Firefox 的firebug运行每个demodemo url:http://files.cnblogs.com/vihone/TheExcellenceInJavascript.rar//3.5 原型 if(typeof Object.beget !== 'function') { Object.beget = function(o) { var F = function() {}; F.prototype = o; return new F(); }; }var another_stooge = Object.be 阅读全文
posted @ 2013-01-24 21:33 Vihone 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1、用jquery从多个条件中 取某个值 //SB.configXml为配置文件 var showCheckedTicker = $j(SB.configXml).find("root tools t[id='PG'][type='PA']").attr("showChecked"); 2将条件符合 阅读全文
posted @ 2011-02-23 16:58 Vihone 阅读(487) 评论(0) 推荐(0) 编辑
摘要: //将Mozilla 转化为IE模式 XmlDocUtil.jsvar XmlDocUtil = new Object();var sUserAgent = navigator.userAgent;var fAppVersion = parseFloat(navigator.appVersion);var isOpera = sUserAgent.indexOf("Opera")-1;var isKHTML = sUserAgent.indexOf("KHTML")-1|| sUserAgent.indexOf("Konqueror")-1 || sUserAgent.indexOf(" 阅读全文
posted @ 2010-12-03 17:40 Vihone 阅读(412) 评论(0) 推荐(0) 编辑
摘要: //JS判断浏览器脚本:BrowserDetect.jsvar sUserAgent = navigator.userAgent;var fAppVersion = parseFloat(navigator.appVersion);function compareVersions(sVersion1, sVersion2) { var aVersion1 = sVersion1.split("."... 阅读全文
posted @ 2010-12-03 17:36 Vihone 阅读(480) 评论(0) 推荐(0) 编辑
摘要: JS如下:var TableUtil = new Object();TableUtil.Convert = function(sValue,sDataType){ switch(sDataType) { case "int": return parseInt(sValue); case "float": return parseFloat(sValue); case "date": return ... 阅读全文
posted @ 2010-11-26 17:59 Vihone 阅读(233) 评论(0) 推荐(0) 编辑
摘要: JS如下:TableUtil.Convert = function(sValue,sDataType){ switch(sDataType) { case "int": return parseInt(sValue); case "float": return parseFloat(sValue); case "date": return new Date(Date.parse(sValue));... 阅读全文
posted @ 2010-11-26 16:39 Vihone 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 方法一:JS如下://保存为JScript1.js文件TableUtil.generateReverseCompareTRs = function(iCol){ return function compareTRs(oTR1,oTR2) { //var flag = document.getElementById("tempFlag").value; var sValue1 = oTR1.cel... 阅读全文
posted @ 2010-11-25 10:35 Vihone 阅读(668) 评论(0) 推荐(0) 编辑
摘要: JS如下:var TableUtil = new Object();TableUtil.compareTRs = function(oTr1,oTr2){ var flag = document.getElementById("tempFlag").value; var sValue1 = oTr1.cells[0].firstChild.nodeValue; var sValue2 = oTr... 阅读全文
posted @ 2010-11-25 09:28 Vihone 阅读(285) 评论(0) 推荐(0) 编辑
摘要: JS如下:var TextUtil = new Object();var ListUtil = new Object();ListUtil.remove = function(oListbox,iIndex){ oListbox.remove(iIndex);}ListUtil.clear = function(oListbox){ for(var i = oListbox.options.len... 阅读全文
posted @ 2010-11-24 14:12 Vihone 阅读(1769) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页