code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * jQuery yiiactiveform plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiiactiveform.js 3158 2011-04-02 22:48:01Z qiang.xue $ * @since...
JavaScript
/* * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-...
JavaScript
(function($) { var CLASSES = $.treeview.classes; var proxied = $.fn.treeview; $.fn.treeview = function(settings) { settings = $.extend({}, settings); if (settings.add) { return this.trigger("add", [settings.add]); } if (settings.remove) { return this.trigger("remove", [settings.remove]); } return p...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Version 2.1.2 */ (function($){ $.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) { s = $.extend({ top : 'auto', // auto == .currentStyle.borderTo...
JavaScript
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/...
JavaScript
/** * jQuery Yii plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiitab.js 1827 2010-02-20 00:43:32Z qiang.xue $ */ ;(function($) { $.e...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
/// <reference path="../../../lib/jquery-1.2.6.js" /> /* Masked Input plugin for jQuery Copyright (c) 2007-2009 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.2.2 (03/09/2009 22:39:06) */ (function($) { var pasteEventName = ($.br...
JavaScript
/* * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
/* * Adobe Camera Raw Calibrator Tools * AcrCalibrator-AlignmentCheck * Version: x$((ver)) * http://chromoholics.com/ * * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a co...
JavaScript
/* * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
/* * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
/* * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
/* * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
/* * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
/* * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
/* * Adobe Camera Raw Calibrator * Version: $((version)) * http://chromoholics.com/ * * Copyright (c) 2007 Thomas Fors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w...
JavaScript
/*! DataTables Bootstrap 3 integration * ©2011-2014 SpryMedia Ltd - datatables.net/license */ /** * DataTables integration for Bootstrap 3. This requires Bootstrap 3 and * DataTables 1.10 or newer. * * This file sets the defaults and adds options to DataTables to style its * controls using Bootstrap. See http:...
JavaScript
function MultiListBox(firstListBox,secondListBox,clientID) { this.FirstListBox=firstListBox; this.SecondListBox=secondListBox; this.ClientID=clientID; } MultiListBox.prototype.transferRight=function() { // Move them over for (var i=0; i<this.FirstListBox.options.length; i++) { var o = this.FirstLis...
JavaScript
function Folder(folderDescription, hreference, cid) //constructor { //constant data this.desc = folderDescription this.cid = cid this.id = -1 this.hreference = hreference this.navObj = 0 this.iconImg = 0 this.nodeImg = 0 this.isLastNode = 0 //dynamic data this.isOpen = true this....
JavaScript
var langList = [ {name:'en', charset:'UTF-8'}, {name:'zh-cn', charset:'gb2312'}, {name:'zh-tw', charset:'GBK'} ]; var skinList = [ {name:'default', charset:'gb2312'}, {name:'whyGreen', charset:'gb2312'} ];
JavaScript
var $lang={ errAlertMsg: "Invalid date or the date out of range,redo or not?", aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], clearStr: "Clear", todayStr: "Today", okStr: "OK", updateStr: "OK", tim...
JavaScript
function Folder(folderDescription, hreference, cid) //constructor { //constant data this.desc = folderDescription this.cid = cid this.id = -1 this.hreference = hreference this.navObj = 0 this.iconImg = 0 this.nodeImg = 0 this.isLastNode = 0 //dynamic data this.isOpen = true this....
JavaScript
function Folder(folderDescription, hreference) //constructor { //constant data this.desc = folderDescription this.id = -1 this.hreference = hreference this.navObj = 0 this.iconImg = 0 this.nodeImg = 0 this.isLastNode = 0 //dynamic data this.isOpen = true this.iconSrc = TreeImgdir+"f...
JavaScript
/* * author: misshjn * email: misshjn@163.com * homepage: www.happyshow.org * createDate: 2007-02-23 * by Edit Lzppcc 2008-01-13 */ function HS_DateAdd(interval,number,date){ number = parseInt(number); if (typeof(date)=="string"){var date = new Date(date.split("-")[0],date.split("-")[1],date.split("-")[2]...
JavaScript
//$Id: checkForm.js,$ //tony 2004-3-30 //新增了对form的查询条件进行自动拼装的功能getQueryString(); /** * 检查送出的form的每个表单元素是否符合填写要求 * @fm 需要检查的form元素。 * @return 如果form的所有表单元素都符合要求,将返回true, * 否则将会报告不符合的原因,同时返回false。 * 示例: * <form onsubmit="return checkForm(this)"> * <input type=submit> * <input name=email title="请填写...
JavaScript
// // htmlArea v2.02 - Copyright (c) 2002 interactivetools.com, inc. // This copyright notice MUST stay intact for use (see license.txt). // // A free WYSIWYG editor replacement for <textarea> fields. // For full source code and docs, visit http://www.interactivetools.com/ // // write out styles for UI button...
JavaScript
/** * COMMON DHTML FUNCTIONS * These are handy functions I use all the time. * * By Seth Banks (webmaster at subimage dot com) * http://www.subimage.com/ * * Up to date code can be found at http://www.subimage.com/dhtml/ * * This code is free for you to use anywhere, just keep this comment block. */ /** * ...
JavaScript
/** * SUBMODAL v1.4 * Used for displaying DHTML only popups instead of using buggy modal windows. * * By Seth Banks (webmaster at subimage dot com) * http://www.subimage.com/ * * Contributions by: * Eric Angel - tab index code * Scott - hiding/showing selects for IE users * Todd Huss - inserting ...
JavaScript
function MultiListBox(firstListBox,secondListBox,clientID) { this.FirstListBox=firstListBox; this.SecondListBox=secondListBox; this.ClientID=clientID; } MultiListBox.prototype.transferRight=function() { // Move them over for (var i=0; i<this.FirstListBox.options.length; i++) { var o = this.FirstLis...
JavaScript
String.prototype.trim=function() { var m=this.match(/^\s*(\S+(\s+\S+)*)\s*$/);return (m==null)?"": m[1]; }; var lDOM={ $:function(s){ var o=typeof(s)=="string"?document.getElementById(s):s; try{return o;} finally {o=null;} }, hasClass:function(e,c){ if(!(e=this.$(e))) return false; e=e.className ...
JavaScript
function Folder(folderDescription, hreference, cid) //constructor { //constant data this.desc = folderDescription this.cid = cid this.id = -1 this.hreference = hreference this.navObj = 0 this.iconImg = 0 this.nodeImg = 0 this.isLastNode = 0 //dynamic data this.isOpen = true this....
JavaScript
function Folder(folderDescription, hreference, cid) //constructor { //constant data this.desc = folderDescription this.cid = cid this.id = -1 this.hreference = hreference this.navObj = 0 this.iconImg = 0 this.nodeImg = 0 this.isLastNode = 0 //dynamic data this.isOpen = true this....
JavaScript
function Folder(folderDescription, hreference) //constructor { //constant data this.desc = folderDescription this.id = -1 this.hreference = hreference this.navObj = 0 this.iconImg = 0 this.nodeImg = 0 this.isLastNode = 0 //dynamic data this.isOpen = true this.iconSrc = TreeImgdir+"f...
JavaScript
/* * author: misshjn * email: misshjn@163.com * homepage: www.happyshow.org * createDate: 2007-02-23 * by Edit Lzppcc 2008-01-13 */ function HS_DateAdd(interval,number,date){ number = parseInt(number); if (typeof(date)=="string"){var date = new Date(date.split("-")[0],date.split("-")[1],date.split("-")[2]...
JavaScript
//$Id: checkForm.js,$ //tony 2004-3-30 //新增了对form的查询条件进行自动拼装的功能getQueryString(); /** * 检查送出的form的每个表单元素是否符合填写要求 * @fm 需要检查的form元素。 * @return 如果form的所有表单元素都符合要求,将返回true, * 否则将会报告不符合的原因,同时返回false。 * 示例: * <form onsubmit="return checkForm(this)"> * <input type=submit> * <input name=email title="请填写...
JavaScript
/** * COMMON DHTML FUNCTIONS * These are handy functions I use all the time. * * By Seth Banks (webmaster at subimage dot com) * http://www.subimage.com/ * * Up to date code can be found at http://www.subimage.com/dhtml/ * * This code is free for you to use anywhere, just keep this comment block. */ /** * ...
JavaScript
/** * SUBMODAL v1.4 * Used for displaying DHTML only popups instead of using buggy modal windows. * * By Seth Banks (webmaster at subimage dot com) * http://www.subimage.com/ * * Contributions by: * Eric Angel - tab index code * Scott - hiding/showing selects for IE users * Todd Huss - inserting ...
JavaScript
/*! jQuery Validation Plugin - v1.10.0 - 9/7/2012 * https://github.com/jzaefferer/jquery-validation * Copyright (c) 2012 Jörn Zaefferer; Licensed MIT, GPL */ /*! * jQuery Validation Plugin 1.10.0 * * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ * http://docs.jquery.com/Plugins/Validation * * Co...
JavaScript
/** * @author zhanghuihua@msn.com */ (function($){ var menu, shadow, hash; $.fn.extend({ contextMenu: function(id, options){ var op = $.extend({ shadow : true, bindings:{}, ctrSub:null }, options ); if (!menu) { menu = $('<div id="contextmenu"></div>').ap...
JavaScript
/** * @desc 兼容不同的浏览器居中scrollCenter * @author ZhangHuihua@msn.com */ (function($){ $.fn.extend({ getWindowSize: function(){ if ($.browser.opera) { return { width: window.innerWidth, height: window.innerHeight }; } return { width: $(window).width(), height: $(window).height() }; }, /** * @...
JavaScript
function initEnv() { $("body").append(DWZ.frag["dwzFrag"]); if ( $.browser.msie && /6.0/.test(navigator.userAgent) ) { try { document.execCommand("BackgroundImageCache", false, true); }catch(e){} } //清理浏览器内存,只对IE起效 if ($.browser.msie) { window.setInterval("CollectGarbage();", 10000); } $(...
JavaScript
/** * jQuery ajax history plugins * @author ZhangHuihua@msn.com */ (function($){ $.extend({ History: { _hash: new Array(), _cont: undefined, _currentHash: "", _callback: undefined, init: function(cont, callback){ $.History._cont = cont; $.History._callback = callback;...
JavaScript
/** * Theme Plugins * @author ZhangHuihua@msn.com */ (function($){ $.fn.extend({ cssTable: function(options){ return this.each(function(){ var $this = $(this); var $trs = $this.find('tbody>tr'); var $grid = $this.parent(); // table var nowrap = $this.hasClass("nowrap"); ...
JavaScript
/** * @author Roger Wu v1.0 * @author ZhangHuihua@msn.com 2011-4-1 */ (function($){ $.fn.jTable = function(options){ return this.each(function(){ var $table = $(this), nowrapTD = $table.attr("nowrapTD"); var tlength = $table.width(); var aStyles = []; var $tc = $table.parent().addClass("j-...
JavaScript
/** * @author Roger Wu */ (function($){ var allSelectBox = []; var killAllBox = function(bid){ $.each(allSelectBox, function(i){ if (allSelectBox[i] != bid) { if (!$("#" + allSelectBox[i])[0]) { $("#op_" + allSelectBox[i]).remove(); //allSelectBox.splice(i,1); } else { $("#...
JavaScript
/** * @author ZhangHuihua@msn.com */ (function($){ // jQuery validate $.extend($.validator.messages, { required: "必填字段", remote: "请修正该字段", email: "请输入正确格式的电子邮件", url: "请输入合法的网址", date: "请输入合法的日期", dateISO: "请输入合法的日期 (ISO).", number: "请输入合法的数字", digits: "只能输入整数", creditcard: "请输入合法的信用...
JavaScript
/** * @author Roger Wu * reference:dwz.drag.js, dwz.dialogDrag.js, dwz.resize.js, dwz.taskBar.js */ (function($){ $.pdialog = { _op:{height:300, width:580, minH:40, minW:50, total:20, max:false, mask:false, resizable:true, drawable:true, maxable:true,minable:true,fresh:true}, _current:null, _zIndex:42, getC...
JavaScript
/** * @author ZhangHuihua@msn.com * */ var navTab = { componentBox: null, // tab component. contain tabBox, prevBut, nextBut, panelBox _tabBox: null, _prevBut: null, _nextBut: null, _panelBox: null, _moreBut:null, _moreBox:null, _currentIndex: 0, _op: {id:"navTab", stTabBox:".navTab-tab", s...
JavaScript
/** * @author Roger Wu * @version 1.0 * added extend property oncheck */ (function($){ $.extend($.fn, { jTree:function(options) { var op = $.extend({checkFn:null, selected:"selected", exp:"expandable", coll:"collapsable", firstExp:"first_expandable", firstColl:"first_collapsable", lastExp:"last_expandable",...
JavaScript
/** * @author ZhangHuihua@msn.com * */ var DWZ = { // sbar: show sidebar keyCode: { ENTER: 13, ESC: 27, END: 35, HOME: 36, SHIFT: 16, TAB: 9, LEFT: 37, RIGHT: 39, UP: 38, DOWN: 40, DELETE: 46, BACKSPACE:8 }, eventType: { pageClear:"pageClear", // 用于重新ajaxLoad、关闭nabTab, 关闭dialog时,去除xhedi...
JavaScript
/** * @author ZhangHuihua@msn.com * ---------------------------------------------------------- * These functions use the same 'format' strings as the * java.text.SimpleDateFormat class, with minor exceptions. * The format string consists of the following abbreviations: * * Field | Full Form | S...
JavaScript
/** * @author ZhangHuihua@msn.com */ (function($){ $.fn.extend({ checkboxCtrl: function(parent){ return this.each(function(){ var $trigger = $(this); $trigger.click(function(){ var group = $trigger.attr("group"); if ($trigger.is(":checkbox")) { var type = $trigger.is(":che...
JavaScript
/** * Theme Plugins * @author ZhangHuihua@msn.com */ (function($){ $.fn.extend({ theme: function(options){ var op = $.extend({themeBase:"themes"}, options); var _themeHref = op.themeBase + "/#theme#/style.css"; return this.each(function(){ var jThemeLi = $(this).find(">li[theme]"); var...
JavaScript
/** * reference dwz.util.date.js * @author ZhangHuihua@msn.com * */ (function($){ $.setRegional("datepicker", { dayNames:['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], monthNames:['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }); $.fn.datepicker = functi...
JavaScript
/** * @author ZhangHuihua@msn.com * */ /** * 普通ajax表单提交 * @param {Object} form * @param {Object} callback * @param {String} confirmMsg 提示确认信息 */ function validateCallback(form, callback, confirmMsg) { var $form = $(form); if (!$form.valid()) { return false; } var _submitFn = function(...
JavaScript
/** * @author Roger Wu * @version 1.0 */ (function($){ $.fn.cssv = function(pre){ var cssPre = $(this).css(pre); return cssPre.substring(0, cssPre.indexOf("px")) * 1; }; $.fn.jBar = function(options){ var op = $.extend({container:"#container", collapse:".collapse", toggleBut:".toggleCollapse div"...
JavaScript
/** * @author ZhangHuihua@msn.com * */ (function($){ $.printBox = function(rel){ var _printBoxId = 'printBox'; var $contentBox = rel ? $('#'+rel) : $("body"), $printBox = $('#'+_printBoxId); if ($printBox.size()==0){ $printBox = $('<div id="'+_printBoxId+'"></div>').appendTo("body"); ...
JavaScript
/** * @author Roger Wu */ (function($){ $.fn.dialogDrag = function(options){ if (typeof options == 'string') { if (options == 'destroy') return this.each(function() { var dialog = this; $("div.dialogHeader", dialog).unbind("mousedown"); }); ...
JavaScript
/** * @author Roger Wu */ (function($){ $.fn.jDrag = function(options){ if (typeof options == 'string') { if (options == 'destroy') return this.each(function(){ $(this).unbind('mousedown', $.rwdrag.start); $.data(this, 'pp-rwdrag', null); }); } return this.each(function(){ ...
JavaScript
/** * @author ZhangHuihua@msn.com */ (function($){ var _op = { cursor: 'move', // selector 的鼠标手势 sortBoxs: 'div.sortDrag', //拖动排序项父容器 replace: true, //2个sortBox之间拖动替换 items: '> *', //拖动排序项选择器 selector: '', //拖动排序项用于拖动的子元素的选择器,为空时等于item zIndex: 1000 }; var sortDrag = { start:function($sor...
JavaScript
/** * @requires jquery.validate.js * @author ZhangHuihua@msn.com */ (function($){ if ($.validator) { $.validator.addMethod("alphanumeric", function(value, element) { return this.optional(element) || /^\w+$/i.test(value); }, "Letters, numbers or underscores only please"); $.validator.addMethod(...
JavaScript
/** * @author Roger Wu * @version 1.0 */ (function($){ $.extend($.fn, { jPanel:function(options){ var op = $.extend({header:"panelHeader", headerC:"panelHeaderContent", content:"panelContent", coll:"collapsable", exp:"expandable", footer:"panelFooter", footerC:"panelFooterContent"}, options); return this.ea...
JavaScript
/** * * @author ZhangHuihua@msn.com * @param {Object} opts Several options */ (function($){ $.fn.extend({ pagination: function(opts){ var setting = { first$:"li.j-first", prev$:"li.j-prev", next$:"li.j-next", last$:"li.j-last", nums$:"li.j-num>a", jumpto$:"li.jumpto", pageNumFrag:'<li class...
JavaScript
/** * @author Roger Wu * @version 1.0 */ (function($){ $.fn.extend({ jTask:function(options){ return this.each(function(){ var $task = $(this); var id = $task.attr("id"); $task.click(function(e){ var dialog = $("body").data(id); if ($task.hasClass("selected")) { $("a.minimize", dia...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Version 2.1.3-pre */ (function($){ $.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) { s = $.extend({ top : 'auto', // auto == .currentStyle.bord...
JavaScript
/** * @author Roger Wu * @version 1.0 */ (function($){ $.fn.extend({jresize:function(options) { if (typeof options == 'string') { if (options == 'destroy') return this.each(function() { var dialog = this; $("div[class^='resizable']",dialog).each(function() { ...
JavaScript
/** * @author Roger Wu */ (function($) { var jmenus = new Map(); // If the DWZ scope is not available, add it $.dwz = $.dwz || {}; $(window).resize(function(){ setTimeout(function(){ for (var i=0; i<jmenus.size();i++){ fillSpace(jmenus.element(i).key); } }, 100); }); $.fn.extend({ accordi...
JavaScript
/** * @author ZhangHuihua@msn.com */ $.setRegional("alertMsg", { title:{error:"Error", info:"Information", warn:"Warning", correct:"Successful", confirm:"Confirmation"}, butMsg:{ok:"OK", yes:"Yes", no:"No", cancel:"Cancel"} }); var alertMsg = { _boxId: "#alertMsgBox", _bgId: "#alertBackground", _closeT...
JavaScript
/** * @author Roger Wu */ /*@cc_on _d=document;eval('var document=_d')@*/ /*@cc_on eval((function(props) {var code = [];for (var i = 0,l = props.length;i<l;i++){var prop = props[i];window['_'+prop]=window[prop];code.push(prop+'=_'+prop);}return 'var '+code.join(',');})('document self top parent alert setInterval ...
JavaScript
(function(){ function formatCurrency(num) { num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) {num = "0";} var sign = (num == (num = Math.abs(num))); num = Math.floor(num*100+0.50000000001); var cents = num%100; num = Math.floor(num/100).toString(); if(cents<10) {cents = "0" + cents;} ...
JavaScript
/** * @author Roger Wu */ (function($){ $.extend($.fn, { jBlindUp: function(options){ var op = $.extend({duration: 500, easing: "swing", call: function(){}}, options); return this.each(function(){ var $this = $(this); $(this).animate({height: 0}, { step: function(){}, duration: op.duration,...
JavaScript
/** * @author ZhangHuihua@msn.com * */ (function($){ $.fn.extend({ /** * options: reverse[true, false], eventType[click, hover], currentIndex[default index 0] * stTab[tabs selector], stTabPanel[tab panel selector] * ajaxClass[ajax load], closeClass[close tab] */ tabs: function (...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. ...
JavaScript
/** * @author ZhangHuihua@msn.com */ (function($){ var _lookup = {currentGroup:"", suffix:"", $target:null, pk:"id"}; var _util = { _lookupPrefix: function(key){ var strDot = _lookup.currentGroup ? "." : ""; return _lookup.currentGroup + strDot + key + _lookup.suffix; }, lookupPk: function(key...
JavaScript
/** * @author zhanghuihua@msn.com */ (function($){ $.fn.navMenu = function(){ return this.each(function(){ var $box = $(this); $box.find("li>a").click(function(){ var $a = $(this); $.post($a.attr("href"), {}, function(html){ $("#sidebar").find(".accordion").remove().end().append(html)....
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
/* SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ ;var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="...
JavaScript
/*! * artDialog iframeTools * Date: 2011-11-25 13:54 * http://code.google.com/p/artdialog/ * (c) 2009-2011 TangBin, http://www.planeArt.cn * * This is licensed under the GNU LGPL, version 2.1 or later. * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ */ ;(function ($, window, artDia...
JavaScript
/*! * artDialog 4.1.7 * Date: 2013-03-03 08:04 * http://code.google.com/p/artdialog/ * (c) 2009-2012 TangBin, http://www.planeArt.cn * * This is licensed under the GNU LGPL, version 2.1 or later. * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ */ ;(function (window, undefined) { /...
JavaScript
/*! * artDialog 4.1.7 * Date: 2013-03-03 08:04 * http://code.google.com/p/artdialog/ * (c) 2009-2012 TangBin, http://www.planeArt.cn * * This is licensed under the GNU LGPL, version 2.1 or later. * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ */ //----------------------------...
JavaScript
/*! * jQuery Form Plugin * version: 2.96 (16-FEB-2012) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(function($...
JavaScript
/* =============================================================================== WResize is the jQuery plugin for fixing the IE window resize bug ............................................................................... Copyright 2007 / Andrea Ercolino -----...
JavaScript
//JS去除字符串所有空格 function Trim(str, is_global) { var result; result = str.replace(/(^\s+)|(\s+$)/g, ""); if (is_global.toLowerCase() == "g") result = result.replace(/\s/g, ""); return result; } //获取QueryString的数组 function getQueryString() { var result = location.search.match(new Re...
JavaScript
/* * $Id: om-position.js,v 1.2 2012/03/29 06:02:46 chentianzhen Exp $ * operamasks-ui omPosition @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ */ (function...
JavaScript
/* * $Id: om-messagetip.js,v 1.11 2012/06/21 03:09:30 wangfan Exp $ * operamasks-ui omMessageBox @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends...
JavaScript
/* * $Id: om-calendar.js,v 1.109 2012/06/01 06:52:15 linxiaomin Exp $ * operamasks-ui omCalendar @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ */ /** * @n...
JavaScript
/* * $Id: om-numberfield.js,v 1.70 2012/06/26 06:31:06 wangfan Exp $ * operamasks-ui omNumberField @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depen...
JavaScript
/* * $Id: om-draggable.js,v 1.17 2012/03/29 06:03:09 chentianzhen Exp $ * operamasks-ui omTree @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: ...
JavaScript
/* * $Id: om-menu.js,v 1.41 2012/06/27 03:10:09 luoyegang Exp $ * operamasks-ui om-menu.js @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * o...
JavaScript
/* * $Id: om-messagebox.js,v 1.25 2012/06/28 02:13:57 licongping Exp $ * operamasks-ui omMessageBox @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depe...
JavaScript
/* * $Id: om-grid-rowexpander.js,v 1.7 2012/06/29 09:22:20 chentianzhen Exp $ * operamasks-ui omGrid @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * De...
JavaScript
/* * $Id: om-validate.js,v 1.7 2012/06/04 03:03:11 linxiaomin Exp $ * operamasks-ui validate @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ */ ;(function($...
JavaScript
/* * $Id: om-mouse.js,v 1.3 2012/03/29 06:01:25 chentianzhen Exp $ * operamasks-ui omMouse @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * ...
JavaScript
/* * $Id: om-fileupload.js,v 1.29 2012/05/08 06:49:11 linxiaomin Exp $ * operamasks-ui omFileUpload @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depe...
JavaScript
/* * $Id: om-droppable.js,v 1.12 2012/03/15 07:16:12 wangfan Exp $ * operamasks-ui omTree @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * om...
JavaScript
/* * $Id: om-grid-roweditor.js,v 1.32 2012/07/09 04:35:06 chentianzhen Exp $ * operamasks-ui omGrid @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Dep...
JavaScript
/* * $Id: om-buttonbar.js,v 1.2 2012/06/12 02:22:26 luoyegang Exp $ * operamasks-ui omButtonbar @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends:...
JavaScript
/* * $Id: om-ajaxsubmit.js,v 1.14 2012/03/15 07:16:12 wangfan Exp $ * operamasks-ui omAjaxSubmit @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ */ ;(functio...
JavaScript
/* * $Id: om-core.js,v 1.27 2012/06/19 08:40:21 licongping Exp $ * operamasks-ui om-core @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ */ (function( $, und...
JavaScript