code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Creates a new level control. * @constructor * @param {IoMap} iomap the IO map controller. * @param {Array.<string>} levels the levels to create switchers for. */ function LevelControl(iomap, levels) { var that = this; this.iomap_ = iomap; this.el_ = this.initDom_(levels); google.maps.event.addList...
JavaScript
/** * @license * * Copyright 2011 Google Inc. * * 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 l...
JavaScript
// Copyright 2011 Google /** * 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 in wri...
JavaScript
// SpryMenuBar.js - version 0.13 - Spry Pre-Release 1.6.1 // // Copyright (c) 2006. Adobe Systems Incorporated. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistribution...
JavaScript
function zipCheck(){ url="zipCheck.jsp?check=y"; window.open(url,"post","toolbar=no ,width=500 ,height=300 ,directories=no,status=yes,scrollbars=yes,menubar=no"); } function idCheck(id){ if(id == ""){ alert("아이디를 입력해 주세요."); document.regForm.id.focus(); }else{ url="idCheck.jsp?id=" + id; windo...
JavaScript
/** * @license * * Copyright 2011 Google Inc. * * 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 l...
JavaScript
/** * Creates a new level control. * @constructor * @param {IoMap} iomap the IO map controller. * @param {Array.<string>} levels the levels to create switchers for. */ function LevelControl(iomap, levels) { var that = this; this.iomap_ = iomap; this.el_ = this.initDom_(levels); google.maps.event.addList...
JavaScript
/** * Creates a new Floor. * @constructor * @param {google.maps.Map=} opt_map */ function Floor(opt_map) { /** * @type Array.<google.maps.MVCObject> */ this.overlays_ = []; /** * @type boolean */ this.shown_ = true; if (opt_map) { this.setMap(opt_map); } } /** * @param {google.maps.M...
JavaScript
// Copyright 2011 Google /** * 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 in wri...
JavaScript
function LoadSubMenu(url) { parent.subcontents.document.location = url; }
JavaScript
function confirmurl(url,message) { if(confirm(message)) redirect(url); } function redirect(url) { if(url.indexOf('://') == -1 && url.substr(0, 1) != '/' && url.substr(0, 1) != '?') url = $('base').attr('href')+url; location.href = url; } //滚动条 $(function(){ //inputStyle $(":text").addClass('input-text')...
JavaScript
/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo * The DHTML Calendar, version 1.0 "It is happening again" * Details and latest version at: * www.dynarch.com/projects/calendar * This script is developed by Dynarch.com. Visit us at www.dynarch.com. * This script is distributed under the GNU Lesse...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uic...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
var regexEnum = { intege:"^-?[1-9]\\d*$", //整数 intege1:"^[1-9]\\d*$", //正整数 intege2:"^-[1-9]\\d*$", //负整数 num:"^([+-]?)\\d*\\.?\\d+$", //数字 num1:"^[1-9]\\d*|0$", //正数(正整数 + 0) num2:"^-[1-9]\\d*|0$", //负数(负整数 + 0) decmal:"^([+-]?)\\d*\\.\\d+$", //浮点数 decmal1:"^[1-9]\\d*.\\d*|0.\...
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 UNDEF = "undefined", OBJECT = "object", SHOCKWAVE_FLASH = "Shockwave Flash", SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas...
JavaScript
/* * 在jquery.suggest 1.1基础上针对中文输入的特点做了部分修改,下载原版请到jquery插件库 * 修改者:wangshuai * * 修改部分已在文中标注 * * * jquery.suggest 1.1 - 2007-08-06 * * Uses code and techniques from following libraries: * 1. http://www.dyve.net/jquery/?autocomplete * 2. http://dev.jquery.com/browser/trunk/plugins/int...
JavaScript
function setmodel(value, id, siteid, q) { $("#typeid").val(value); $("#search a").removeClass(); id.addClass('on'); if(q!=null && q!='') { window.location='?m=search&c=index&a=init&siteid='+siteid+'&typeid='+value+'&q='+q; } }
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 UNDEF = "undefined", OBJECT = "object", SHOCKWAVE_FLASH = "Shockwave Flash", SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas...
JavaScript
var userAgent = navigator.userAgent.toLowerCase(); jQuery.browser = { version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1], safari: /webkit/.test( userAgent ), opera: /opera/.test( userAgent ), msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ), mozilla: /mozilla/.test( use...
JavaScript
$(document).ready(function() { var q = $("#q").val(); var typeid = $("#typeid").val(); search_history = getcookie('search_history'); if(search_history!=null && search_history!='') { search_s = search_history.split(","); var exists = in_array(q+'|'+typeid, search_s); //不存在 if(exists==-1) { if(...
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
/** * SmallSilder JQuery plugin * http://lib.kindcent.com/smallslider * JQuery plugin for switch images, Please Open me with UTF-8 encoding * Created under Ubuntu 9.10 OS , if you open it with notepad.exe , some black squares will appear ! * 这是一个源码开放程序,本人特意加上注释以方便大家修改,你可以自行修改,再发布,欢迎和我交流。 * 0.5版本新增加actionGap延时选项,部...
JavaScript
//收藏备选 function favorite(favorite_url, favorite_title){ if(favorite_url=='' || favorite_url==null || favorite_url=='undefined') { favorite_url = document.URL; } if(favorite_title == '' || favorite_title==null || favorite_title=='undefined') { favorite_title = document.title; } if (favorite_title &&...
JavaScript
//add by weifan studio at 2011/05/02 start function _attachEvent(obj, evt, func, eventobj) { eventobj = !eventobj ? obj : eventobj; if(obj.addEventListener) { obj.addEventListener(evt, func, false); } else if(eventobj.attachEvent) { obj.attachEvent('on' + evt, func); } } function _detachEvent(obj, ev...
JavaScript
/** * $.ld * @extends jquery.1.4.2 * @fileOverview 创建一组联动选择框 * @author 明河共影 * @email [email protected] * @site wwww.36ria.com * @version 0.2 * @date 2010-08-18 * Copyright (c) 2010-2010 明河共影 * @example * $(".ld-select").ld(); */ (function($){ $.fn.ld = function(options){ var opts; ...
JavaScript
function open_menu(id,name,container,file,path,title,key, func) { returnid= id; returnfile = file; returnname = name; returnfunc = func; var content = '<div class="linkage-menu"><h6><a href="javascript:;" onclick="get_menu_parent(this,0,\''+path+'\', \''+title+'\', \''+key+'\')" class="rt"><<返回主菜单</a><span>'...
JavaScript
(function($){ $.fn.mlnColsel=function(data,setting){ var dataObj={"Items":[ {"name":"mlnColsel","topid":"-1","colid":"-1","value":"-1","fun":function(){alert("undefined!");}} ]}; var settingObj={ title:"请选择", value:"-1", width:100 }; settingObj=$.extend(settingObj,setting); data...
JavaScript
function open_linkage(id,name,container,linkageid) { returnid= id; returnkeyid = linkageid; var content = '<div class="linkage-menu"><h6><a href="javascript:;" onclick="get_parent(this,0)" class="rt"><<返回主菜单</a><span>'+name+'</span> <a href="javascript:;" onclick="get_parent(this)" id="parent_'+id+'" parentid="0...
JavaScript
Calendar.LANG("cn", "中文", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "今天", today: "今天", // appears in bottom bar wk: "周", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "AM", PM...
JavaScript
(function(a){ a.fn.webwidget_rating_sex=function(p){ var p=p||{}; var b=p&&p.rating_star_length?p.rating_star_length:"5"; var n=p&&p.rating_star_each?p.rating_star_each:"1"; var c=p&&p.rating_function_click?p.rating_function_click:""; var h=p&&p.rating_function_hover?p.rating_funct...
JavaScript
/** * Copyright (c) 2010 Anders Ekdahl (http://coffeescripter.com/) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: 1.2.4 * * Demo and documentation: http://coffeescripter.com/code/ad-g...
JavaScript
/** * Styleswitch stylesheet switcher built on jQuery * Under an Attribution, Share Alike License * Download by http://www.codefans.net * By Kelvin Luck ( http://www.kelvinluck.com/ ) **/ (function($) { $(document).ready(function() { $('.styleswitch').click(function() { switchStylestyle(this.getAtt...
JavaScript
Array.prototype.in_array = function(e){ for(i=0;i<this.length && this[i]!=e;i++); return !(i==this.length); } function remove_all(){ $("#checkbox :checkbox").attr("checked",false); $("#relation_text").html(""); $.get(ajax_url, {m:'yp', c:'index', a:'pk', action:'remove', catid:catid, random:Math.random()});...
JavaScript
/** * 会员中心公用js * */ /** * 隐藏html element */ function hide_element(name) { $('#'+name+'').fadeOut("slow"); } /** * 显示html element */ function show_element(name) { $('#'+name+'').fadeIn("slow"); } $(document).ready(function(){   $("input.input-text").blur(function () { this.className='inpu...
JavaScript
function FileProgress(file, targetID) { this.fileProgressID = file.id; this.opacity = 100; this.height = 0; this.fileProgressWrapper = document.getElementById(this.fileProgressID); if (!this.fileProgressWrapper) { this.fileProgressWrapper = document.createElement("div"); this.fileProgressWrapper.cl...
JavaScript
function att_show(serverData,file) { var serverData = serverData.replace(/<div.*?<\/div>/g,''); var data = serverData.split(','); var id = data[0]; var src = data[1]; var ext = data[2]; var filename = data[3]; if(id == 0) { alert(src) return false; } if(ext == 1) { var img = '<a href="javasc...
JavaScript
var SWFUpload; if (SWFUpload == undefined) { SWFUpload = function (settings) { this.initSWFUpload(settings); }; } SWFUpload.prototype.initSWFUpload = function (settings) { try { this.customSettings = {}; // A container where developers can place their own settings associated with this instance. ...
JavaScript
function flashupload(uploadid, name, textareaid, funcName, args, module, catid, authkey) { var args = args ? '&args='+args : ''; var setting = '&module='+module+'&catid='+catid+'&authkey='+authkey; window.top.art.dialog({title:name,id:uploadid,iframe:'index.php?m=attachment&c=attachments&a=swfupload'+args+setting...
JavaScript
/* * sGallery 1.0 - simple gallery with jQuery * made by bujichong 2009-11-25 * 作者:不羁虫 2009-11-25 * http://hi.baidu.com/bujichong/ * 欢迎交流转载,但请尊重作者劳动成果,标明插件来源及作者 */ (function ($) { $.fn.sGallery = function (o) { return new $sG(this, o); //alert('do'); }; var settings = { thumbObj:n...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; config.uiColor = '#f7f5f4';...
JavaScript
/* Copyright (c) 2005-2011, PHPCMS V9- Rocing Chan. All rights reserved. For licensing, see http://www.phpcms.cn.com/license */ (function() { var loadcapture = { exec : function( editor ) { var pluginNameExt = 'capture'; ext_editor = editor.name; if(CKEDITOR.env.ie) { try{ //va...
JavaScript
/* Copyright (c) 2003-2010, PHPCMS - PHPCMS TEAM. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('capture','zh-cn', { capture: { title:'PHPCMS在线截图', notice:'PHPCMS在线截图控件安装', notice_tips:'<p id="Capture">你还没有安装截图插件!<br />请使用 <a href="h...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uic...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
$(document).ready(function() { $("#q").suggest("?m=search&c=index&a=public_get_suggest_keyword&url="+encodeURIComponent('http://www.google.cn/complete/search?hl=zh-CN&q='+$("#q").val()), { onSelect: function() { alert(this.value); } }); }); var google={ ac:{ h:...
JavaScript
$(document).ready(function(){ //获取锚点即当前图片id var picid = location.hash; picid = picid.substring(1); if(isNaN(picid) || picid=='' || picid==null) { picid = 1; } picid = parseInt(picid); //图集图片总数 var totalnum = $("#pictureurls li").length; //如果当前图片id大于图片数,显示第一张图片 if(picid > totalnum || picid < 1) ...
JavaScript
var regexEnum = { intege:"^-?[1-9]\\d*$", //整数 intege1:"^[1-9]\\d*$", //正整数 intege2:"^-[1-9]\\d*$", //负整数 num:"^([+-]?)\\d*\\.?\\d+$", //数字 num1:"^[1-9]\\d*|0$", //正数(正整数 + 0) num2:"^-[1-9]\\d*|0$", //负数(负整数 + 0) decmal:"^([+-]?)\\d*\\.\\d+$", //浮点数 decmal1:"^[1-9]\\d*.\\d*|0.\...
JavaScript
var phpcms_path = '/'; var cookie_pre = 'sYQDUGqqzH'; var cookie_domain = ''; var cookie_path = '/'; function getcookie(name) { name = cookie_pre+name; var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while(i < clen) { var j = i + alen; if(document.cook...
JavaScript
var ColorHex=new Array('00','33','66','99','CC','FF') var SpColorHex=new Array('FF0000','00FF00','0000FF','FFFF00','00FFFF','FF00FF') var current=null var colorTable='' function colorpicker(showid,fun) { for (i=0;i<2;i++) { for (j=0;j<6;j++) { colorTable=colorTable+'<tr height=12>' colorTable=colorTab...
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 UNDEF = "undefined", OBJECT = "object", SHOCKWAVE_FLASH = "Shockwave Flash", SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas...
JavaScript
/** * @classDescription 模拟Marquee,无间断滚动内容 * @author Aken Li(www.kxbd.com) * @DOM * <div id="marquee"> * <ul> * <li></li> * <li></li> * </ul> * </div> * @CSS * #marquee {width:200px;height:50px;overflow:hidden;} * @Usage * $('#marquee').kxbdMarquee(options); * @options...
JavaScript
function checkradio(radio) { var result = false; for(var i=0; i<radio.length; i++) { if(radio[i].checked) { result = true; break; } } return result; } function checkselect(select) { var result = false; for(var i=0;i<select.length;i++) { if(select[i].selected && select[i].val...
JavaScript
jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof ...
JavaScript
var regexEnum = { intege:"^-?[1-9]\\d*$", //整数 intege1:"^[1-9]\\d*$", //正整数 intege2:"^-[1-9]\\d*$", //负整数 num:"^([+-]?)\\d*\\.?\\d+$", //数字 num1:"^[1-9]\\d*|0$", //正数(正整数 + 0) num2:"^-[1-9]\\d*|0$", //负数(负整数 + 0) decmal:"^([+-]?)\\d*\\.\\d+$", //浮点数 decmal1:"^[1-9]\\d*.\\d*|0.\...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Wspaceidth = 0; this.Height = 0; this.IsHitCount = "N"; this.UploadFilePath = ""; this.URL...
JavaScript
/*! * jQuery Cycle Plugin (with Transition Definitions) * Examples and documentation at: http://jquery.malsup.com/cycle/ * Copyright (c) 2007-2010 M. Alsup * Version: 2.9993 (26-MAY-2011) * Dual licensed under the MIT and GPL licenses. * http://jquery.malsup.com/license.html * Requires: jQuery v1.3.2 or later *...
JavaScript
jQuery(document).ready(function() { jQuery('#lightImgAlter, .lightImgAlter').fancybox({ "titleShow" : false, "transitionIn" : "elastic", "transitionOut" : "elastic", "type" : "image" }); jQuery(".campoInformativo").hover( function () { jQuery(this).next(".descInformativo").addClass("opened...
JavaScript
eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c .toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [ function(e) { return r[e] } ]; e = function() { r...
JavaScript
//abrir popup da impressao function imprimirDocumento(strParams){ window.open(strParams, 'Impressao', 'height=950,width=900,scrollbars=yes,menubar=no'); return false; }
JavaScript
//método que pega a altura ou largura INTERNA da janela do usuário. function returnSize (type){ var type = (type)? type : ""; if (document.all) { //pegando o Altura tela no IE. if (!document.documentElement.clientHeight) var height = document.body.clientHeight; ...
JavaScript
/** * @author trixta */ (function($){ $.bind = function(object, method){ var args = Array.prototype.slice.call(arguments, 2); if(args.length){ return function() { var args2 = [this].concat(args, $.makeArray( arguments )); return method.apply(object, args2); }; } else { return function() { var args2...
JavaScript
/* * jQuery selectbox plugin * * Copyright (c) 2007 Sadri Sahraoui (brainfault.com) * Licensed under the GPL license and MIT: * http://www.opensource.org/licenses/GPL-license.php * http://www.opensource.org/licenses/mit-license.php * * The code is inspired from Autocomplete plugin (http://www.dyve.n...
JavaScript
/* Copyright (c) 2007 Paul Bakaus ([email protected]) and Brandon Aaron ([email protected] || http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007...
JavaScript
/* * jQuery Tooltip plugin 1.2 * * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ * http://docs.jquery.com/Plugins/Tooltip * * Copyright (c) 2006 - 2008 Jörn Zaefferer * * $Id: jquery.tooltip.js 4569 2008-01-31 19:36:35Z joern.zaefferer $ * * Dual licensed under the MIT and GPL licenses: * ht...
JavaScript
/* * jQuery UI 1.7.1 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;jQuery.ui || (function($) { var _remove = $.fn.remove, isFF2 = $.browser.mozilla && (parseFloat($.browser....
JavaScript
/** * Copyright (c) 2008 Kelvin Luck (http://www.kelvinluck.com/) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * . * $Id: jquery.datePicker.js 94 2010-01-25 02:25:27Z kelvin.luck $ **/ (functio...
JavaScript
/** * @author trixta */ (function($){ $.userMode = (function(){ var userBg, timer, testDiv, boundEvents = 0; function testBg(){ testDiv = testDiv || $('<div></div>').css({position: 'absolute', left: '-999em', top: '-999px', width: '0px', height: '0px'}).appendTo('body'); var black = $.curCSS(...
JavaScript
/* * jQuery selectbox plugin * * Copyright (c) 2007 Sadri Sahraoui (brainfault.com) * Licensed under the GPL license and MIT: * http://www.opensource.org/licenses/GPL-license.php * http://www.opensource.org/licenses/mit-license.php * * The code is inspired from Autocomplete plugin (http://www.dyve.n...
JavaScript
// 1 - START DROPDOWN SLIDER SCRIPTS ------------------------------------------------------------------------ $(document).ready(function () { $(".showhide-account").click(function () { $(".account-content").slideToggle("fast"); $(this).toggleClass("active"); return false; }); })...
JavaScript
// 1 - START DROPDOWN SLIDER SCRIPTS ------------------------------------------------------------------------ $(document).ready(function () { $(".showhide-account").click(function () { $(".account-content").slideToggle("fast"); $(this).toggleClass("active"); return false; }); })...
JavaScript
/* * Style File - jQuery plugin for styling file input elements * * Copyright (c) 2007-2008 Mika Tuupola * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Based on work by Shaun Inman * http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_an...
JavaScript
/* * jQuery selectbox plugin * * Copyright (c) 2007 Sadri Sahraoui (brainfault.com) * Licensed under the GPL license and MIT: * http://www.opensource.org/licenses/GPL-license.php * http://www.opensource.org/licenses/mit-license.php * * The code is inspired from Autocomplete plugin (http://www.dyve.ne...
JavaScript
/** * @author alexander.farkas * @version 1.3 */ (function($){ $.widget('ui.checkBox', { _init: function(){ var that = this, opts = this.options, toggleHover = function(e){ if(this.disabledStatus){ return false; } that.hover = (e.type == 'focus' || e.ty...
JavaScript
/* * Date prototype extensions. Doesn't depend on any * other code. Doens't overwrite existing methods. * * Adds dayNames, abbrDayNames, monthNames and abbrMonthNames static properties and isLeapYear, * isWeekend, isWeekDay, getDaysInMonth, getDayName, getMonthName, getDayOfYear, getWeekOfYear, * setDayOfYear, ad...
JavaScript
/** * IE6Update.js * IE6Update is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 3 of the License. * * IE6Update is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANT...
JavaScript
/** * jQuery lightBox plugin * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/) * and adapted to me for use like a plugin from jQuery. * @name jquery-lightbox-0.5.js * @author Leandro Vieira Pinho - http://leandrovieira.com * @version 0.5...
JavaScript
$(document).ready(function() { if(navegadorAntigo()) { $("<div id='browserMessage' style=''>Seu "+nomeNavegador()+" n&atilde;o foi homologado em nosso site. Utilize um dos seguintes navegadores: <br />Internet Explorer 9, Mozilla Firefox 5, Google Chrome, Opera 10, Safari 3.2 ou vers&otilde;es superiores dos mesm...
JavaScript
jQuery(document).ready(function(){ /* * Body Class * * Adiciona classes ao <body> respectivas ao sistema operacional, browser e versão do browser. * Ex.: Se vc estiver no Windows usando Firefox 3: <body class="windows firefox firefox3"> */ var nav = navigator.userAgent.toLowerCase(); a = /(chrome)(?...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and deltaY * *...
JavaScript
/* * FancyBox - jQuery Plugin * Simple and fancy lightbox alternative * * Examples and documentation at: http://fancybox.net * * Copyright (c) 2008 - 2010 Janis Skarnelis * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is great...
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
function replaceIdByName() { $(".get-fb-name").each(function(index, domEle) { var link = "/" + $(this).html(); FB.api(link, function(response) { // Update the names $(domEle).html(response.name); $(domEle).show(); }); }); } function replaceIdByPic() { $(".get-fb-pic").each(function(index,...
JavaScript
$(document).ready(function(){ //show loading bar function showLoader(){ $('.search-background').fadeIn(200); } //hide loading bar function hideLoader(){ $('.search-background').fadeOut(200); }; $("#paging_button li").click(function(){ //show the loading bar showLoader(); $("#paging_b...
JavaScript
function changeSubCategory(){ var category = document.getElementById('category_id'); var sub_category = document.getElementById('sub_category_id') if (category.value == ''){ return; } sub_category.options.length = 0; var counter = 0; for (var i = 0; i < sub_category_options.length; i++) { if (sub...
JavaScript
/**** SmartStars (C)Scripterlative.com !!! READ THIS FIRST !!! -> This code is distributed on condition that all developers using it recognise the effort that -> went into producing it, by making a PayPal gratuity OF THEIR CHOICE to the authors within 14 -> days. The latter will not be treated as a sale...
JavaScript
var curr_page = 1; var per_page = 8; var num_pages = Math.ceil(alternatives.length / per_page); if(num_pages == 0){ num_pages = 1; } function makePaginator(){ $("#paginator").paginate({ count: num_pages, start: curr_page, display: 5, border: true, border_color: '#CD9F33', text_color: '#...
JavaScript