code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Isotope v1.5.25 * An exquisite jQuery plugin for magical layouts * http://isotope.metafizzy.co * * Commercial use requires one-time purchase of a commercial license * http://isotope.metafizzy.co/docs/license.html * * Non-commercial use is licensed under the MIT License * * Copyright 2013 Metafizzy */ ...
JavaScript
(function($){ //plugin's default options var settings = { prependTo: 'nav', //insert at top of page by default switchWidth: 768, //width at which to switch to select, and back again topOptionText: 'Select a page:' //default "unselected" state }, menuCount = 0, //used as a unique index ...
JavaScript
/* * jQuery Superfish Menu Plugin * Copyright (c) 2013 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ (function ($) { "use strict"; var methods = (function () { // private properties and methods go ...
JavaScript
/* * jQuery OwlCarousel v1.22 * * Copyright (c) 2013 Bartosz Wojciechowski * http://www.owlgraphic.com/owlcarousel * * Licensed under MIT * */ // Object.create function if ( typeof Object.create !== "function" ) { Object.create = function( obj ) { function F() {}; F.prototype = obj; return new F(); };...
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
/** * @name jQuery touchTouch plugin * @author Martin Angelov * @version 1.0 * @url http://tutorialzine.com/2012/04/mobile-touch-gallery/ * @license MIT License */ (function(){ /* Private variables */ var overlay = $('<div id="galleryOverlay">'), slider = $('<div id="gallerySlider">'), prevArrow ...
JavaScript
;(function($){ function init(form,o){ var name=$('.name>input',form) ,email=$('.email>input',form) ,submit=$('a[data-type="submit"]',form) ,msg_success=$('.success',form).hide() ,bl,vl o=$.extend({ ownerEmail:'#' ,mailHandlerURL:'bat/MailHandler-sub.php' },o) submit.click(...
JavaScript
var bMoveable=true; var strFrame; document.writeln('<iframe id=endDateLayer frameborder=0 width=300 height=190 style="position: absolute; z-index: 9998; display: none"></iframe>'); strFrame='<style>'; strFrame+='INPUT.button{BORDER-RIGHT: #FF9900 1px solid;BORDER-TOP: #FF9900 1px solid;BORDER-LEFT: #FF9900 1px ...
JavaScript
//验证用户注册输入 function checkemail() { var email = $("#ctl00_ContentPlaceHolder1_email").val(); var isemail=(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/); if (email==""){ htmlerror("请输入邮件地址","tdmail"); return false; ...
JavaScript
// $Id: drupal.js,v 1.41.2.4 2009/07/21 08:59:10 goba Exp $ var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} }; /** * Set the variable that indicates if JavaScript behaviors should be applied */ Drupal.jsEnabled = document.getElementsByTagName && document.createElement && documen...
JavaScript
/*投票显示定义--JqVote类*/ //voteDiv:JQUERY对象,要渲染的DOM //label投票的总标题,如果不需要则传入null; //voteWidth 数字,完整投票容器的总宽度; //titleWidth 数字,每个投票项标题的宽度(默认为100%,选择默认时,传入null); //slipWidth 数字,每个投票量BAR的总宽度; //lineHeigth数字,每个投票行的行高(默认为0,表示自动适应,但在IE6下,必须设一个大于0的值!) //units:详细数据显示单位,不需要单位时,传入null //havePercent:boolean,决定了是否要显示百分率 //投票数量条B...
JavaScript
function address_next(){ var rname = $("#rname").val(); var address = $("#address").val(); var zip = $("#zip").val(); var mobile = $("#mobile").val(); $.post('/buy_ajax/reg_address',{rname:rname,address:address,zip:zip,mobile:mobile},function(data){ if(data){ location.href = location.href; } else{ aler...
JavaScript
function vote_radio(){ var isnull = 0; var radio_val = $("input[@name=radio][@checked]").val(); var hidden_voteId = $("#hidden").val(); var other = $("#other").val(); var redio_sel = ''; if(other == ''){ other = "null"; } $("input[@type=radio][@checked]").each(function(){ isnull++; }); if(isnull != 0){...
JavaScript
function DoFresh(){ var t=new Date(); $("#imagesecode").attr("src", "../shared/ValidateCode.aspx?number=" + t.getTime()); } function city_emails() { var city = $("#select_city").val(); var email = $("#ctl00_ContentPlaceHolder1_city_email").val(); rule = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z...
JavaScript
if(typeof deconcept=="undefined"){var deconcept=new Object();} if(typeof deconcept.util=="undefined"){deconcept.util=new Object();} if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();} deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;} ...
JavaScript
/** * jmpopups * Copyright (c) 2009 Otavio Avila (http://otavioavila.com) * Licensed under GNU Lesser General Public License * * @docs http://jmpopups.googlecode.com/ * @version 0.5.1 * */ (function($) { var openedPopups = []; var popupLayerScreenLocker = false; var focusableElemen...
JavaScript
function copyToClipboard(txt) { if(window.clipboardData) { window.clipboardData.clearData(); window.clipboardData.setData("Text", txt); alert("复制成功!"); } else if(navigator.userAgent.indexOf("Opera") != -1) { window.location = txt; ...
JavaScript
var jimmy = {name:"jimmy.yang",email:"jimmy.yang@163.com"}
JavaScript
// Draw color selector // create 6-element array var s = ""; var hex = new Array(6) // assign non-dithered descriptors hex[0] = "FF" hex[1] = "CC" hex[2] = "99" hex[3] = "66" hex[4] = "33" hex[5] = "00" // draw a single table cell based on all descriptors function drawCell(red, green, blue) { // open cell...
JavaScript
function ResetDomain() { var ss=document.domain; //ss == "www.126.com"; var ii=ss.lastIndexOf('.'); if(ii>0) { if(!isNaN(ss.substr(ii+1)*1)) return; ii=ss.lastIndexOf('.',ii-1); if(ii>0) document.domain =ss.substr(ii+1); } //document.domain == "126.com"; } ResetDomain();
JavaScript
function bbimg(o){ var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%'; return false; } function imgzoom(img,maxsize){ var a=new Image(); a.src=img.src if(a.width > maxsize * 4) { img.style.width=maxsize; } else if(a.width >= maxsize) { img.styl...
JavaScript
// JScript File /* 上方菜单 */ function switchTab(tabpage,tabid){ var oItem = document.getElementById(tabpage).getElementsByTagName("li"); for(var i=0; i<oItem.length; i++){ var x = oItem[i]; x.className = ""; } document.getElementById(tabid).className = "Selected"; var dvs=document.get...
JavaScript
function CheckAll(form) { for (var i=0;i<form.elements.length;i++) { var e = form.elements[i]; if (e.name != 'chkall') e.checked = true // form.chkall.checked; } } function ContraSel(form) { for (var i=0;i<form.elements.length;i++) { var e = form.elements[i]; if (e.name != 'chka...
JavaScript
var http_request = false; var callobj; function makeRequest(url, functionName, httpType, sendData) { http_request = false; if (!httpType) httpType = "GET"; if (window.XMLHttpRequest) { http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType('text/plain...
JavaScript
function checkForm(form) { var fname = form.fname.value; var lname = form.lname.value; var username = form.uname.value; var password = form.passwd.value; var email = form.email.value; var pattern = /^[A-z0-9]+@[A-z0-9]+\.[A-Za-z]+$/g; if (fname == "" || fname == null || lname == "" || lname == null...
JavaScript
function create_menu(basepath) { var base = (basepath == 'null') ? '' : basepath; document.write( '<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' + '<td class="td" valign="top">' + '<ul>' + '<li><a href="'+base+'index.html">User Guide Home</a></li>' + '<li><a href="'+base+'toc....
JavaScript
/* moo.fx, simple effects library built with prototype.js (http://prototype.conio.net). by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE. for more info (http://moofx.mad4milk.net). 10/24/2005 v(1.0.2) */ //base var fx = new Object(); fx.Base = function(){}; fx.Base.prototype = { setOptions: function(option...
JavaScript
window.onload = function() { myHeight = new fx.Height('nav', {duration: 400}); myHeight.hide(); }
JavaScript
$(function() { $("#left-buttons").tooltip({ position: { my: "center bottom-20", at: "center top", using: function( position, feedback ) { $( this ).css( position ); $( "<div>" ) .addClass( "arrow" ) .addClass( feedback.vertical ) .addClass( feedback.horizontal...
JavaScript
jQuery.extend(jQuery.easing, { easeInOutBack: function(e, f, a, i, h, g) { if (g == undefined) { g = 1.70158 } if ((f /= h / 2) < 1) { return i / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a } return i / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a } });~ (function...
JavaScript
BrowserHistoryUtils = { addEvent: function(elm, evType, fn, useCapture) { useCapture = useCapture || false; if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.attachEvent...
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
<!-- Ap=new Array(); Ap[1]="1~北京市"; B1=new Array(); B1[0]="102~西城区"; B1[1]="126~崇文区"; B1[2]="104~宣武区"; B1[3]="105~朝阳区"; B1[4]="106~海淀区"; B1[5]="107~丰台区"; B1[6]="108~石景山区"; B1[7]="109~门头沟区"; B1[8]="110~房山区"; B1[9]="111~通州区"; B1[10]="112~顺义区"; B1[11]="113~昌平区"; B1[12]="114~大兴区"...
JavaScript
<!-- em_nativeplaces=new Array(); em_nativeplaces[500]='北京市'; em_nativeplaces[501]='西城区'; em_nativeplaces[502]='宣武区'; em_nativeplaces[503]='朝阳区'; em_nativeplaces[504]='海淀区'; em_nativeplaces[505]='丰台区'; em_nativeplaces[506]='石景山区'; em_nativeplaces[507]='门头沟区'; em_nativeplaces[508]='房山区'; em_nativeplaces[509]=...
JavaScript
<!-- em_vocations=new Array(); em_vocations[500]='互联网'; em_vocations[501]='网站制作'; em_vocations[502]='虚心'; em_vocations[503]='cms制作'; em_vocations[1000]='机械'; em_vocations[1001]='农业机械'; em_vocations[1002]='机床'; em_vocations[1003]='纺织设备和器材'; em_vocations[1004]='风机/排风设备'; -->
JavaScript
<!-- em_infotypes=new Array(); em_infotypes[500]='商品'; em_infotypes[501]='出售'; em_infotypes[502]='求购'; em_infotypes[503]='交换'; em_infotypes[504]='合作'; em_infotypes[1000]='租房'; em_infotypes[1001]='出租'; em_infotypes[1002]='求租'; em_infotypes[1003]='合租'; em_infotypes[1500]='交友'; em_infotypes[1501]='找帅哥'; em_in...
JavaScript
<!-- document.write("<font color='red'>文件 member/js/area.js 已经过时,请注意最新版默认模板的方法!</font>"); -->
JavaScript
//初始化导航菜单状态 var m = new Array(); $.cookie("dede_member_menu")==null ? cookie = "0,1,0,1,0,0,0,0" : cookie = $.cookie("dede_member_menu"); m = cookie.split(","); $(document).ready(function(){ //导航菜单 $(".menu dl dt").each(function(i){ $(this).attr("_dedemenu",i.toString(10));//给每个菜单设置标记 mbox = $(this).n...
JavaScript
<!-- function DedeAjax(WiteOKFunc){ //WiteOKFunc 为异步状态处理函数 //xmlhttp和xmldom对象 this.xhttp = null; this.xdom = null; //post或get发送数据的键值对 this.keys = Array(); this.values = Array(); this.keyCount = -1; //http请求头 this.rkeys = Array(); this.rvalues = Array(); this.rkeyCount = -1; //初始化xmlhttp...
JavaScript
<!-- function $Nav(){ if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; else return "OT"; } function $Obj(objname){ return document.getElementById(objname); } function ShowColor(){ if(document.all){ var posL...
JavaScript
var MenuWidth = 120; var ItemHeight = 16; var ItemNumber = 0; //WebFX右键菜单程序被织梦修改的项为: //增加了默认宽度和菜单高度的定义 //这样可以修正原来第一次载入时显示不正确的情况 ContextMenu.intializeContextMenu=function() { document.body.insertAdjacentHTML("BeforeEnd", '<iframe src="#" scrolling="no" class="WebFX-ContextMenu" marginwidth="0" marginheight="0" ...
JavaScript
<!-- function checkSubmit() { if(document.form1.title.value=='') { alert("图集标题不能为空!"); document.form1.title.focus(); return false; } if(document.form1.typeid.value==0) { alert("隶属栏目必须选择!"); return false; } if(document.form1.typeid.options[document.form1.typeid.selectedIndex].className...
JavaScript
<!-- $(document).ready(function() { //用户类型 $('.usermtype').click(function() { if(this.value=='企业') $('#uwname').text('公司名称:'); else $('#uwname').text('用户笔名:'); }); //checkSubmit $('#regUser').submit(function () { if(!$('#agree').get(0).checked) { alert("你必须同意注册协议!"); return false; } ...
JavaScript
/* 织梦科技 “前台弹出窗口” 动作 2008.10.12 10:48 for Fangyu12@gmail.com Last modified 2008.10.13 17:30 Copyright (c) 2008, dedecms All rights reserved. */ var tb_pathToImage = "images/loading.gif"; /*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/ //on page load call tb...
JavaScript
<!-- function CheckSubmit() { return true; } -->
JavaScript
<!-- //WebCalendar寒羽枫修改版 var cal; var isFocus=false; //是否为焦点 function SelectDate(obj,strFormat,dmin,dmax) { var date = new Date(); var by = date.getFullYear()-dmin; //最小值 var ey = date.getFullYear()+dmax; //最大值 //cal = new Calendar(by, ey,1,strFormat); //初始化英文版,0 为中文版 cal = (cal==null) ? new Calenda...
JavaScript
var ie = document.all != null; var moz = !ie && document.getElementById != null && document.layers == null; /* * Extends the event object with srcElement, cancelBubble, returnValue, * fromElement and toElement */ function extendEventObject() { Event.prototype.__defineSetter__("returnValue", function (b) { ...
JavaScript
<!-- self.onError=null; currentX = currentY = 0; whichIt = null; lastScrollX = 0; lastScrollY = 0; NS = (document.layers) ? 1 : 0; IE = (document.all) ? 1: 0; function heartBeat() { if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; } if(NS) { diffY = self.pageYOffset; diffX = self....
JavaScript
/* 织梦科技 “会员中心表格相关” 动作 2008.10.14 10:48 for Fangyu12@gmail.com Last modified 2008.10.14 17:30 Copyright (c) 2008, dedecms All rights reserved. */ $(document).ready(function(){ //表格奇偶行不同样式 $(".list tbody tr:even").addClass("row0");//偶行 $(".list tbody tr:odd").addClass("row1");//奇行 $(".submit tb...
JavaScript
//---事件句并------------------------------ function fileQueueError(file, errorCode, message) { try { var imageName = "error.gif"; var errorName = ""; if (errorCode === SWFUpload.errorCode_QUEUE_LIMIT_EXCEEDED) { errorName = "你添加的文件超过了限制!"; } if (errorName !== "") { alert(errorName); return...
JavaScript
<!-- //xmlhttp和xmldom对象 DedeXHTTP = null; DedeXDOM = null; DedeContainer = null; //获取指定ID的元素 function $(eid){ return document.getElementById(eid); } function $DE(id) { return document.getElementById(id); } //参数 gcontainer 是保存下载完成的内容的容器 function DedeAjax(gcontainer){ DedeContainer = gcontainer;...
JavaScript
<!-- var fixupPos = false; var canMove = false; var leftLeaning = 0; //异步上传缩略图相关变量 var nForm = null; var nFrame = null; var picnameObj = null; var vImg = null; function $Nav() { if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; else if(window.navigator.userAgent.indexOf("Firefox")>=1) ret...
JavaScript
<!-- function Nav(){ if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; else return "OT"; } function MyObj(oid) { return document.getElementById(oid); } function ShowHide(objname) { var obj = MyObj(objname); ...
JavaScript
var MenuWidth = 120; var ItemHeight = 16; var ItemNumber = 0; function CurNav() { if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; else return 'OT'; } function InsertHtm(op,code,isStart) { if(CurNav()=='IE') { ...
JavaScript
// JavaScript Document function ShowHide2(objname){ var obj = $Obj(objname); if(obj.style.display != 'block'){ obj.style.display = 'block' } else{ obj.style.display = 'none'; } }
JavaScript
<!-- function checkSubmitAlb() { if(document.form1.title.value==''){ alert("档案标题不能为空!"); return false; } if(document.form1.typeid.value==0){ alert("请选择档案的主类别!"); return false; } document.form1.imagebody.value = $Obj('copyhtml').innerHTML; return true; } function TestGet() { LoadTestDi...
JavaScript
<!-- function AddNew() { $DE('addTab').style.display = 'block'; } function CloseTab(tb) { $DE(tb).style.display = 'none'; } function ListAll() { $DE('editTab').style.display = 'block'; var myajax = new DedeAjax($DE('editTabBody')); myajax.SendGet('index_body.php?dopost=editshow'); } function...
JavaScript
document.write("<style type=\"text/css\">.close{float:right;cursor:default}</style>") function editTitle(aid) { var show = document.getElementById("show_news"); var myajax = new DedeAjax(show,false,false,"","",""); myajax.SendGet2("catalog_edit.php?dopost=time&id="+aid); DedeXHTTP = null; } func...
JavaScript
<!-- function CheckSubmit() { return true; } -->
JavaScript
<!-- function showHide(objname) { //只对主菜单设置cookie var obj = document.getElementById(objname); if(objname.indexOf('_1')<0 || objname.indexOf('_10')>0) { if(obj.style.display == 'block' || obj.style.display =='') obj.style.display = 'none'; else obj.style.display = 'block'; return true; } ...
JavaScript
<!-- //WebCalendar寒羽枫修改版 var cal; var isFocus=false; //是否为焦点 function SelectDate(obj,strFormat,dmin,dmax) { var date = new Date(); var by = date.getFullYear()-dmin; //最小值 var ey = date.getFullYear()+dmax; //最大值 //cal = new Calendar(by, ey,1,strFormat); //初始化英文版,0 为中文版 cal = (cal==null) ? new Calenda...
JavaScript
var ie = document.all != null; var moz = !ie && document.getElementById != null && document.layers == null; /* * Extends the event object with srcElement, cancelBubble, returnValue, * fromElement and toElement */ function extendEventObject() { Event.prototype.__defineSetter__("returnValue", function (b) { ...
JavaScript
<!-- self.onError=null; currentX = currentY = 0; whichIt = null; lastScrollX = 0; lastScrollY = 0; NS = (document.layers) ? 1 : 0; IE = (document.all) ? 1: 0; function heartBeat() { if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; } if(NS) { diffY = self.pageYOffset; diffX...
JavaScript
<!-- if(moz) { extendEventObject(); extendElementModel(); emulateAttachEvent(); } function viewArc(aid){ if(aid==0) aid = getOneItem(); window.open("archives_do.php?aid="+aid+"&dopost=viewArchives"); } function kwArc(aid){ var qstr=getCheckboxItem(); if(aid==0) aid = getOneItem(); if(qstr=='') { ...
JavaScript
$(function(){ //文本框Style $(".txt").mouseover(function(){ $(this).addClass("txt_o"); }).mouseout(function(){ $(this).removeClass("txt_o"); }).focus(function(){ $(this).addClass("txt_s"); }).blur(function(){ $(this).removeClass("txt_s"); }); //表格折叠 $(".tform").find("tbody tr t...
JavaScript
<!-- var thespeed = 5; var navIE = document.all && navigator.userAgent.indexOf("Firefox")==-1; var myspeed=0; $(function(){ //快捷菜单 bindQuickMenu(); //左侧菜单开关 LeftMenuToggle(); //全部功能开关 AllMenuToggle(); //取消菜单链接虚线 $(".head").find("a").click(function(){$(this).blur()}); $("...
JavaScript
<!-- //xmlhttp和xmldom对象 var DedeXHTTP = null; var DedeXDOM = null; var DedeContainer = null; var DedeShowError = false; var DedeShowWait = false; var DedeErrCon = ""; var DedeErrDisplay = "下载数据失败"; var DedeWaitDisplay = "正在下载数据..."; //获取指定ID的元素 function $DE(id) { return document.getElementById(id); } ...
JavaScript
var tt; var curMenu; function getOffsetTop (el, p) { var _t = el.offsetTop; while (el = el.offsetParent) { if (el == p) break; _t += el.offsetTop; } return _t; }; function getOffsetLeft (el, p) { var _l = el.offsetLeft; while (el = el.offsetParent) { if ...
JavaScript
/* * Url preview script * powered by jQuery (http://www.jquery.com) * * written by Alen Grakalic (http://cssglobe.com) * * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery * */ this.screenshotPreview = function(){ /* CONFIG */ xOffset = 10...
JavaScript
// JavaScript Document var isIe=(document.all)?true:false; //判断浏览器是否为IE //设置select的可见状态 function setSelectState(state) { var objl=document.getElementsByTagName('select'); //防止弹出窗口被select下拉菜单屏蔽 for(var i=0;i<objl.length;i++) { objl[i].style.visibility=state; } } function...
JavaScript
// JavaScript Document function M_L_Move(id,pn,m){ //显示列表左右滚动 var obj = $('#'+id); var p = parseInt(obj.attr('pn')|0); if(typeof(m)=='number'){ pn = p + m; } if( pn == p || pn < 0 || pn > 1 )return; var px = parseInt(obj.attr('px')) * pn * -1; if(id=='M_L_0_UL'){ ...
JavaScript
// JavaScript Document function M_L_Move(id,pn,m){ //显示列表左右滚动 var obj = $('#'+id); var p = parseInt(obj.attr('pn')|0); if(typeof(m)=='number'){ pn = p + m; } if( pn == p || pn < 0 || pn > 1 )return; var px = parseInt(obj.attr('px')) * pn * -1; if(id=='M_L_0_UL'){ ...
JavaScript
/* * Url preview script * powered by jQuery (http://www.jquery.com) * * written by Alen Grakalic (http://cssglobe.com) * * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery * */ this.screenshotPreview = function(){ /* CONFIG */ xOffset = 10...
JavaScript
// JavaScript Document function M_L_Move(id,pn,m){ //显示列表左右滚动 var obj = $('#'+id); var p = parseInt(obj.attr('pn')|0); if(typeof(m)=='number'){ pn = p + m; } if( pn == p || pn < 0 || pn > 1 )return; var px = parseInt(obj.attr('px')) * pn * -1; if(id=='M_L_0_UL'){ ...
JavaScript
<!-- //xmlhttp和xmldom对象 var DedeXHTTP = null; var DedeXDOM = null; var DedeContainer = null; var DedeShowError = false; var DedeShowWait = false; var DedeErrCon = ""; var DedeErrDisplay = "下载数据失败"; var DedeWaitDisplay = "正在下载数据..."; //获取指定ID的元素 function $DE(id) { return document.getElementById(id); } ...
JavaScript
/*Copyright Mihai Bazon, 2002, 2003|http://dynarch.com/mishoo/ */ Calendar = function (mondayFirst, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = on...
JavaScript
// ** I18N // Calendar EN language // Author: Mihai Bazon, <mishoo@infoiasi.ro> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please // ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
var oEditor = window.parent.InnerDialogLoaded() ; var FCK = oEditor.FCK ; window.onload = function() { oEditor.FCKLanguageManager.TranslatePage(document) ; window.parent.SetOkButton( true ) ; } function Ok() { var sLan = GetE('codeLan').value; var sTxt = GetE('codeTxt').value; if( sTxt.length> 0...
JavaScript
var dialog = window.parent ; var oEditor = dialog.InnerDialogLoaded() ; var FCK = oEditor.FCK ; var FCKLang = oEditor.FCKLang ; var FCKConfig = oEditor.FCKConfig ; var FCKTools = oEditor.FCKTools ; // Function called when a dialog tag is selected. function OnDialogTabChange( tabCode ) { //ShowE('divIn...
JavaScript
var dialog = window.parent ; var oEditor = dialog.InnerDialogLoaded() ; var FCK = oEditor.FCK ; var FCKLang = oEditor.FCKLang ; var FCKConfig = oEditor.FCKConfig ; var FCKTools = oEditor.FCKTools ; // Function called when a dialog tag is selected. function OnDialogTabChange( tabCode ) { //ShowE('divIn...
JavaScript
var dialog = window.parent ; var oEditor = dialog.InnerDialogLoaded() ; var FCK = oEditor.FCK ; var FCKLang = oEditor.FCKLang ; var FCKConfig = oEditor.FCKConfig ; var FCKRegexLib = oEditor.FCKRegexLib ; var FCKTools = oEditor.FCKTools ; // Function called when a dialog tag is selected. function OnDialo...
JavaScript
// Automatically detect the correct document.domain (#123). (function() { var d = document.domain ; while ( true ) { // Test if we can access a parent property. try { var test = window.parent.document.domain ; break ; } catch( e ) {} // Remove a domain part: www.mytest.example.com...
JavaScript
FCKConfig.CustomConfigurationsPath = '' ; FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; FCKConfig.EditorAreaStyles = '' ; FCKConfig.ToolbarComboPreviewCSS = '' ; FCKConfig.DocType = '' ; FCKConfig.BaseHref = '' ; FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/' ; FCKConfig....
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
<!-- var curtable = 'diggarea'; var lasttable = 'diggarea'; function resetTabs(t) { var alltable = 'diggarea,memberarea,feedbackarea'; var tbs = alltable.split(','); for(var i=0;i<tbs.length;i++) { if(tbs[i]==curtable) continue; $DE(tbs[i]).style.display = 'none'; $DE(tbs[i]+'_t').cla...
JavaScript
<!-- //选择地区的二级分类(非通用调用) function selNext(oj, v) { var newobj = oj.options; var selv = parseInt(v); var maxv = parseInt(v) + 500; while(newobj.length > 0) { oj.remove(0); } clear(oj); if(selv==0) { aOption = document.createElement('OPTION'); aOption.text = '具体地区'; aOption.value = '0'; ...
JavaScript
/* Cookie Plug-in This plug in automatically gets all the cookies for this site and adds them to the post_params. Cookies are loaded only on initialization. The refreshCookies function can be called to update the post_params. The cookies will override any other post params with the same name. */ var SWF...
JavaScript
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is cont...
JavaScript
/* Speed Plug-in Features: *Adds several properties to the 'file' object indicated upload speed, time left, upload time, etc. - currentSpeed -- String indicating the upload speed, bytes per second - averageSpeed -- Overall average upload speed, bytes per second - movingAverageSpeed -- Speed over a...
JavaScript
/** * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com * * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ * * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilz閚 and Mammon Media and is released under the MIT License: * http://www.open...
JavaScript
var cssdropdown={ disappeardelay: 250, disablemenuclick: false, enableswipe: 1, enableiframeshim: 1, dropmenuobj: null, ie: document.all, firefox: document.getElementById&&!document.all, swipetimer: undefined, bottomclip:0, getposOffset:function(what, offsettype){ var totaloffset=(offsettype=="left")? what...
JavaScript
/* * jQuery UI @VERSION * * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;(function($) { $.ui = { plugin: { add: function(module, option, set) { var proto = $.ui[module]....
JavaScript
/* * jQuery UI Draggable * * Copyright (c) 2008 Paul Bakaus * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Draggables * * Depends: * ui.core.js */ (function($) { $.widget("ui.draggable", $.extend({}, $.ui.mouse, { init: fu...
JavaScript
/* * jQuery UI Resizable * * Copyright (c) 2008 Paul Bakaus * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Resizables * * Depends: * ui.core.js */ (function($) { $.widget("ui.resizable", $.extend({}, $.ui.mouse, { init: fu...
JavaScript
<!-- -->
JavaScript