code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
$(document).ready(function(){
$('input#payment_input').focus(function(){
var amount = $(this).attr('original_fee_value');
var number = $(this).attr('fee_number');
$(this).keyup(function(){
var value = $(this).val();
$('input#amount_balance_'+number).val(numberWithCommas((+amount - +value).toFixed(2))... | JavaScript |
$(document).ready(function(){
$('.redirect-auto-calendar-month').on('change',function(){
var url = $(this).attr('data-url');
var val = $(this).val();
var add = $(this).attr('data-add');
var sec = $(this).attr('data-section');
console.log(url);
console.log(val);
console.log(add);
console.lo... | JavaScript |
$(document).ready(function(){
$('#level-section').change(function(){
var url = $(this).attr('url');
var opt = $(this).val();
$.get( url, { id: opt } ).done(function( data ){
$('.dynamictable').html(data);
});
});
});
| 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 () {
var $container = $('#container');
$container.imagesLoaded(function () {
$container.masonry({
itemSelector: '.box',
columnWidth: 5 //每两列之间的间隙为5像素
});
});
$container.infinitescroll({
navSelector: '#page-nav', // 选择的分页导航
... | JavaScript |
$(function () {
var $container = $('#container');
$container.imagesLoaded(function () {
$container.masonry({
itemSelector: '.box',
columnWidth: 5 //每两列之间的间隙为5像素
});
});
$container.infinitescroll({
navSelector: '#page-nav', // 选择的分页导航
... | 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 |
$(document).ready(function(){
//表格奇偶行不同样式
$(".list tbody tr:even").addClass("row0");//偶行
$(".list tbody tr:odd").addClass("row1");//奇行
$(".submit tbody tr:even").addClass("row0");//偶行
$(".submit tbody tr:odd").addClass("row1");//奇行
//修正IE6下hover Bug
if ( $.browser.msie ){
if(... | JavaScript |
<!--
var cal;
var isFocus=false; //是否为焦点
//以上为 寒羽枫 2006-06-25 添加的变量
//Download:http://www.codefans.net
//选择日期 → 由 寒羽枫 2006-06-25 添加
function SelectDate(obj,strFormat)
{
var date = new Date();
var by = date.getFullYear()-50; //最小值 → 50 年前
var ey = date.getFullYear()+50; //最大值 → 50 年后
//cal ... | JavaScript |
<!--
$(document).ready(function()
{
//用户类型
if($('.usermtype2').attr("checked")==true) $('#uwname').text('公司名称:');
$('.usermtype').click(function()
{
$('#uwname').text('用户笔名:');
});
$('.usermtype2').click(function()
{
$('#uwname').text('公司名称:');
});
//checkSubmit
$('#regUser').submit(functio... | 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 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 |
function checkSubmit()
{
if(document.addcontent.title.value==""){
alert("名称不能为空!");
document.addcontent.title.focus();
return false;
}
if(document.addcontent.typeid.value==0){
alert("隶属栏目必须选择!");
return false;
}
if(document.addcontent.typeid.options && document.addcontent.typeid.options[... | JavaScript |
$(document).ready(function(){
//表格奇偶行不同样式
$(".list tbody tr:even").addClass("row0");//偶行
$(".list tbody tr:odd").addClass("row1");//奇行
$(".submit tbody tr:even").addClass("row0");//偶行
$(".submit tbody tr:odd").addClass("row1");//奇行
//修正IE6下hover Bug
if ( $.browser.msie ){
... | JavaScript |
$(function(){
//文本框Style
$(".text").mouseover(function(){
$(this).addClass("text_o");
}).mouseout(function(){
$(this).removeClass("text_o");
}).focus(function(){
$(this).addClass("text_s");
}).blur(function(){
$(this).removeClass("text_s");
});
$(".intxt").mouseover(function(){
... | JavaScript |
//显示表情
function showFace() {
if($('#share_textarea').val() == '来,说点啥吧...'){
$('#share_textarea').val('');
}
//采用普通样式
//$('#mood_msg_menu').css('display', 'block');
var leftpos = $(".share02").position().left;
//获取位置并且决定表情框弹出位置
$('#mood_msg_menu').css('left', leftpos+'px');
$('#... | 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 |
<!--
function inputAutoClear(ipt)
{
ipt.onfocus=function()
{if(this.value==this.defaultValue){this.value='';}};
ipt.onblur=function()
{if(this.value==''){this.value=this.defaultValue;}};
ipt.onfocus();
}
//--> | JavaScript |
function FeedDel()
{
if(confirm("你确定删除该动态信息?"))
return true;
else
return false;
}
$(function(){
$('#arcticle').click(function() {
$.ajax({
type: "GET",
url: "feed.php",
dataType: "json",
success : function(data){
$('#FeedText').empty();
... | JavaScript |
//左侧菜单效果
function menuShow(mid)
{
if($("#"+mid).css("display") == 'block') {
$("#"+mid).hide(200);
$("#"+mid+"_t b").removeClass();
$("#"+mid+"_t b").addClass("showMenu");
}
else {
$("#"+mid).show(200);
$("#"+mid+"_t b").removeClass();
$("#"+mid+"_t b").addClass("hideMenu... | 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 |
//创建多组对话框
function createDialog(options) {
options = $.extend({title: "对话框"}, options || {});
var dialog = new Boxy("<div><p>这是一个对话框 <a href='#nogo' onclick='Boxy.get(this).hide(); return false'>单击我!</a></p></div>", options);
return false;
} | JavaScript |
/******************************************************************************************
* 检查密码强度
******************************************************************************************/
checkPasswordLevel = function(strPassword)
{
var result = 0;
if ( strPassword.length == 0)
result += 0;
else if ... | JavaScript |
/**
* Boxy 0.1.4 - Facebook-style dialog, with frills
*
* (c) 2008 Jason Frame
* Licensed under the MIT License (LICENSE)
*/
/*
* jQuery plugin
*
* Options:
* message: confirmation message for form submit hook (default: "Please confirm:")
*
* Any other options - e.g. 'clone' - will be passe... | JavaScript |
<!--
function changeAuthCode() {
var num = new Date().getTime();
var rand = Math.round(Math.random() * 10000);
num = num + rand;
var leftpos = $("#vdcode").position().left;
var toppos = $("#vdcode").position().top - 42;
$('#ver_code').css('left', leftpos+'px');
$('#ver_code').css('top', toppos+'px');
... | 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 |
<!--
em_nativeplaces=new Array();
em_nativeplaces[1000]='北京市';
em_nativeplaces[1001]='东城区';
em_nativeplaces[1002]='西城区';
em_nativeplaces[1003]='崇文区';
em_nativeplaces[1004]='宣武区';
em_nativeplaces[1005]='朝阳区';
em_nativeplaces[1006]='丰台区';
em_nativeplaces[1007]='石景山区';
em_nativeplaces[1008]='海淀区';
em_nativeplac... | JavaScript |
<!--
em_vocations=new Array();
em_vocations[500]='互联网';
em_vocations[501]='网站制作';
em_vocations[501.001]='企业网站';
em_vocations[501.002]='门户开发';
em_vocations[501.003]='商业网站';
em_vocations[501.004]='个人博客';
em_vocations[502]='虚心';
em_vocations[502.001]='松松散散';
em_vocations[502.002]='测试分类';
em_vocations[502.003]='... | JavaScript |
//this is index bottom left advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/indexBottomLeftAdvert/pic1.jpg" border="0" width="260px" height="60px"/></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/indexBottomLeftAdvert/pic2.jpg" bo... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/conntentRightDownAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/conntentRightDownAd/pic2.jpg" border="0" /></a>';
index = Math.flo... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/listLeftBigAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvert... | JavaScript |
//this is index middle part advert,it's next to navigator
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/indexMiddleAdvert/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://... | JavaScript |
//this is index bottom left advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/indexBottomRightDownAdvert/pic1.jpg" border="0" width="260px" height="100px"/></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/indexBottomRightDownAdvert/p... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/contentHeadTopAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadv... | JavaScript |
//this is top advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/indexTopAdvert/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/in... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/searchResultRightAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/self... | JavaScript |
//this is list right up advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/listRightUpAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvert... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/listHeadTopAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvert... | JavaScript |
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/contentRightUpAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/contentRightUpAd/pic2.jpg" border="0" /></a>';
index = Math.floor(Math.random() * tips.length);
do... | JavaScript |
//this is list right down advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/listRightDownAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfad... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/searchResulTopAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadv... | JavaScript |
//this is index bottom left advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/footBottomAd/pic1.jpg" border="0" width="960px" height="100px"/></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/footBottomAd/pic2.jpg" border="0" width="9... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/selfadvertimages/memberCenterHeadTopAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="http://192.168.1.212/80nest/se... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="http://www.52eso.com/" target="_blank"><img src="/80nest/selfadvertimages/memberLoginTopAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="http://www.52eso.com/" target="_blank"><img src="/80nest/selfadvertimages/memberLoginTopAd/pic2.jpg" bor... | JavaScript |
//this is index bottom left advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/indexBottomRightUpAdvert/pic1.jpg" border="0" width="260px" height="100px"/></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/indexBottomRightUpAdvert/pic2.... | JavaScript |
//this is list left big advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/contentInnerAd/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/contentInnerAd/pic2.jpg" border="0" /></a>';
index = Math.floor(Math.ra... | JavaScript |
//this is list right up advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/listRtPicAD/pic1.jpg" border="0" /></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/listRtPicAD/pic2.jpg" border="0" /></a>';
index = Math.floor(Math.random()... | JavaScript |
//this is index bottom left advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/indexBottomAdvert/pic1.jpg" border="0" width="960px" height="100px"/></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/indexBottomAdvert/pic2.jpg" border="0... | JavaScript |
//this is list right up advert
tips = new Array(2);
tips[0] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/listbottom/pic1.jpg" border="0" width="960px" height="60px"/></a>';
tips[1] = '<a href="#" target="_blank"><img src="/80nest/selfadvertimages/listbottom/pic2.jpg" border="0" width="960px" hei... | JavaScript |
// JavaScript Document IT.com.cn 文章页 WEB2.0分享模块 GAN.
document.writeln(" <!--web2.0分享模块 开始-->");
document.writeln(" <div class=\"px10\"></div>");
document.writeln(" <div class=\"web2\">");
document.writeln(" <div class=\"web_zi\">快速分享到</div>");
document.writeln(" <div class=\"web_defo\"... | JavaScript |
//topnav list_top
startList = function() {
navRoot = document.getElementById("g_nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.classNam... | JavaScript |
(function () {
$.fn.infiniteCarousel = function () {
function repeat(str, n) {
return new Array( n + 1 ).join(str);
}
return this.each(function () {
// magic!
var $wrapper = $('> div', this).css('overflow', 'hidden'),
$s... | JavaScript |
/**
* jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
* @requires jQuery v1.2 or above
*
* http://gmarwaha.com/jquery/jcarousellite/
*
* Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org... | JavaScript |
//高清图集
//UI&UE Dept. mengjia
//090708
var sina = {
$ : function(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}},
isIE : navigator.appVersion.indexOf("MSIE")!=-1?true:false,
//Event
addEvent : function(obj,eventType,fun... | 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 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 |
/*
* 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 |
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 |
/**
* 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 |
/*
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 |
<!--
//选择地区的二级分类(非通用调用)
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... | JavaScript |
<!--
var cal;
var isFocus=false; //是否为焦点
//以上为 寒羽枫 2006-06-25 添加的变量
//Download:http://www.codefans.net
//选择日期 → 由 寒羽枫 2006-06-25 添加
function SelectDate(obj,strFormat)
{
var date = new Date();
var by = date.getFullYear()-50; //最小值 → 50 年前
var ey = date.getFullYear()+50; //最大值 → 50 年后
//cal ... | JavaScript |
/*
http://www.JSON.org/json2.js
2009-08-17
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This file creates a global JSON object containing two methods: stringify
and parse.
JSON.stringify(value, replacer, space)
... | JavaScript |
/*
* jQuery Form Plugin
* version: 2.02 (12/16/2007)
* @requires jQuery v1.1 or later
*
* Examples 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
*
* Revision: $Id$
*/
(functio... | JavaScript |
(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+"... | JavaScript |
(function($){
$.fn.filter_visible = function(depth) {
depth = depth || 3;
var is_visible = function() {
var p = $(this), i;
for(i=0; i<depth-1; ++i) {
if (!p.is(':visible')) return false;
p = p.parent();
}
return true;
}
return this.filter(is_visible);
};
$.table_hotkeys = function(table,... | JavaScript |
/******************************************************************************************************************************
* @ Original idea by by Binny V A, Original version: 2.00.A
* @ http://www.openjs.com/scripts/events/keyboard_shortcuts/
* @ Original License : BSD
* @ jQuery Plugin by Tzury Bar Yocha... | JavaScript |
/*
* jQuery Autocomplete plugin 1.1
*
* Copyright (c) 2009 J枚rn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
*/
;(... | JavaScript |
/*
* jQuery Color Animations
* Copyright 2007 John Resig
* Released under the MIT and GPL licenses.
*/
(function(jQuery){
// We override the animation for all of these color styles
jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outli... | JavaScript |
/*
* jquery.suggest 1.1b - 2007-08-06
* Patched by Mark Jaquith with Alexander Dick's "multiple items" patch to allow for auto-suggesting of more than one tag before submitting
* See: http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-7228
*
* Uses code an... | 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 |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','en',{placeholder:{title:'Placeholder Properties',toolbar:'Create Placeholder',text:'Placeholder Text',edit:'Edit Placeholder',te... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','he',{placeholder:{title:'מאפייני שומר מקום',toolbar:'צור שומר מקום',text:'תוכן שומר המקום',edit:'ערוך שומר מקום',textMissing:'שו... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'smiley', function( editor )
{
var config = editor.config,
lang = editor.lang.smiley,
images = config.smiley_images,
columns = config.s... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Image plugin
*/
CKEDITOR.plugins.add( 'addon',
{
init : function( editor )
{
var pluginName = 'addon';
// Register the dialog.
CKEDIT... | JavaScript |
/**
* @file 附件发布插件
*/
(function()
{
var addonDialog = function( editor, dialogType )
{
return {
title : '附件发布',
minWidth : 420,
minHeight : 160,
onOk : function()
{
var addonUrl = this.getValueOf( 'Link', 'txtUrl' );
var addonTitle = this.getValueOf( 'Link', 'txtTitle');
... | JavaScript |
/*
Copyright (c) 2003-2011, 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-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','he',{uicolor:{title:'בחירת צבע ממשק משתמש',preview:'תצוגה מקדימה',config:'הדבק את הטקסט הבא לתוך הקובץ config.js',predefined:'קבוצות... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.on( 'dialogDefinition', function( ev )
{
var tab, name = ev.data.name,
definition = ev.data.definition;
if ( name == 'link' )
{... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('devtools','en',{devTools:{title:'Element Information',dialogName:'Dialog window name',tabName:'Tab name',elementId:'Element ID',elementType:'E... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var htmlFilterRules =
{
elements :
{
$ : function( element )
{
var attributes = element.attributes,
realHtml = attributes &&... | JavaScript |
// Register a plugin named "dedepage".
(function()
{
CKEDITOR.plugins.add( 'dedepage',
{
init : function( editor )
{
// Register the command.
editor.addCommand( 'dedepage',{
exec : function( editor )
{
// Crea... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add('docprops',{init:function(a){var b=new CKEDITOR.dialogCommand('docProps');b.modes={wysiwyg:a.config.fullPage};a.addCommand('docProps',b);CKEDITOR.d... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Compressed version of core/ckeditor_base.js. See original for instructions.
/*jsl:ignore*/
if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',versi... | 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 |
<!--
function ShowAddCatalog(){
$Obj('addCatalog').style.display='block';
}
function CloseAddCatalog(){
$Obj('addCatalog').style.display='none';
}
function CloseEditCatalog(){
$Obj('editCatalog').style.display='none';
}
function DelCatalog(cid){
if(window.confirm("你确实要删除这个分类么?"))
{
location.... | 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 |
/**
*
* @version $Id: handlers.js 1 22:28 2010年7月20日Z tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
//---事件句并---------------... | JavaScript |
/**
*
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
function nav(){
if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE';
... | JavaScript |
/**
*
* @version $Id: diy.js 1 22:28 2010年7月20日Z tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
function showHide2(objnam... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.