yahoo 标签.tag_box { width:400px; height:126px; border:1px solid #B0BEC7; font:12px Arial, Helvetica, sans-serif; margin:50px; overflow:hidden} .tag_box ul.menulist { width:402px; height:20px; overflow:hidden; margin:0} .tag_box ul.menulist li { float:left; width:80px; text-align:center; height:19px; line-height:19px; background:url(tag_bg1.gif) repeat-x; position:relative; list-style-type:none} ....
拖动层 td{font-size:12px;} /*模拟窗体*/ .vwin{ position:absolute; border-top: 2px outset buttonhighlight; border-left: 2px outset buttonhighlight; border-bottom: 2px outset buttonshadow; border-right: 2px outset buttonshadow; } .vwintit{height:18px;background-color:#000099;color:#ffffff;font-weight:bold;cursor:move;} .vwinbody{background-color:#D6D3CE;} 窗口一 窗口二 窗口三 ...
/* 脚本和web页共用同一个文件测试 body { font-size:1px; color:#fff; } #body { font-size:12px; color:#000; } 脚本和web页共用同一个文件测试 */ [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
上一篇写的废话太多,写得很烂,这一次讲讲继承吧,我们上一节知道了prototype,现在我从prototype下手来实现方法 function 职业(){ var 须知="每天要好好上班"; } 职业.prototype.上班=function(name){ return name+"上班"; } 职业.prototype.下班=function(){ return "下班"; } Function.prototype.extend=function(superClass){ for(var $p in superClass.prototype){ this.prototype[$p]=superClass.prototype[$p]; } ...
代码如下:/** * 得到XML文件属性的集合对象 * @param xmlDoc XML对象 * @param name 属性名称 如: user * @return 返回 Array 对象 * Example XML: * * * * * 小猪 * * 27 * * * * 小霞 * * 26 * * */ function getXMLArray(xmlDoc, name) { var keys = name.split(.); var node = xmlDoc.documentElement; // 得到...
代码如下:function DelInfo( SaleBillID ) { if( confirm(是否真的要删除当前记录?) ) { var objXMLHTTP = new ActiveXObject(MICROSOFT.XMLHTTP); objXMLHTTP.open(GET, Sale_ListInfo_Del.aspx?SaleBillID=+ SaleBillID, false); objXMLHTTP.send(); var ReturnHtml = objXMLHTTP.ResponseText; if( ReturnHtml == ) location.href( location.href ); else alert( ReturnHtml ); ...
引子: 本来两年前就打算写了,结果拖了这么长时间,近日看到有朋友问及相关的东西,终于决定在还没有完全遗忘之前把自己残存的记忆表达出来,纸、笔...写! 不要说你完全了解 MSAgent,可能你对它的认识也不过是知道而已~~~~~~~~ 开篇: 可能 MSAgent 这个名字你不清楚,但如果提起 Office 助手我想在这个目前 MicroSoft 独霸天下的电脑世界应该鲜有人不知道,本文就是交给你如何在网页中调用这个在线尤物。 入题: 一、抛砖引...
New Document body { margin:10px; } #dragHelper { position:absolute;/*重要*/ border:2px dashed #000000; background-color:#FFFFFF; filter: alpha(opacity=30); } .normal { position:absolute;/*重要*/ width:300px; #height:10px; border:1px solid #666666; background-color:#FFFFFF; } .over { position:absolute;/*重要*/ width:300px; #height:10px; border:1px solid #666666; background-color:#f3f3f3; fi...
代码如下: 应用了javascript和在IE下img本身的fileSize属性。另外img还有其他的几个属性,如fileCreatedDate、fileModifiedDate、fileSize、fileUpdatedDate、filters,我们可以通过这些属性来获取图片文件的部分信息,如文件大小,我们用file表单同img标签结合,就能够在上传之前判断图片文件的大小是否合法了。 代码如下: K
代码如下:var Comment = new Object(); var $C = function(tagName) { return document.createElement(tagName); }; String.prototype.trim = function() { return this.replace(/^\s*|\s*$/g,""); }; String.prototype.realLength = function() { return this.replace(/[^\x00-\xff]/g,"**").length; }; String.prototype.left = function(n) { if (this.length > n) { return this.substr(0, n) + ....
0) date.setTime(date.getTime() - skew) } var now = new Date() fixDate(now) now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000) var visits = getCookie("counter") if (!visits) visits = 1 else visits = parseInt(visits) + 1 setCookie("counter", visits, now) document.write("帅哥,欢迎您的第" + visits + "次光临!") // [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
var act; function over(){ var h = parseInt(mytd.height); if (h 30){ mytd.height = h - 2; clearTimeout(act); act = setTimeout('out()', 10); } } 无忧脚本 - 风云突变 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]//Url: http://bbs.51js.com/thread-61646-1-1.html //Author: 风云突变 //Modify: 枫岩 var act; function over(s,nMax){ var obj=document.getElementById(s); var h = parseInt(obj.offsetH...
function scroll(n) {temp=n; document.getElementById("Out1").scrollTop+=temp; if (temp==0) return; setTimeout("scroll(temp)",10); } xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]脚本之家站长修改
代码如下:大家试试看吧! 代码如下: function Request(strName) { var strHref = "www.abc.com/index.htm?a=1&b=1&c=测试测试"; var intPos = strHref.indexOf("?"); var strRight = strHref.substr(intPos + 1); var arrTmp = strRight.split("&"); for(var i = 0; i { var arrTemp = arrTmp[i].split("="); if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1]; } return ""; } alert(Requ...
代码如下: LD5工具 *{font-size:12px;font-family:宋体} td{width:180;cursor:hand;text-align:center} .n1{font-size:18px} .n2{font-size:18px;font-family:wingdings} .n3{font-size:18px;font-family:wingdings 2} .n4{font-size:18px;font-family:wingdings 3} .n5{font-size:18px;font-family:webdings} .n6{font-size:18px;font-family:Marlett} .n7{font-size:18px;font-family:华文彩云} 中文特殊符号Assic实体对...