code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
*/
//显示等待页面
function showWaiting() {
// var frt = window.parent.document.getElementsByName("rightMain");
// var currentState = frt[0].rows;
// frt[0].rows = "25,*,0";
}
//隐藏等待页面
function hideWaiting() {
setTimeout("hide()", 800);
}
function hide() {
var frt = window.parent.document... | JavaScript |
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*解决ie6 z-index 问题
* Version 2.1.3-pre
*/
(function ($) {
$.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function (s) {
s = $.extend({
top: 'aut... | JavaScript |
$(function () {
var tab = document.getElementById("first");
if (tab == undefined || tab == null) return;
var divs = tab.getElementsByTagName("div");
if (divs == undefined || divs == null) return;
var responseContent;
for (var i = 0; i < divs.length; i++) {
divs[i].onclick = fun... | JavaScript |
var langList =
[
{name:'en', charset:'UTF-8'},
{name:'zh-cn', charset:'UTF-8'},
{name:'zh-tw', charset:'UTF-8'}
];
var skinList =
[
{name:'default', charset:'UTF-8'},
{name:'whyGreen', charset:'UTF-8'}
]; | JavaScript |
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00... | JavaScript |
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00... | JavaScript |
var $lang={
errAlertMsg: "Invalid date or the date out of range,redo or not?",
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Se... | JavaScript |
<!--
var zTree1;
var setting = {
expandSpeed: "",
showLine: true
};
$(document).ready(function(){
reloadTree("1");
});
var curType = '0';
var curLi;
function reloadTree(type) {
if (curLi) curLi.removeClass("focus");
$("#sim").attr("disabled", true);
$("#flag").attr("disabled", ... | JavaScript |
//将方法包装到一个对象下,相当于命名空间,避免重复
var wmsCommon = new Object();
wmsCommon.getCurrentURI = function () {
return document.URL;
}
//获取当前站点或 虚拟目录 的路径
wmsCommon.getRootPath = function () {
var strFullPath = window.document.location.href;
var strPath = window.document.location.pathname;
var pos = strFu... | JavaScript |
var opttype = 1; //全局 编辑新增控制,默认1:新增,2,修改
jQuery(function () {
InitButton();
//提交
function submitPage(dataModel, opttype) {
var url = document.location.href;
var queryStringlist = url.split('&');
///如果校验失败,则不执行保存方法
if (ProcessBeforeSave(modelName, opttype)) {
... | JavaScript |
var wmsBiz = new Object();
//检查物料编码是否存在
wmsBiz.checkMaterialCode = function (materialCode) {
var table = wmsCommon.execCommand(String.format("wmsql(select * from materials where materialNo='{0}')", materialCode));
if (table.length == 0)
return false;
return true;
}
//保存车辆队列信息
//hkl
wmsB... | JavaScript |
/**
* This jQuery plugin displays pagination links inside the selected elements.
*
* This plugin needs at least jQuery 1.4.2
*
* @author Gabriel Birke (birke *at* d-scribe *dot* de)
* @version 2.1
* @param {int} maxentries Number of entries to paginate
* @param {Object} opts Several options (see README for doc... | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.73 (03-MAY-2011)
* @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
*/
;(functi... | JavaScript |
jQuery(function () {
//如果是列表模式
// ;
$("#tabs").tabs(); //显示Tab页//所有
if (wmsCommon.getQueryValue('opt') == '0' || wmsCommon.checkForNull(wmsCommon.getQueryValue('opt')) == "") {
//wmsCommon.addListClass(); //增加列表样式
}
//setTreeContentHeight();
function isString(str) {
... | JavaScript |
/*ydl 2011.5.6
验证页面信息 如:必填 ,正则表达式
如出错,弹出其父节点的上一个<td>innerText 信息--定制弹出
使用方法:调用submitValidatePage() 表单验证通过 返回true,否则 返回false
*/
var ifValidate = true; //true 验证通过
function submitValidatePage() {
ifValidate = true;
var arrTagType = new Array();
arrTagType = ["input", "select", "textarea"];
... | JavaScript |
| JavaScript |
//格式化字符串
String.format = function () {
if (arguments.length == 0)
return null;
var str = arguments[0];
for (var i = 1; i < arguments.length; i++) {
var re = new RegExp('\\{' + (i - 1) + '\\}', 'gm');
str = str.replace(re, arguments[i]);
}
return str;
}
| JavaScript |
| JavaScript |
/*
*/
//显示等待页面
function showWaiting() {
// var frt = window.parent.document.getElementsByName("rightMain");
// var currentState = frt[0].rows;
// frt[0].rows = "25,*,0";
}
//隐藏等待页面
function hideWaiting() {
setTimeout("hide()", 800);
}
function hide() {
var frt = window.parent.document... | JavaScript |
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*解决ie6 z-index 问题
* Version 2.1.3-pre
*/
(function ($) {
$.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function (s) {
s = $.extend({
top: 'aut... | JavaScript |
$(function () {
var tab = document.getElementById("first");
if (tab == undefined || tab == null) return;
var divs = tab.getElementsByTagName("div");
if (divs == undefined || divs == null) return;
var responseContent;
for (var i = 0; i < divs.length; i++) {
divs[i].onclick = fun... | JavaScript |
var langList =
[
{name:'en', charset:'UTF-8'},
{name:'zh-cn', charset:'UTF-8'},
{name:'zh-tw', charset:'UTF-8'}
];
var skinList =
[
{name:'default', charset:'UTF-8'},
{name:'whyGreen', charset:'UTF-8'}
]; | JavaScript |
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00... | JavaScript |
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00... | JavaScript |
var $lang={
errAlertMsg: "Invalid date or the date out of range,redo or not?",
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Se... | JavaScript |
$(document).ready(function() {
var currentIndex = 0;
var focus; //函数对象
var currentID = 0; //取得鼠标下方的对象ID
var pictureID = 0; //索引ID
$("#index_focus_piclist li").eq(0).show(); //默认
autoScroll();
$("#index_focus_btn li").hover(function() {
StopScrolll();
$("#index_focus_btn li").removeClass("cu... | JavaScript |
/* Copyright 2014 Peter Kehl
This file is part of SeLite Exit Confirmation Checker.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'exit-confirmation-checker@selite.googlecode.com',
coreUrl: 'chrome://selite-exit-confirmation-checker/content/extensions/core.js',
requisitePlugins: {
'testcase-debug-context@selite.googlecode.com': 'SeLite TestCase Debug Context',
'setti... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Misc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Misc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'misc@selite.googlecode.com',
coreUrl: 'chrome://selite-misc/content/extensions/selite-misc-core.js'
} );
| JavaScript |
/* Copyright 2014 Peter Kehl
This file is part of SeLite Misc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... | JavaScript |
/* Copyright 2014 Peter Kehl
This file is part of SeLite Auto Check.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) a... | JavaScript |
"use strict";
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'auto-check@selite.googlecode.com',
coreUrl: ['chrome://selite-auto-check/content/extensions/auto-check.js'],
requisitePlugins: {
'misc@selite.googlecode.com': 'SeLite Miscellaneous',
'bootstrap@selite.googlecode.com': 'SeLi... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Commands.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
"use strict";
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'commands@selite.googlecode.com',
coreUrl: 'chrome://selite-commands/content/extensions/commands.js',
xmlUrl: 'chrome://selite-commands/content/reference.xml',
requisitePlugins: {
'misc@selite.googlecode.com': 'SeLite Miscellane... | JavaScript |
//"use strict";
//var global= this;
//var cuckoo;
( function() {
// This file does its job only when it's loaded by Selenium IDE for the first time on any (re)start of Selenium IDE. When Selenium IDE triggers it the second time (within the same run of IDE), the it skips its job. For detecting that: I set a field o... | JavaScript |
/*
* Copyright 2013, 2014 Peter Kehl
*
* 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/lic... | JavaScript |
/*
* Copyright 2013, 2014 Peter Kehl
*
* 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 agre... | JavaScript |
/*
* Copyright 2014 Peter Kehl
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
"use strict";
// If you extend this framework from another file, see https://code.google.com/p/selite/wiki/TestFramework#Extending_a_test_framework
/** @type{... | JavaScript |
"use strict";
Components.utils.import( "chrome://selite-db-objects/content/Db.js" ); // this loads 'SeLiteData' object into Selenium Core scope, so that it can be used by Selenese
Components.utils.import( "chrome://selite-db-objects/content/DbStorage.js" );
Components.utils.import( "chrome://selite-db-objects/content/... | JavaScript |
"use strict";
/** This is a placeholder-like object. All files from SeLite DB Objects add their functionality to this object.
* */
var SeLiteData= {};
var EXPORTED_SYMBOLS=['SeLiteData']; | JavaScript |
"use strict";
/* This contains shortcut-like functions.
/*/
Components.utils.import( 'chrome://selite-misc/content/SeLiteMisc.js' );
Components.utils.import('chrome://selite-db-objects/content/Db.js');
Components.utils.import('chrome://selite-db-objects/content/DbStorage.js');
Components.utils.import('chrome://selite-d... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'db-objects@selite.googlecode.com',
requisitePlugins: {
'misc@selite.googlecode.com': 'SeLite Miscellaneous',
'commands@selite.googlecode.com': 'SeLite Commands',
'sqlite-connection-manager@selite.googlecode.com': 'SQLite Connection Ma... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Db Objects.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Db Objects.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
"use strict";
if( false ) {
var appDB= new SeLiteSettings.Field.SQLite('appDB');
var testDB= new SeLiteSettings.Field.SQLite('testDB', /*defaultKey*/undefined, /*requireAndPopulate*/undefined, /*customValidate*/undefined, /*saveFile*/true);
var vanillaDB= new SeLiteSettings.Field.SQLite('vanillaDB', /*defa... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
This file is part of SeLite Settings.
This program 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, either version 3 of the License, or
(at your option) ... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
This file is part of SeLite Settings.
This program 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, either version 3 of the License, or
(at your option) ... | JavaScript |
"use strict";
SeLiteExtensionSequencer.registerPlugin({
pluginId: 'settings@selite.googlecode.com',
coreUrl: 'chrome://selite-settings/content/extensions/core-extension.js',
// There is no xmlUrl field, because this doesn't add any new Selenese
ideUrl: 'chrome://selite-settings/content/extensions/ide-e... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
This program 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, either version 3 of the License, or
(at your option) any later version.
This program is distr... | JavaScript |
"use strict";
/* appDB, testDB and vanillaDB must have those names, since SeLiteSettings.setModuleForReloadButtons() depends on them.
* Also, SeLiteData.getStorageFromSettings() depends on name testDB.
*/
var appDB= new SeLiteSettings.Field.SQLite('appDB');
var testDB= new SeLiteSettings.Field.SQLite('testDB');
var ... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
This file is part of SeLite Settings.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your o... | JavaScript |
/* Copyright 2005 Shinya Kasatani
* Copyright 2013, 2014 Peter Kehl
* Based on Selenium code of ide/main/src/content/testCase.js
*
* This is needed for SelBlocksGlobal to work until Selenium accepts https://code.google.com/p/selenium/issues/detail?id=5495
*
* Licensed under the Apache License, Version 2.0 (the "... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'testcase-debug-context@selite.googlecode.com',
coreUrl: 'chrome://selite-testcase-debug-context/content/extensions/se-testcase-debug-context.js'
} );
| JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'sqlite-connection-manager@selite.googlecode.com'
} );
| JavaScript |
/* Copyright 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Bootstrap.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'bootstrap@selite.googlecode.com',
coreUrl: 'chrome://selite-bootstrap/content/extensions/se_bootstrap.js',
requisitePlugins: {
'misc@selite.googlecode.com': 'SeLite Miscellaneous',
'testcase-debug-context@selite.googlecode.com': 'SeLite T... | JavaScript |
/* Copyright 2014 Peter Kehl
(BSD licensed)
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT O... | JavaScript |
/* Copyright 2014 Peter Kehl
This program 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, either version 3 of the License, or
(at your option) any later version.
This program is distributed i... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
This program 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, either version 3 of the License, or
(at your option) any later version.
This program is distrib... | JavaScript |
/* Copyright 2013 Peter Kehl
See ../web/index.html
*/
//"not using strict";
/* Do not have "use strict"; if you want to set any new global variables/functions that you want to be visible from Selenese.
* Any such functions define using: XXX= function(params...) { ... };
* instead of: function XXX(params...) { ..... | JavaScript |
/**
* Copyright (c) 2006, Mark Allen. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions an... | JavaScript |
/**
* Copyright (c) 2006, Mark Allen. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions an... | JavaScript |
/**
* jquery.dump.js
* @author Torkild Dyvik Olsen
* @version 1.0
*
* A simple debug function to gather information about an object.
* Returns a nested tree with information.
*
*/
(function($) {
$.fn.dump = function() {
return $.dump(this);
}
$.dump = function(object) {
var recursion = f... | JavaScript |
function echo () {
// http://kevin.vanzonneveld.net
// + original by: Philip Peterson
// + improved by: echo is bad
// + improved by: Nate
// + revised by: Der Simon (http://innerdom.sourceforge.net/)
// + improved by: Brett Zamir (http://brett-zamir.me)
// + bugfixed by:... | JavaScript |
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Softw... | JavaScript |
/*
http://www.JSON.org/json2.js
2010-03-20
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EX... | JavaScript |
(function($){$.toJSON=function(o)
{if(typeof(JSON)=='object'&&JSON.stringify)
return JSON.stringify(o);var type=typeof(o);if(o===null)
return"null";if(type=="undefined")
return undefined;if(type=="number"||type=="boolean")
return o+"";if(type=="string")
return $.quoteString(o);if(type=='object')
{if(typeof o.t... | JavaScript |
alert('plugin one nested js file'); | JavaScript |
alert('win sauce'); | JavaScript |
alert('I am a root level file!'); | JavaScript |
alert("Test App"); | JavaScript |
nested theme js file | JavaScript |
root theme js file | JavaScript |
window.onload=function() {
// get tab container
var container = document.getElementById("tabContainer");
// set current tab
var navitem = container.querySelector(".tabs ul li");
//store which tab we are on
var ident = navitem.id.split("_")[1];
navitem.parentNode.setAttribute("data-curre... | JavaScript |
window.onload=function() {
// get tab container
var container = document.getElementById("tabContainer");
// set current tab
var navitem = container.querySelector(".tabs ul li");
//store which tab we are on
var ident = navitem.id.split("_")[1];
navitem.parentNode.setAttribute("data-curre... | JavaScript |
window.onload=function() {
// get tab container
var container = document.getElementById("tabContainer");
// set current tab
var navitem = container.querySelector(".tabs ul li");
//store which tab we are on
var ident = navitem.id.split("_")[1];
navitem.parentNode.setAttribute("data-curre... | JavaScript |
window.onload=function() {
// get tab container
var container = document.getElementById("tabContainer");
// set current tab
var navitem = container.querySelector(".tabs ul li");
//store which tab we are on
var ident = navitem.id.split("_")[1];
navitem.parentNode.setAttribute("data-curre... | JavaScript |
/*--------------------------------------------------|
| dTree 2.05 | www.destroydrop.com/javascript/tree/ |
|---------------------------------------------------|
| Copyright (c) 2002-2003 Geir Landr? |
| |
| This script can be used freely as... | JavaScript |
/*--------------------------------------------------|
| dTree 2.05 | www.destroydrop.com/javascript/tree/ |
|---------------------------------------------------|
| Copyright (c) 2002-2003 Geir Landr? |
| |
| This script can be used freely as ... | JavaScript |
/*--------------------------------------------------|
| dTree 2.05 | www.destroydrop.com/javascript/tree/ |
|---------------------------------------------------|
| Copyright (c) 2002-2003 Geir Landr? |
| |
| This script can be used freely as ... | JavaScript |
function checknumber(String){
var letters = "0123456789.";
var c;
for( var i = 0; i < String.length; i ++ ){
c = String.charAt( i );
if (letters.indexOf( c ) ==-1)
return true;
}
return false;
}
function checkPageValid(){
var obj = document.getElementsByTagName("INPUT");
var... | JavaScript |
// ** Translated by ATang ** I18N
Calendar._DN = new Array
("日",
"一",
"二",
"三",
"四",
"五",
"六",
"日");
Calendar._MN = new Array
("一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"十一月",
"十二月");
// tooltips
Calendar._TT = {};
Calendar._TT["TOGGLE"] = "切换周开始的一天";
Cale... | JavaScript |
<!--
document.writeln('<div id=meizzDateLayer style="position: absolute; width: 142; height: 166; z-index: 9998; display: none">');
document.writeln('<span id=tmpSelectYearLayer style="z-index: 9999;position: absolute;top: 2; left: 18;display: none"></span>');
document.writeln('<span id=tmpSelectMonthLayer style="z... | JavaScript |
/* Copyright Mihai Bazon, 2002, 2003 | http://students.infoiasi.ro/~mishoo
* ---------------------------------------------------------------------------
*
* The DHTML Calendar, version 0.9.3 "It's still alive & keeps rocking"
*
* Details and latest version at:
* http://students.infoiasi.ro/~mishoo/site/c... | JavaScript |
var oldLink = null;
// code to change the active stylesheet
function setActiveStyleSheet(link, title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("... | JavaScript |
// 主调用函数是 setday(this,[object])和setday(this),[object]是控件输出的控件名,举两个例子:
// 一、<input name=txt><input type=button value=setday onclick="setday(this,document.all.txt)">
// 二、<input onfocus="setday(this)">
var bMoveable=true;
var strFrame;
document.writeln('<iframe id=endDateLayer frameborder=0 style="position: a... | JavaScript |
<!--
function IsDate(mystring) {
var reg = /^(\d{4})-(\d{1,2})-(\d{1,2})$/;
var str = mystring;
var arr = reg.exec(str);
if (str=="") return true;
if (!reg.test(str)&&RegExp.$2<=12&&RegExp.$3<=31){
return false;
... | JavaScript |
function window_onload(){
initDocument();
}
function checkbox_autoDropDown_onclick() {
dropdown_1.setAttribute("autoDropDown", checkbox_autoDropDown.checked);
dropdown_2.setAttribute("autoDropDown", checkbox_autoDropDown.checked);
dropdown_3.setAttribute("autoDropDown", checkbox_autoDropDown.checked);
}
... | JavaScript |
<!--//--><![CDATA[//><!--
function sfHover() {
var sfEls = document.getElementById("menudown").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new... | JavaScript |
// ** Translated by ATang ** I18N
Calendar._DN = new Array
("日",
"一",
"二",
"三",
"四",
"五",
"六",
"日");
Calendar._MN = new Array
("一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"十一月",
"十二月");
// tooltips
Calendar._TT = {};
Calendar._TT["TOGGLE"] = "切换周开始的一天";
Cale... | JavaScript |
/* Copyright Mihai Bazon, 2002, 2003 | http://students.infoiasi.ro/~mishoo
* ---------------------------------------------------------------------------
*
* The DHTML Calendar, version 0.9.3 "It's still alive & keeps rocking"
*
* Details and latest version at:
* http://students.infoiasi.ro/~mishoo/site/c... | JavaScript |
var oldLink = null;
// code to change the active stylesheet
function setActiveStyleSheet(link, title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("... | JavaScript |
// ** Translated by ATang ** I18N
Calendar._DN = new Array
("Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday");
Calendar._MN = new Array
("January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"Novenber... | JavaScript |
function menuFix() {
var csfEls = document.getElementById("change").getElementsByTagName("li");
for (var i=0; i<csfEls.length; i++) {
csfEls[i].onmouseover=function() {
this.className+=(this.className.length>0? " ": "") + "csfhover";
}
csfEls[i].onMouseDown=function() {
this.className+=(this.classNam... | JavaScript |
<!--
function IsDate(mystring) {
var reg = /^(\d{4})-(\d{1,2})-(\d{1,2})$/;
var str = mystring;
var arr = reg.exec(str);
if (str=="") return true;
if (!reg.test(str)&&RegExp.$2<=12&&RegExp.$3<=31){
return false;
... | JavaScript |
function window_onload(){
initDocument();
}
function checkbox_autoDropDown_onclick() {
dropdown_1.setAttribute("autoDropDown", checkbox_autoDropDown.checked);
dropdown_2.setAttribute("autoDropDown", checkbox_autoDropDown.checked);
dropdown_3.setAttribute("autoDropDown", checkbox_autoDropDown.checked);
}
... | JavaScript |
<!--//--><![CDATA[//><!--
function sfHover() {
var sfEls = document.getElementById("menudown").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.