code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
var autoDelete = function(){};
autoDelete.url = W_AJAX + 'common/delete/'; // URL для удаления поля
autoDelete.manyUrl = W_AJAX + 'common/delete_by_ids/'; // URL для удаления поля
// Иньциализация удаления
autoDelete.init = function() {
$('.autoDelete').live('click', function() {
if (confirm("Уверены, что хо... | JavaScript |
/* Copyright (c) 2009 Kelvin Luck (kelvin AT kelvinluck DOT com || 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.
*
* See http://kelvinluck.com/assets/jquery/jScrollPane/
*... | JavaScript |
/*
* jQuery UI Datepicker @VERSION
*
* 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/Datepicker
*
* Depends:
* ui.core.js
*/
(function($) { // hide the namespace
$... | JavaScript |
/*
* jQuery UI Datepicker @VERSION
*
* 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/Datepicker
*
* Depends:
* ui.core.js
*/
(function($) { // hide the namespace
... | JavaScript |
/**
* Ajax Autocomplete for jQuery, version 1.1.3
* (c) 2010 Tomas Kirda
*
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
* For details, see the web site: http://www.devbridge.com/projects/autocomplete/jquery/
*
* Last Review: 04/19/2010
*/
/*jslint oneva... | JavaScript |
/*!
* jQuery Templates Plugin 1.0.0pre
* http://github.com/jquery/jquery-tmpl
* Requires jQuery 1.4.2
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function( jQuery, undefined ){
var oldManip = jQuery.fn.domManip, tmplI... | JavaScript |
jQuery.fn.daterange = function(input, startDateInput, endDateInput) {
var $datepicker = $(this);
var $input = $('#' + input);
$input.focus(function() {
calendar.showCalendar($input, $datepicker, 0);
});
$(document).click(function(e){
var $parents = $(e.target).parents().add(e.target);
if (!$p... | JavaScript |
/*
* One Click Upload - jQuery Plugin
* Copyright (c) 2008 Michael Mitchell - http://www.michaelmitchell.co.nz
*/
(function($){
$.fn.upload = function(options) {
/** Merge the users options with our defaults */
options = $.extend({
name: 'file',
enctype: 'multipart/form-data',
action: '',
autoSubmit... | JavaScript |
jQuery.fn.toggleText = function(a,b) {
return this.html(this.html().replace(new RegExp("("+a+"|"+b+")", "m"),
function(x){return(x==a)?b:a;}));
}
$.fn.documentSelection = function() {
var element = this[0];
if ( element.contentWindow.document.selection )
return element.contentWindow.document.selection.crea... | 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 |
$(document).ready(function() {
if ($.browser.msie) {
$(window).scroll(function () {
$('#modalPopup').css({'top': $(window).scrollTop(), 'left' : 0});
$('.popUpBox').css({'top': $(window).scrollTop() + $(window).height()/2});
});
$(window).resize(function () {
$('#modalPopup').css({'width': $(window).... | 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 pasteEventNa... | JavaScript |
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
* The da... | JavaScript |
/**
*
*/
validate = {
showErrors: function(errors) { // Отобржает набор ошибок из ассоциативного массива
var errText = '';
for(var name in errors) {
var $input = $('#Booking_' + name);
if ($input.length) this.showError($input, errors[name]);
else errText += errors[name] + "\n";
}
if (errT... | JavaScript |
var debug = new Array();
$().ready(function() {
$('body')
.ajaxComplete(function(event, XMLHttpRequest, ajaxOptions){
var expr = new RegExp('tmpl', 'i');
var textFind = ajaxOptions.url.search(expr) != -1;
if (!textFind) {
try {
var jsonText = $.parseJSON(XMLHttpRequest.responseText);
... | JavaScript |
/// jquery.dataset v0.1.0 -- HTML5 dataset jQuery plugin
/// http://orangesoda.net/jquery.dataset.html
/// Copyright (c) 2009, Ben Weaver. All rights reserved.
/// This software is issued "as is" under a BSD license
/// <http://orangesoda.net/license.html>. All warrenties disclaimed.
/// The HTML5 specification al... | JavaScript |
var calendar = {};
var today = new Date;
var startArr = today.getDate() + "/" + (today.getMonth() + 1) + "/" + today.getFullYear();
var margin = 0;
var actualArr;
var actualDep;
var actDateArr;
var actualDateArr;
var arrActualArr;
var dateActualArr;
var actDateDep;
var actualDateDep;
var startDep;
va... | JavaScript |
/**
* jQuery Cookie plugin
*
* Copyright (c) 2010 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
*
*/
jQuery.cookie = function (key, value, options) {
// key and at least value given, set... | JavaScript |
/**
* jQuery-Plugin "preloadCssImages"
* by Scott Jehl, [email protected]
* http://www.filamentgroup.com
* reference article: http://www.filamentgroup.com/lab/update_automatically_preload_images_from_css_with_jquery/
* demo page: http://www.filamentgroup.com/examples/preloadImages/index_v2.php
*
* ... | JavaScript |
/**
* jQuery.timers - Timer abstractions for jQuery
* Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
* Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
* Date: 2009/02/08
*
* @author Blair Mitchelmore
* @version 1.1.2
*
**/
jQuery.fn.extend({
everyTime: function(interval, label, ... | JavaScript |
(function ($) {
$.fn.keyboard = function () {
$k.bind(this, arguments);
return this;
};
$.keyboard = function () {
$k.bind($(document), arguments);
return this;
};
var $k = {
setup : {
'strict' : true,
'event' : 'keydown',
'preventDefault' : false
},
keys : {
cont : [],
getCodes :... | JavaScript |
/**
* @class eli18n
* Javascript applications localization
*
* @param Object o - class options. Object. {textdomain : 'имя_группы_сообщений', messages : {textdomain1 : {}[, textdomain2 : {}]...}}
*
* Usage:
*
* var msgs = { Hello : 'Превэд', 'Hello %user' : 'Превед %user' };
* //load messages and set default... | JavaScript |
(function($) {
/**
* @class File manager (main controller)
* @author dio [email protected]
**/
elFinder = function(el, o) {
var self = this, id;
this.log = function(m) {
window.console && window.console.log && window.console.log(m);
}
/**
* Object. File manager configuration
**/
this.options ... | JavaScript |
$().ready(function() {
elRTE.prototype.options.pasteOnlyText = false;
//elRTE.prototype.options.pasteOnlyText = true;
elRTE.prototype.options.panels.myCopyPaste = [
//'copy',
//'cut',
//'paste',
'pastetext',
//'pasteformattext',
'removeformat',
//'docstructure'
];
elR... | JavaScript |
// IE5.5+ PNG Alpha Fix v2.0 Alpha: Background Tiling Support
// (c) 2008-2009 Angus Turnbull http://www.twinhelix.com
// This is licensed under the GNU LGPL, version 2.1 or later.
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
var IEPNGFix = window.IEPNGFix || {};
IEPNGFix.tileBG = funct... | JavaScript |
W_ABSPATH = '/wp/';
W_FULLPATH = 'http://localhost/wp/';
//W_ABSPATH = '/';
W_ADMIN = W_ABSPATH + 'cms/';
CUR_ABS_PATH = W_ABSPATH;
W_AJAX = W_ABSPATH + 'ajax/';
W_IMAGES = W_ABSPATH + 'content/images/';
W_BLOCKS = W_ABSPATH + 'content/blocks/';
W_CSS = W_ABSPATH + 'content/css/';
W_JS = W_ABSPATH + 'content/j... | JavaScript |
/*
织梦科技 “会员中心表格相关” 动作
2008.10.14 10:48 for [email protected]
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 |
function checkSubmit()
{
if(document.addcontent.title.value==""){
alert("名称不能为空!");
document.addcontent.title.focus();
return false;
}
if(document.addcontent.tags.value==0){
alert("Tag标签不能为空!");
return false;
}
if(document.addcontent.description.value==0){
alert("文章摘要不能为空!");
return ... | 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 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[500]='广州市';
em_nativeplaces[501]='天河区';
em_nativeplaces[502]='越秀区';
em_nativeplaces[503]='海珠区';
em_nativeplaces[1000]='中山市';
em_nativeplaces[1001]='石岐区';
em_nativeplaces[1002]='西区';
em_nativeplaces[1003]='东区';
em_nativeplaces[1004]='小榄镇';
--> | 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 |
//网站换肤
$(function(){
var cookie_skin = $.cookie("MyCssSkin");
switchSkin(cookie_skin);
addEvent();
});
function switchSkin(skinName){
$("#"+skinName).addClass("selected") //当前<li>元素选中
.siblings().removeClass("selected"); //去掉其他同辈<li>元素的选中
$("#cssfile").attr("href","/templets/default/style/"... | 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 |
/**
* 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 |
/**
* 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 |
function myGod(id,w,n){
var box=document.getElementById(id),can=true,w=w||3500,fq=fq||10,n=n==-1?-1:1;
box.innerHTML+=box.innerHTML;
box.onmouseover=function(){can=false};
box.onmouseout=function(){can=true};
var max=parseInt(box.scrollHeight/2);
new function (){
var stop=box.scrollTop%34==0&&!can;
if... | JavaScript |
//网站换肤
$(function(){
var cookie_skin = $.cookie("MyCssSkin");
switchSkin(cookie_skin);
addEvent();
});
function switchSkin(skinName){
$("#"+skinName).addClass("selected") //当前<li>元素选中
.siblings().removeClass("selected"); //去掉其他同辈<li>元素的选中
$("#cssfile").attr("href","/templets/default/style/"... | JavaScript |
function CheckLogin(){
var taget_obj = document.getElementById('_ajax_feedback');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/member/ajax_feedback.php");
DedeXHTTP = null;
}
| 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 |
/**
* 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 |
/**
* 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 |
/*
* 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.text = '具体地区';
aOption.value = '0';
... | 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, <[email protected]>
// 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 |
<!--
//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 |
/*
* 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 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 OnDialog... | 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 |
// 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 |
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('divInf... | 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('divInf... | 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 |
FCKConfig.CustomConfigurationsPath = '' ;
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
FCKConfig.EditorAreaStyles = '' ;
FCKConfig.ToolbarComboPreviewCSS = '' ;
FCKConfig.DocType = '' ;
FCKConfig.BaseHref = '' ;
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/' ;
FCKConfig.S... | 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 |
<!--
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 |
//---事件句并------------------------------
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 |
<!--
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 |
// JavaScript Document
function ShowHide2(objname){
var obj = $Obj(objname);
if(obj.style.display != 'block'){ obj.style.display = 'block' }
else{ obj.style.display = 'none'; }
} | 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 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 |
<!--
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 |
<!--
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 |
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 |
<!--
function CheckSubmit()
{
return true;
}
--> | JavaScript |
<!--
function selAll()
{
var celements = document.getElementsByName('aids[]');
for(i=0;i<celements.length;i++)
{
if(!celements[i].checked) celements[i].checked = true;
else celements[i].checked = false;
}
}
function noselAll()
{
var celements = document.getElementsByName('aids[]');
for(i=0;i<ce... | 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 |
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 |
<!--
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 |
<!--
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 |
<!--
if(moz) {
extendEventObject();
extendElementModel();
emulateAttachEvent();
}
function delArc(mid){
var qstr=getCheckboxItem();
if(mid==0) mid = getOneItem();
location="member_do.php?id="+qstr+"&dopost=delmembers";
}
//获得选中文件的文件名
function getCheckboxItem()
{
var allSel="";
if(document.for... | 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 |
$(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 |
/*!
* jQuery corner plugin: simple corner rounding
* Examples and documentation at: http://jquery.malsup.com/corner/
* version 2.12 (23-MAY-2011)
* Requires jQuery v1.3.2 or later
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gp... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.