脚 本 之 家 www.jb51.net
页面导航:  不限条件-->Qu
本地搜索:
[code]String.prototype.replaceAll=function(s1,s2){returnthis.replace(newRegExp(s1,"gm"),s2);};(function($){/**$-layer0.1-NewWaveJavascript**Copyright(c)2008KingWong*$Date:2008-10-09$*/var___id___="";var___settings___={};varisMouseDown=false;varcurrentElement=null;vardropCallbacks={};vardragCallbacks...
http://www.jb51.net//article/16114.htm
IE与火狐下可以跑.//回车事件处理$(document).keydown(function(event){if(event.keyCode==13){alert($('#idone').val());//回车键盘ISBN获取if($('#idone').val()=='isbn'){//isbncheck();$('#ztm').focus();}elseif($('#idone').val()=='ztm'){$('#bltm').focus();}if($('#idone').val()=='bltm'){$('#ftm').focus();}elseif($('#idone').val...
http://www.jb51.net//article/16059.htm
[code]String.prototype.replaceAll=function(s1,s2){returnthis.replace(newRegExp(s1,"gm"),s2);};(function($){/**$-layer0.1-jquerypulg-in**Copyright(c)2008KingWong*$Date:2008-09-28$*/var___win___=window.self;var___self___=window.self;var___id___="";var___settings___={};varisMouseDown=false;varcurrentEl...
http://www.jb51.net//article/16048.htm
[code](function($){$.fn.extend({selectColor:function(){var_d=newDate();var_tem=_d.getTime();returnthis.each(function(){varshowColor=function(_obj){var_left=parseInt($(_obj).offset().left);var_top=parseInt($(_obj).offset().top);var_width=parseInt($(_obj).width());var_height=parseInt($(_obj).height())...
http://www.jb51.net//article/16047.htm
[code]---common.jquery.js+++common.original.js@@-8,28+8,28@@*/varlang=newArray();varuserAgent=navigator.userAgent.toLowerCase();varis_opera=userAgent.indexOf('opera')!=-1&&opera.version();varis_moz=(navigator.product=='Gecko')&&userAgent.substr(userAgent.indexOf('firefox')+8,3);varis...
http://www.jb51.net//article/15922.htm
当然,前提要先打开CDN中一个功能reload_into_imson.这样用户发送过来no-cache也不怕了.因为这样会给给no-cache转成If-Modified-Since.所以我们写程序主要是对If-Modified-Since控制就好了.记的,缓存系统架构中计中最好是后端来控制,所以最好的方法是程序来管理过期.呵,我只会php,就用php写一个,别的程序也是一样见我下面的程序,呵呵,5分钟过期.<?php$headers=apache_request_headers();$client_time=(isset($headers['If-Modified-Since'])?st...
http://www.jb51.net//article/15872.htm
基本的鼠标互动:拖拽(draganddropping)、排序(sorting)、选择(selecting)、缩放(resizing)各种互动效果:手风琴式的折叠菜单(accordions)、日历(datepickers)、对话框(dialogs)、滑动条(sliders)、表格排序(tablesorters)、页签(tabs)、放大镜效果(magnifier)、阴影效果(shadow)第一部分:鼠标交互1.1Draggables:拖拽所需文件:ui.mouse.jsui.draggable.jsui.draggable.ext.js用法:文件载入后,可以拖拽class="block"的层$(d...
http://www.jb51.net//article/15863.htm
但问题来了,由于jQuery以及prototype都使用了美元符函数“$”作为选择器,在两者混合使用的时候$函数被重复定义了,结果导致其中一个框架不能使用。不过很快,有很多人给出了解决方案,如比较流行的方案是这样的:[code]<scriptsrc="http://jquery.com/src/latest/"></script><scripttype="text/javascript">JQ=$;//rename$function</script><scriptsrc="prototype.js"></script>&l...
http://www.jb51.net//article/15862.htm
在我们的应用中一般会是这样的,使用了jquery作为客户端框架,ajax请求也通常返回html或者json。html这里就不讨论了。返回json一般都是搞一个handler.ashx来处理请求,拼凑字符串来返回json。从而放弃了ws,因为ws返回的是xml,使用起来不方便。所以我觉着比较完美的解决方法是让ws返回json而且不用asp.netajax的客户端框是比较理想的解决方法。通过观测发现asp.netajax的客户端框架请求webservice的时候返回的是json,为什么webservice没有返回xml而返回了json呢?抓包分析到,关键在request的headers中“Cont...
http://www.jb51.net//article/15852.htm
html页面[code]<formonsubmit="if(confirm('确定好你所填写的正确,不然会发错!')){returncheckForm();}else{returnfalse;}"><table><tr><td>选择发送人<fontclass="red">*</font></td><td><inputtype="text"name="sendto_type[]"id="sendto_type1"value="1">按城市发送</td></tr>&l...
http://www.jb51.net//article/15837.htm
[code]staticstringGetEncoding(stringurl){HttpWebRequestrequest=null;HttpWebResponseresponse=null;StreamReaderreader=null;try{request=(HttpWebRequest)WebRequest.Create(url);request.Timeout=20000;request.AllowAutoRedirect=false;response=(HttpWebResponse)request.GetResponse();if(response.StatusCode==Ht...
http://www.jb51.net//article/15764.htm
共有:177/10,当前1/18页  [首页] [上一页] 1 2 3 4 5 6 7 8 [下一页]  [尾页] 转到: