亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? swfupload.js

?? Ext JS是一個創(chuàng)建豐富互聯(lián)網(wǎng)應用程序的跨瀏覽器的JavaScrip庫。它包含:高效率
?? JS
?? 第 1 頁 / 共 3 頁
字號:
/*
 * Ext JS Library 3.0 Pre-alpha
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

/**
 * 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?n and Mammon Media and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */


/* ******************* */
/* Constructor & Init  */
/* ******************* */
var SWFUpload;

if (SWFUpload == undefined) {
	SWFUpload = function (settings) {
		this.initSWFUpload(settings);
	};
}

SWFUpload.prototype.initSWFUpload = function (settings) {
	try {
		this.customSettings = {};	// A container where developers can place their own settings associated with this instance.
		this.settings = settings;
		this.eventQueue = [];
		this.movieName = "SWFUpload_" + SWFUpload.movieCount++;
		this.movieElement = null;


		// Setup global control tracking
		SWFUpload.instances[this.movieName] = this;

		// Load the settings.  Load the Flash movie.
		this.initSettings();
		this.loadFlash();
		this.displayDebugInfo();
	} catch (ex) {
		delete SWFUpload.instances[this.movieName];
		throw ex;
	}
};

/* *************** */
/* Static Members  */
/* *************** */
SWFUpload.instances = {};
SWFUpload.movieCount = 0;
SWFUpload.version = "2.2.0 2009-03-25";
SWFUpload.QUEUE_ERROR = {
	QUEUE_LIMIT_EXCEEDED	  		: -100,
	FILE_EXCEEDS_SIZE_LIMIT  		: -110,
	ZERO_BYTE_FILE			  		: -120,
	INVALID_FILETYPE		  		: -130
};
SWFUpload.UPLOAD_ERROR = {
	HTTP_ERROR				  		: -200,
	MISSING_UPLOAD_URL	      		: -210,
	IO_ERROR				  		: -220,
	SECURITY_ERROR			  		: -230,
	UPLOAD_LIMIT_EXCEEDED	  		: -240,
	UPLOAD_FAILED			  		: -250,
	SPECIFIED_FILE_ID_NOT_FOUND		: -260,
	FILE_VALIDATION_FAILED	  		: -270,
	FILE_CANCELLED			  		: -280,
	UPLOAD_STOPPED					: -290
};
SWFUpload.FILE_STATUS = {
	QUEUED		 : -1,
	IN_PROGRESS	 : -2,
	ERROR		 : -3,
	COMPLETE	 : -4,
	CANCELLED	 : -5
};
SWFUpload.BUTTON_ACTION = {
	SELECT_FILE  : -100,
	SELECT_FILES : -110,
	START_UPLOAD : -120
};
SWFUpload.CURSOR = {
	ARROW : -1,
	HAND : -2
};
SWFUpload.WINDOW_MODE = {
	WINDOW : "window",
	TRANSPARENT : "transparent",
	OPAQUE : "opaque"
};

// Private: takes a URL, determines if it is relative and converts to an absolute URL
// using the current site. Only processes the URL if it can, otherwise returns the URL untouched
SWFUpload.completeURL = function(url) {
	if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//)) {
		return url;
	}
	
	var currentURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
	
	var indexSlash = window.location.pathname.lastIndexOf("/");
	if (indexSlash <= 0) {
		path = "/";
	} else {
		path = window.location.pathname.substr(0, indexSlash) + "/";
	}
	
	return /*currentURL +*/ path + url;
	
};


/* ******************** */
/* Instance Members  */
/* ******************** */

// Private: initSettings ensures that all the
// settings are set, getting a default value if one was not assigned.
SWFUpload.prototype.initSettings = function () {
	this.ensureDefault = function (settingName, defaultValue) {
		this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName];
	};
	
	// Upload backend settings
	this.ensureDefault("upload_url", "");
	this.ensureDefault("preserve_relative_urls", false);
	this.ensureDefault("file_post_name", "Filedata");
	this.ensureDefault("post_params", {});
	this.ensureDefault("use_query_string", false);
	this.ensureDefault("requeue_on_error", false);
	this.ensureDefault("http_success", []);
	this.ensureDefault("assume_success_timeout", 0);
	
	// File Settings
	this.ensureDefault("file_types", "*.*");
	this.ensureDefault("file_types_description", "All Files");
	this.ensureDefault("file_size_limit", 0);	// Default zero means "unlimited"
	this.ensureDefault("file_upload_limit", 0);
	this.ensureDefault("file_queue_limit", 0);

	// Flash Settings
	this.ensureDefault("flash_url", "swfupload.swf");
	this.ensureDefault("prevent_swf_caching", true);
	
	// Button Settings
	this.ensureDefault("button_image_url", "");
	this.ensureDefault("button_width", 1);
	this.ensureDefault("button_height", 1);
	this.ensureDefault("button_text", "");
	this.ensureDefault("button_text_style", "color: #000000; font-size: 16pt;");
	this.ensureDefault("button_text_top_padding", 0);
	this.ensureDefault("button_text_left_padding", 0);
	this.ensureDefault("button_action", SWFUpload.BUTTON_ACTION.SELECT_FILES);
	this.ensureDefault("button_disabled", false);
	this.ensureDefault("button_placeholder_id", "");
	this.ensureDefault("button_placeholder", null);
	this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW);
	this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.WINDOW);
	
	// Debug Settings
	this.ensureDefault("debug", false);
	this.settings.debug_enabled = this.settings.debug;	// Here to maintain v2 API
	
	// Event Handlers
	this.settings.return_upload_start_handler = this.returnUploadStart;
	this.ensureDefault("swfupload_loaded_handler", null);
	this.ensureDefault("file_dialog_start_handler", null);
	this.ensureDefault("file_queued_handler", null);
	this.ensureDefault("file_queue_error_handler", null);
	this.ensureDefault("file_dialog_complete_handler", null);
	
	this.ensureDefault("upload_start_handler", null);
	this.ensureDefault("upload_progress_handler", null);
	this.ensureDefault("upload_error_handler", null);
	this.ensureDefault("upload_success_handler", null);
	this.ensureDefault("upload_complete_handler", null);
	
	this.ensureDefault("debug_handler", this.debugMessage);

	this.ensureDefault("custom_settings", {});

	// Other settings
	this.customSettings = this.settings.custom_settings;
	
	// Update the flash url if needed
	if (!!this.settings.prevent_swf_caching) {
		this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime();
	}
	
	if (!this.settings.preserve_relative_urls) {
		//this.settings.flash_url = SWFUpload.completeURL(this.settings.flash_url);	// Don't need to do this one since flash doesn't look at it
		this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url);
		this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url);
	}
	
	delete this.ensureDefault;
};

// Private: loadFlash replaces the button_placeholder element with the flash movie.
SWFUpload.prototype.loadFlash = function () {
	var targetElement, tempParent;

	// Make sure an element with the ID we are going to use doesn't already exist
	if (document.getElementById(this.movieName) !== null) {
		throw "ID " + this.movieName + " is already in use. The Flash Object could not be added";
	}

	// Get the element where we will be placing the flash movie
	targetElement = document.getElementById(this.settings.button_placeholder_id) || this.settings.button_placeholder;

	if (targetElement == undefined) {
		throw "Could not find the placeholder element: " + this.settings.button_placeholder_id;
	}

	// Append the container and load the flash
	tempParent = document.createElement("div");
	tempParent.innerHTML = this.getFlashHTML();	// Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers)
	targetElement.parentNode.replaceChild(tempParent.firstChild, targetElement);

	// Fix IE Flash/Form bug
	if (window[this.movieName] == undefined) {
		window[this.movieName] = this.getMovieElement();
	}
	
};

// Private: getFlashHTML generates the object tag needed to embed the flash in to the document
SWFUpload.prototype.getFlashHTML = function () {
	// Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay
	return ['<object id="', this.movieName, '" type="application/x-shockwave-flash" data="', this.settings.flash_url, '" width="', this.settings.button_width, '" height="', this.settings.button_height, '" class="swfupload">',
				'<param name="wmode" value="', this.settings.button_window_mode, '" />',
				'<param name="movie" value="', this.settings.flash_url, '" />',
				'<param name="quality" value="high" />',
				'<param name="menu" value="false" />',
				'<param name="allowScriptAccess" value="always" />',
				'<param name="flashvars" value="' + this.getFlashVars() + '" />',
				'</object>'].join("");
};

// Private: getFlashVars builds the parameter string that will be passed
// to flash in the flashvars param.
SWFUpload.prototype.getFlashVars = function () {
	// Build a string from the post param object
	var paramString = this.buildParamString();
	var httpSuccessString = this.settings.http_success.join(",");
	
	// Build the parameter string
	return ["movieName=", encodeURIComponent(this.movieName),
			"&amp;uploadURL=", encodeURIComponent(this.settings.upload_url),
			"&amp;useQueryString=", encodeURIComponent(this.settings.use_query_string),
			"&amp;requeueOnError=", encodeURIComponent(this.settings.requeue_on_error),
			"&amp;httpSuccess=", encodeURIComponent(httpSuccessString),
			"&amp;assumeSuccessTimeout=", encodeURIComponent(this.settings.assume_success_timeout),
			"&amp;params=", encodeURIComponent(paramString),
			"&amp;filePostName=", encodeURIComponent(this.settings.file_post_name),
			"&amp;fileTypes=", encodeURIComponent(this.settings.file_types),
			"&amp;fileTypesDescription=", encodeURIComponent(this.settings.file_types_description),
			"&amp;fileSizeLimit=", encodeURIComponent(this.settings.file_size_limit),
			"&amp;fileUploadLimit=", encodeURIComponent(this.settings.file_upload_limit),
			"&amp;fileQueueLimit=", encodeURIComponent(this.settings.file_queue_limit),
			"&amp;debugEnabled=", encodeURIComponent(this.settings.debug_enabled),
			"&amp;buttonImageURL=", encodeURIComponent(this.settings.button_image_url),
			"&amp;buttonWidth=", encodeURIComponent(this.settings.button_width),
			"&amp;buttonHeight=", encodeURIComponent(this.settings.button_height),
			"&amp;buttonText=", encodeURIComponent(this.settings.button_text),
			"&amp;buttonTextTopPadding=", encodeURIComponent(this.settings.button_text_top_padding),
			"&amp;buttonTextLeftPadding=", encodeURIComponent(this.settings.button_text_left_padding),
			"&amp;buttonTextStyle=", encodeURIComponent(this.settings.button_text_style),
			"&amp;buttonAction=", encodeURIComponent(this.settings.button_action),
			"&amp;buttonDisabled=", encodeURIComponent(this.settings.button_disabled),
			"&amp;buttonCursor=", encodeURIComponent(this.settings.button_cursor)
		].join("");
};

// Public: getMovieElement retrieves the DOM reference to the Flash element added by SWFUpload
// The element is cached after the first lookup
SWFUpload.prototype.getMovieElement = function () {
	if (this.movieElement == undefined) {
		this.movieElement = document.getElementById(this.movieName);
	}

	if (this.movieElement === null) {
		throw "Could not find Flash element";
	}
	
	return this.movieElement;
};

// Private: buildParamString takes the name/value pairs in the post_params setting object
// and joins them up in to a string formatted "name=value&amp;name=value"
SWFUpload.prototype.buildParamString = function () {
	var postParams = this.settings.post_params; 
	var paramStringPairs = [];

	if (typeof(postParams) === "object") {
		for (var name in postParams) {
			if (postParams.hasOwnProperty(name)) {
				paramStringPairs.push(encodeURIComponent(name.toString()) + "=" + encodeURIComponent(postParams[name].toString()));
			}
		}
	}

	return paramStringPairs.join("&amp;");
};

// Public: Used to remove a SWFUpload instance from the page. This method strives to remove
// all references to the SWF, and other objects so memory is properly freed.
// Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistant state.
// Credits: Major improvements provided by steffen
SWFUpload.prototype.destroy = function () {
	try {
		// Make sure Flash is done before we try to remove it
		this.cancelUpload(null, false);
		

		// Remove the SWFUpload DOM nodes
		var movieElement = null;
		movieElement = this.getMovieElement();
		
		if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区影院| 色呦呦日韩精品| 精品国偷自产国产一区| 久久97超碰色| 国产农村妇女精品| 99精品黄色片免费大全| 亚洲一区在线电影| 欧美一级日韩一级| 国内精品久久久久影院色| 亚洲精品高清在线| 91黄视频在线| 奇米亚洲午夜久久精品| 久久人人爽人人爽| 97se亚洲国产综合自在线观| 亚洲欧美区自拍先锋| 欧美视频一区二区| 美腿丝袜亚洲三区| 国产精品乱码久久久久久| 一本大道av一区二区在线播放| 亚洲一区在线电影| www日韩大片| 91在线免费看| 美腿丝袜一区二区三区| 中文一区二区完整视频在线观看| 在线一区二区三区做爰视频网站| 五月天欧美精品| 国产亚洲精品7777| 欧美日韩精品一区视频| 国产美女精品在线| 亚洲国产一区二区三区青草影视 | 夜夜揉揉日日人人青青一国产精品| 91浏览器打开| 黄色小说综合网站| 一区二区三区高清不卡| 欧美一卡2卡三卡4卡5免费| 成人久久18免费网站麻豆| 亚洲国产日产av| 国产女人水真多18毛片18精品视频 | 色8久久人人97超碰香蕉987| 毛片不卡一区二区| 亚洲精品中文在线影院| 久久婷婷成人综合色| 欧美三级乱人伦电影| 福利91精品一区二区三区| 偷窥国产亚洲免费视频| 中文字幕在线不卡一区| 日韩欧美国产一二三区| 欧美在线色视频| 成人免费毛片app| 另类专区欧美蜜桃臀第一页| 亚洲女同一区二区| 久久亚洲欧美国产精品乐播| 欧美日韩国产天堂| 91色九色蝌蚪| 欧美一区二区福利视频| 91黄色小视频| 99久久精品国产一区| 国产自产v一区二区三区c| 午夜成人免费视频| 亚洲综合无码一区二区| 亚洲四区在线观看| 国产日韩欧美一区二区三区综合| 欧美一区二区福利在线| 精品视频1区2区| 91极品视觉盛宴| 99re热视频这里只精品| 成人午夜免费视频| 国产寡妇亲子伦一区二区| 久久99最新地址| 秋霞成人午夜伦在线观看| 亚洲高清免费观看高清完整版在线观看| 国产精品家庭影院| 国产精品国产自产拍高清av王其| 国产日韩欧美不卡| 国产日本亚洲高清| 中文字幕精品—区二区四季| 国产清纯美女被跳蛋高潮一区二区久久w| 91精品国产手机| 日韩亚洲欧美中文三级| 91精品国产91热久久久做人人| 欧美男女性生活在线直播观看| 欧美综合亚洲图片综合区| 欧美性大战久久| 欧美色图在线观看| 欧美日韩国产高清一区二区三区 | 亚洲欧美另类小说视频| 亚洲日本成人在线观看| 亚洲乱码精品一二三四区日韩在线| 亚洲色图视频网| 亚洲曰韩产成在线| 亚洲电影第三页| 天天综合网天天综合色| 久久精品国产亚洲一区二区三区| 久久精品二区亚洲w码| 国产一区二区在线观看视频| 欧洲精品一区二区| 色欧美乱欧美15图片| 欧美日韩专区在线| 精品美女在线播放| 国产视频一区二区在线观看| 国产精品视频看| 亚洲小说欧美激情另类| 男女男精品视频| 国产精品主播直播| 91香蕉视频mp4| 在线成人av网站| 久久久综合激的五月天| 日韩一区中文字幕| 日韩中文字幕不卡| 国产精品一区二区你懂的| 91免费在线看| 日韩无一区二区| 中文字幕一区二区三区视频| 午夜亚洲福利老司机| 激情五月激情综合网| 91在线精品一区二区三区| 制服丝袜亚洲播放| 欧美极品aⅴ影院| 亚洲不卡一区二区三区| 国产精品一二三四| 欧美日韩免费一区二区三区| 欧美精品一区二| 亚洲大片免费看| 成人小视频免费观看| 在线播放一区二区三区| 国产精品天干天干在线综合| 五月天激情综合| 成人免费毛片片v| 日韩一区二区三区视频在线观看| 国产精品拍天天在线| 日韩国产高清影视| 91视视频在线直接观看在线看网页在线看 | 欧美aaa在线| 色婷婷亚洲婷婷| 久久精品亚洲国产奇米99| 亚洲午夜在线观看视频在线| 国产精品1区2区3区在线观看| 欧美三级中文字幕在线观看| 国产精品免费免费| 久久成人av少妇免费| 欧美日韩一区二区在线观看视频| 中文字幕欧美日韩一区| 麻豆国产欧美一区二区三区| 91国内精品野花午夜精品| 亚洲国产精品av| 国产一区二区网址| 日韩三级免费观看| 日韩在线播放一区二区| 色综合久久88色综合天天免费| 国产婷婷色一区二区三区| 裸体健美xxxx欧美裸体表演| 欧美亚洲动漫制服丝袜| 国产精品成人免费在线| 国产ts人妖一区二区| 久久综合五月天婷婷伊人| 日本成人在线看| 正在播放亚洲一区| 亚洲成人av一区二区三区| 色久综合一二码| 国产美女视频91| xfplay精品久久| 国产一区啦啦啦在线观看| 欧美zozo另类异族| 捆绑调教美女网站视频一区| 欧美日韩电影在线播放| 亚洲成av人在线观看| 欧美日韩亚洲综合一区| 亚洲va中文字幕| 欧美久久婷婷综合色| 丝袜美腿亚洲色图| 欧美一区二区三区男人的天堂| 日日夜夜免费精品| 欧美一级在线视频| 极品少妇一区二区| 久久综合99re88久久爱| 国产精品中文字幕日韩精品| 国产三级三级三级精品8ⅰ区| 国产主播一区二区三区| 国产偷国产偷精品高清尤物 | 视频一区在线视频| 日韩欧美中文字幕公布| 极品美女销魂一区二区三区| 久久久国产精品不卡| 成人视屏免费看| 一区二区三区欧美激情| 欧美人与禽zozo性伦| 久久激情综合网| 国产情人综合久久777777| 91色在线porny| 午夜一区二区三区在线观看| 日韩视频免费直播| 国产精品夜夜嗨| 亚洲免费色视频| 欧美人动与zoxxxx乱| 激情av综合网| 亚洲摸摸操操av| 日韩精品一区二区三区swag| 国产成人精品免费在线| 亚洲愉拍自拍另类高清精品| 欧美一区二区啪啪|