code
stringlengths
1
2.08M
language
stringclasses
1 value
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
// Copyright 2013 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
$(function() { function showMenu() { $("#gcb-nav-y").addClass("shown"); $(document.body).addClass('hide-overflow'); } function hideMenu() { $("#gcb-nav-y").removeClass("shown"); $(document.body).removeClass('hide-overflow'); } function toggleMenu() { if ($("#gcb-nav-y").hasClass("shown")) ...
JavaScript
// Copyright 2013 Google Inc. All Rights Reserved. // // 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 applicabl...
JavaScript
function Game(inputMapping, autoRepeat, threshold) { var thisObject = this, i; this.firstLoop = true; this.blocks = []; this.controlGroup = null; // make the preview blocks this.previewBlocks = []; for (i = 0; i < 4; i += 1) { this.previewBlocks.push(new Block({blockX: -10, block...
JavaScript
/** * The blocks that can be moved nby the user * @param {Array} blocks - an array of [Block] of size 4 that can be operated on * @param {Char} shape - the block type: i, o, j, l, s, z, t * @param {function({Number}x, {Number}y)} isLegalCallback - a function that retursn true if a block can be moved * to the new posit...
JavaScript
function ScoreTracker(scoreOutput, linesOutput, levelOutput, tickerOutput) { this.level = 1; this.score = 0; this.linesRemaining = ScoreTracker.levelLines(this.level); this.scoreOutput = scoreOutput; this.linesOutput = linesOutput; this.levelOutput = levelOutput; this.tickerOutput = tickerO...
JavaScript
var SHAPES = { i: { spin: 'corner', startX: 5, startY: 0, pos: [ { x: -2, y: -1 }, { x: -1, y: -1}, { x: 0, y: -1 }, { x: 1, y: -1 } ], image: 'media/cyanblock.png', kickType: 'i_block' }, o: { spin: 'corner', startX: 5, startY: -1, pos: [ { x: -1, y: 0 }, { x: 0, y:...
JavaScript
// default input assignments var inputAssignments = { shiftLeft: ['left'], shiftRight: ['right'], softDrop: ['down'], rotateLeft: ['z'], rotateRight: ['x', 'up'], swap: ['shift', 'c'], hardDrop: ['space'] }; var autoRepeatConfig = 50; var thresholdConfig = 200; function loadGameControls()...
JavaScript
function TtyBlock (divName, numLines, rollOverLength, rollOverRemove) { var i; this.elem = document.getElementById(divName); // slow scorlling effect variables this.curPos = 0; this.cursorShown = false; // TODO: make these random starting values this.timePassedType = 0; this.timePass...
JavaScript
function PreviewGroup(baseX, baseY) { var i; this.blocks = []; this.shape = null; // create the blocks for (i = 0; i < 4; i += 1) { this.blocks.push(new Block({ boardOriginX: baseX, boardOriginY: baseY, blockX: 0, blockY: 0, shape: 'i' })); } } /** * Sets the s...
JavaScript
/* * * Jaws - a HTML5 canvas/javascript 2D game development framework * * Homepage: http://jawsjs.com/ * Works with: Chrome 6.0+, Firefox 3.6+, 4+, IE 9+ * License: LGPL - http://www.gnu.org/licenses/lgpl.html * * Formating guide: * * jaws.oneFunction() * jaws.one_variable = 1 * new jaws.OneConstr...
JavaScript
function RandomBag(queueSize) { // start off empty this.available = []; this.queue = []; // initialize by refilling the queue while (this.queue.length < queueSize) { this.queue.push(this.nextAvailable()); } } RandomBag.initialList = ['i', 'o', 'j', 'l', 'z', 's', 't']; /** * Returns the lett...
JavaScript
/** * @returns {[Number]} the line numbers of all the completed rows */ Game.prototype.getRows = function () { var i, rows = [], res = [], curRow; // initialize the rows to 0 for (i = 0; i < 20; i += 1) { rows[i] = 0; } // for each block for (i = 0; i < this.blocks.length; i += 1...
JavaScript
// TODO: constants file??? var BLOCK_WIDTH = 24; function Block(config) { var parent, key; config = config || {}; this.boX = (config.boardOriginX || 0) + FIELD_OFFSET_X; this.boY = (config.boardOriginY || 0) + FIELD_OFFSET_Y; this.blockX = config.blockX; this.blockY = config.blockY; thi...
JavaScript
var Background = function (config) { var x, y, curTile; config = config || {}; this.originX = (config.x || 0) + FIELD_OFFSET_X; this.originY = (config.y || 0) + FIELD_OFFSET_Y; this.width = 10; this.height = 20; this.tiles = []; for (x = 0; x < this.width; x += 1) { for (y = 0;...
JavaScript
FIELD_OFFSET_X = 180; FIELD_OFFSET_Y = 12; function TetrisControl() { var tetris = new Tetris(this); this.setup = function () { tetris.setup(); }; this.update = function () { tetris.update(); }; this.draw = function () { tetris.draw(); }; this.restart = function() { // create a n...
JavaScript
function Button(config) { var parent = new jaws.Sprite(config), key; for (key in parent) { this[key] = parent[key]; } } Button.prototype.isClicked = function(x, y) { return this.rect().collidePoint(x, y); };
JavaScript
var WALL_KICK_OFFSETS = {}; /* 0 -> starting orientation 1 -> 1 turn cw 2 -> 2 turns 3-> 1 turn ccw non-I blocks L->2 ( 0, 0) (-1, 0) (-1,-1) ( 0,+2) (-1,+2) L->0 ( 0, 0) (-1, 0) (-1,-1) ( 0,+2) (-1,+2) 2->R ( 0, 0) (-1, 0) (-1,+1) ( 0,-2) (-1,-2) 2->L ( 0, 0) (+1, 0) (+1,+1) ( 0,-2) (+1,-2) R->0 ( 0, 0) (+1, 0) (+1,...
JavaScript
function $_GET(q) { var s = window.location.search; var re = new RegExp('&'+q+'(?:=([^&]*))?(?=&|$)','i'); return (s=s.replace(/^\?/,'&').match(re)) ? (typeof s[1] == 'undefined' ? '' : decodeURIComponent(s[1])) : undefined; } function getXmlHttp() { if (window.XMLHttpRequest) {// code for IE7+...
JavaScript
function getXmlHttp() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari return new XMLHttpRequest(); } else {// code for IE6, IE5 return new ActiveXObject("Microsoft.XMLHTTP"); } } function highScoresOnLoad() { // div called id=highScoreDiv var xmlhttp = g...
JavaScript
function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = n...
JavaScript
var availKeys = [ "backspace", "tab", "enter", "shift", "ctrl", "alt", "space", "pageup", "pagedown", "end", "home", "left", "up", "right", "down", "insert", "delete", "multiply", "add", "subtract", "decimalpoint", "divide", "nu...
JavaScript
//Mouseover Tabs Menu: By http://www.dynamicdrive.com //** Aug 4th, 08': Script creation date var mouseovertabsmenu={ disappeardelay: 250, //set delay in miliseconds before sub menu disappears onmouseout ajaxloadingmsg: 'Loading Sub Menu Contents...', //Message to show inside sub menu while fetching contents ...
JavaScript
//Mouseover Tabs Menu: By http://www.dynamicdrive.com //** Aug 4th, 08': Script creation date var mouseovertabsmenu={ disappeardelay: 250, //set delay in miliseconds before sub menu disappears onmouseout ajaxloadingmsg: 'Loading Sub Menu Contents...', //Message to show inside sub menu while fetching contents ...
JavaScript
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ var play = false; function togglePlay() { if(!play) { projekktor('.projekktor').setPlay(); play = true; } else { projekktor('.projekktor').setStop(); play = false; } } ...
JavaScript
/*! * ____ ____ ____ ____ ____ ____ ____ ____ * ||s |||p |||e |||a |||k |||k |||e |||r || * ||__|||__|||__|||__|||__|||__|||__|||__|| * |/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\| * the new way of <audio> * * a PORKHEAD.ORG and SPINNINGAIRWHALE.COM projekkt (c) 2011-2012 * * This is Speakker Bigboy powered by ...
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 langList = [ {name:'en', charset:'UTF-8'}, {name:'zh-cn', charset:'gb2312'}, {name:'zh-tw', charset:'GBK'} ]; var skinList = [ {name:'default', charset:'gb2312'}, {name:'whyGreen', charset:'gb2312'} ];
JavaScript
function $(id){ return document.getElementById(id); } /** *删除左右两端的空格 */ String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ''); } /** *删除左边的空格 */ String.prototype.ltrim=function() { return this.replace(/(^s*)/g,''); } /** *删除右边的空格 */ String.prototype.rtrim=function() ...
JavaScript
function deleteConfirm(){ if(confirm("确认执行此操作吗?")){ return true; } return false; } function $(name) { return document.getElementById(name); } /** *删除左右两端的空格 */ String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ''); } /** *删除左边的空格 */ String.prototype.ltri...
JavaScript
if (! this.sh_languages) { this.sh_languages = {}; } sh_languages['java'] = [ [ { 'regex': /\b(?:import|package)\b/g, 'style': 'sh_preproc' }, { 'next': 1, 'regex': /\/\/\//g, 'style': 'sh_comment' }, { 'next': 7, 'regex': /\/\//g, 'style': 'sh_com...
JavaScript
function checkAccountID(){ var accountID = document.getElementById("").value; } /** *删除左右两端的空格 */ String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ''); } /** *删除左边的空格 */ String.prototype.ltrim=function() { return this.replace(/(^s*)/g,''); } /** *删除右边的空格 */ String.pr...
JavaScript
Calendar.LANG("it", "Italiano", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Vai a oggi", today: "Oggi", // appears in bottom bar wk: "set", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM:...
JavaScript
Calendar.LANG("de", "Deutsch", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday : "Heute ausw\u00e4hlen", today: "Heute", // appears in bottom bar wk: "wk", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. ...
JavaScript
Calendar.LANG("jp", "Japanese", { fdow: 1, // 地元の週の初めの日; 0 = 日曜日, 1 = 月曜日, 等. goToday: "本日へ", today: "本日", // ボットンバーに表示 wk: "週", weekend: "0,6", // 0 = 日曜日, 1 = 月曜日, 等. AM: "am", PM: "pm", mn : [ "1月", ...
JavaScript
// autor: Piotr kwiatkowski // www: http://pasjonata.net Calendar.LANG("pl", "Polish", { fdow: 1, // pierwszy dzień tygodnia; 0 = Niedziela, 1 = Poniedziałek, itd. goToday: "Idzie Dzisiaj", today: "Dziś", wk: "wk", weekend: "0,6", // 0 = Nied...
JavaScript
Calendar.LANG("ru", "русский", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Сегодня", today: "Сегодня", // appears in bottom bar wk: "нед", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: ...
JavaScript
Calendar.LANG("fr", "Français", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday : "Aujourd'hui", today: "Aujourd'hui", // appears in bottom bar wk: "sm.", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. ...
JavaScript
Calendar.LANG("cz", "Czech", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Ukaž dnešek", today: "Dnes", // appears in bottom bar wk: "týd", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "...
JavaScript
Calendar.LANG("en", "English", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Go Today", today: "Today", // appears in bottom bar wk: "wk", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "a...
JavaScript
Calendar.LANG("es", "Español", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Ir a Hoy", today: "Hoy", // appears in bottom bar wk: "sem", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "am...
JavaScript
Calendar.LANG("ro", "Română", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Astăzi", today: "Astăzi", // appears in bottom bar wk: "săp.", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "a...
JavaScript
Calendar.LANG("cn", "中文", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "今天", today: "今天", // appears in bottom bar wk: "周", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "AM", P...
JavaScript
Calendar.LANG("pt", "Portuguese", { fdow: 1, // primeiro dia da semana para esse local; 0 = Domingo, 1 = Segunda, etc. goToday: "Dia de Hoje", today: "Hoje", wk: "sm", weekend: "0,6", // 0 = Domingo, 1 = Segunda, etc. AM: "am", PM: "p...
JavaScript
if (! this.sh_languages) { this.sh_languages = {}; } sh_languages['c'] = [ [ { 'next': 1, 'regex': /\/\/\//g, 'style': 'sh_comment' }, { 'next': 7, 'regex': /\/\//g, 'style': 'sh_comment' }, { 'next': 8, 'regex': /\/\*\*/g, 'style': 'sh_comme...
JavaScript
/* SHJS - Syntax Highlighting in JavaScript Copyright (C) 2007 gnombat@users.sourceforge.net License: http://shjs.sourceforge.net/doc/license.html */ function sh_highlightString(inputString, language, builder) { var patternStack = { _stack: [], getLength: function() { return this._stack.lengt...
JavaScript
if (! this.sh_languages) { this.sh_languages = {}; } sh_languages['cpp'] = [ [ { 'regex': /(\b(?:class|struct|typename))([ \t]+)([A-Za-z0-9]+)/g, 'style': ['sh_keyword', 'sh_normal', 'sh_classname'] }, { 'regex': /\b(?:class|const_cast|delete|dynamic_cast|explicit|false|friend|inline|m...
JavaScript
/** *删除左右两端的空格 */ String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ''); } /** *删除左边的空格 */ String.prototype.ltrim=function() { return this.replace(/(^s*)/g,''); } /** *删除右边的空格 */ String.prototype.rtrim=function() { return this.replace(/(s*$)/g,''); } function chec...
JavaScript
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses...
JavaScript
/* * Treeview 1.4 - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-li...
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
var noExpires=new Date();noExpires.setTime(noExpires.getTime()+60*60*1000*24*60);var attributeSplit="\t";var itemSplit="\n";function CookieBuilder(name,maxItemNum,expires){var index;this.name=name;this.maxItemNum=maxItemNum;this.expires=expires;var value=getCookie(this.name);var s="";if(value!=null){var aId=value.spli...
JavaScript
if(!AE.widget.overShow){AE.widget.overShow = function (){ var oComponent=this; var oDefConfig={ targetId:"overShowTargetId", contentId:"overShowContentId", showDelayTime:200, hiddenDelayTime:200, excursion:[0,0] }; var config; var isInited = false; var dTarget,dContent; var del...
JavaScript
AE.widget.itemViewer=function(){ var oComponent=this; var oDefConfig={ itemSize:[0,0], itemNum:6, step:3, animTime:1, orientation:"h", toward:-1, //i dont know, why i use this. fireFunction:YAHOO.util.Easing.easeBothStrong, itemContainerId:"itemViewerContainer", itemClassName:"itemViewerItem", p...
JavaScript
// Min Width if(document.getElementById('titlename')){ if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 3)) { if(document.getElementById('titlename').scrollWidth<175){document.getElementById('titlename').style.width='13.8em';} } } // 4V YUE.on(window,"load",function...
JavaScript
document.write ("<table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>"); document.write ("<tr><td>"); showToolbar(); document.write ("</td></tr>"); document.write ("<tr><td height='100%'>"); document.write (" <table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>"); doc...
JavaScript
var selectedTD var selectedTR var selectedTBODY var selectedTable function TableInsert(){ if (!isTableSelected()){ showDialog('table.htm', true); } } function TableProp(){ if (isTableSelected()||isCursorInTableCell()){ showDialog('table.htm?action=modify', true); } } function TableCellProp()...
JavaScript
var sMenuHr="<tr><td align=center valign=middle height=2><TABLE border=0 cellpadding=0 cellspacing=0 width="+(lang["UIMenuWidth"]-22)+" height=2><tr><td height=1 class=HrShadow><\/td><\/tr><tr><td height=1 class=HrHighLight><\/td><\/tr><\/TABLE><\/td><\/tr>"; var sMenu1="<TABLE border=0 cellpadding=0 cellspacing=0 c...
JavaScript
var sEditorRootPath = document.location.pathname; sEditorRootPath = sEditorRootPath.substr(0, sEditorRootPath.length-15); config.StyleMenuHeader = "<head>" +"<link href='" + sEditorRootPath + "/css/" + config.CssDir + "/menuarea.css' type='text/css' rel='stylesheet'>" +"</head>" +"<body scroll='no' onConTex...
JavaScript
var sCurrMode = null; var bEditMode = null; var oLinkField = null; var BrowserInfo = new Object() ; BrowserInfo.MajorVer = navigator.appVersion.match(/MSIE (.)/)[1] ; BrowserInfo.MinorVer = navigator.appVersion.match(/MSIE .\.(.)/)[1] ; BrowserInfo.IsIE55OrMore = BrowserInfo.MajorVer >= 6 || ( BrowserInfo.Major...
JavaScript
/* *###################################### * eWebEditor v3.60 - Advanced online web based WYSIWYG HTML editor. * Copyright (c) 2003-2006 eWebSoft.com * * For further information go to http://www.ewebsoft.com/ * This copyright notice MUST stay intact for use. *###################################### */ var U...
JavaScript
// JScript 文件 function CheckAll(form) { for (var i=0;i<form.elements.length;i++) { var e = form.elements[i]; if (e.name != 'chkall') e.checked = form.chkall.checked; } } function isdel() { var ok=confirm("确定删除吗?删除后数据不能恢复!请小心删除!") if(!ok)return false else return true; } functi...
JavaScript
var wangwangInstalled=false;try{if(!wangwangInstalled){var obj=new ActiveXObject("WangWangX.WangWangObj");if(obj){wangwangInstalled=true;delete obj;}}}catch(e){} try{if(!wangwangInstalled){var mimetype=navigator.mimeTypes["application/ww-plugin"];if(mimetype){plugin=mimetype.enabledPlugin if(plugin){document.write('<e...
JavaScript
var domain = "taobao.com"; var hostName=location.hostname; if(hostName){ var hostArray=hostName.split("."); if(hostArray && hostArray.length>=2){ domain = hostArray[hostArray.length-2]+"."+hostArray[hostArray.length-1]; } if(domain.indexOf("taobao")<0){ domain = "taobao.com"; } }else{ domain = "ta...
JavaScript
var wangwangInstalled=false;try{if(!wangwangInstalled){var obj=new ActiveXObject("WangWangX.WangWangObj");if(obj){wangwangInstalled=true;delete obj;}}}catch(e){} try{if(!wangwangInstalled){var mimetype=navigator.mimeTypes["application/ww-plugin"];if(mimetype){plugin=mimetype.enabledPlugin if(plugin){document.write('<e...
JavaScript
var noExpires=new Date();noExpires.setTime(noExpires.getTime()+60*60*1000*24*60);var attributeSplit="\t";var itemSplit="\n";function CookieBuilder(name,maxItemNum,expires){var index;this.name=name;this.maxItemNum=maxItemNum;this.expires=expires;var value=getCookie(this.name);var s="";if(value!=null){var aId=value.spli...
JavaScript
if(!AE.widget.overShow){AE.widget.overShow = function (){ var oComponent=this; var oDefConfig={ targetId:"overShowTargetId", contentId:"overShowContentId", showDelayTime:200, hiddenDelayTime:200, excursion:[0,0] }; var config; var isInited = false; var dTarget,dContent; var del...
JavaScript
AE.widget.itemViewer=function(){ var oComponent=this; var oDefConfig={ itemSize:[0,0], itemNum:6, step:3, animTime:1, orientation:"h", toward:-1, //i dont know, why i use this. fireFunction:YAHOO.util.Easing.easeBothStrong, itemContainerId:"itemViewerContainer", itemClassName:"itemViewerItem", p...
JavaScript
var domain = "taobao.com"; var hostName=location.hostname; if(hostName){ var hostArray=hostName.split("."); if(hostArray && hostArray.length>=2){ domain = hostArray[hostArray.length-2]+"."+hostArray[hostArray.length-1]; } if(domain.indexOf("taobao")<0){ domain = "taobao.com"; } }else{ domain = "ta...
JavaScript
// Min Width if(document.getElementById('titlename')){ if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 3)) { if(document.getElementById('titlename').scrollWidth<175){document.getElementById('titlename').style.width='13.8em';} } } // 4V YUE.on(window,"load",function...
JavaScript
// JavaScript Document function SlideBox(container, frequency, direction, speed) { if (typeof(container) == 'string') { container = document.getElementById(container); } this.container = container; this.frequency = frequency; this.direction = direction; this.speed = speed || 2; this.films = []; var ...
JavaScript
<!-- var focus_width=152; var focus_height=164; var text_height=0; var swf_height = focus_height+text_height; var pics = '../YX_UpFile/Big/200712281812921.jpg|../YX_UpFile/Big/20071228181262.jpg'; var links = ''; var texts = ''; document.write('<object ID="focus_flas" classid="clsid:d27cdb6e-ae6d-11cf-96b8-44...
JavaScript
<!-- var focus_width=293; var focus_height=316; var text_height=0; var swf_height = focus_height+text_height; var pics = '../YX_UpFile/Big/20071228163462.jpg|../YX_UpFile/Big/200712281634609.jpg'; var links = ''; var texts = '首页大广告(paipai)'; document.write('<object ID="focus_flas" classid="clsid:d27cdb6e-ae6d...
JavaScript
<!-- var focus_width=200; var focus_height=300; var text_height=0; var swf_height = focus_height+text_height; var pics = 'http://localhost/YX_UpFile/Big/20077201119390.jpg'; var links = ''; var texts = ''; document.write('<object ID="focus_flas" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="h...
JavaScript
<!-- var focus_width=520; var focus_height=130; var text_height=0; var swf_height = focus_height+text_height; var pics = 'YX_UpFile/Big/2007221741718.jpg|YX_UpFile/Big/2007221741296.jpg|YX_UpFile/Big/2007231229984.jpg|YX_UpFile/Big/2007231229109.jpg|YX_UpFile/Big/20078142217687.jpg'; var links = 'a'; var texts...
JavaScript
<!-- var focus_width=130; var focus_height=164; var text_height=0; var swf_height = focus_height+text_height; var pics = '../YX_UpFile/Big/200712281818531.jpg|../YX_UpFile/Big/200712281818140.jpg'; var links = ''; var texts = ''; document.write('<object ID="focus_flas" classid="clsid:d27cdb6e-ae6d-11cf-96b8-4...
JavaScript
<!-- var focus_width=360; var focus_height=190; var text_height=0; var swf_height = focus_height+text_height; var pics = '../YX_UpFile/Big/20071027953765.jpg|../YX_UpFile/Big/20071027954453.jpg|../YX_UpFile/Big/20071027954234.jpg|../YX_UpFile/Big/20071027954218.jpg'; var links = ''; var texts = '购物资讯首页'; docu...
JavaScript
<!-- var focus_width=445; var focus_height=180; var text_height=0; var swf_height = focus_height+text_height; var pics = '../YX_UpFile/Big/200711121651765.jpg|../YX_UpFile/Big/200711121651937.jpg|../YX_UpFile/Big/200711121651921.jpg|../YX_UpFile/Big/200711121651734.jpg'; var links = 'http://www.changehope...
JavaScript
<!-- var focus_width=315; var focus_height=186; var text_height=0; var swf_height = focus_height+text_height; var pics = '../YX_UpFile/Big/20082261722828.jpg|../YX_UpFile/Big/20082261722906.jpg'; var links = ''; var texts = '新闻中心幻灯广告'; document.write('<object ID="focus_flas" classid="clsid:d27cdb6e-ae6d-11cf-...
JavaScript
<!-- var focus_width=360; var focus_height=190; var text_height=0; var swf_height = focus_height+text_height; var pics = '../YX_UpFile/Big/20077231420515.jpg|../YX_UpFile/Big/20077231420828.jpg|../YX_UpFile/Big/20077231420531.jpg'; var links = ''; var texts = ''; document.write('<object ID="focus_flas" classi...
JavaScript
<!-- var focus_width=550; var focus_height=120; var text_height=0; var swf_height = focus_height+text_height; var pics = 'http://192.168.1.9/YX_UpFile/Big/2007311023562.jpg|http://192.168.1.9/YX_UpFile/Big/2007311023921.jp'; var links = 'http://www.changehope.com'; var texts = ''; document.write('<object ID="...
JavaScript
<!-- var focus_width=350; var focus_height=250; var text_height=0; var swf_height = focus_height+text_height; var pics = 'http://localhost/YX_UpFile/Big/20077201126265.jpg|http://localhost/YX_UpFile/Big/20077201126906.jpg|http://localhost/YX_UpFile/Big/20077201126359.jpg'; var links = ''; var texts = ''; docu...
JavaScript
document.write("<a href='' target='_blank'><img border=0 src='' width='760' height='90' alt=''></a>");
JavaScript