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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? swfupload.js

?? asp的bbs程序
?? JS
?? 第 1 頁 / 共 3 頁
字號:
/**
 * 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.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 Beta 2";
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"
};

/* ******************** */
/* 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("file_post_name", "Filedata");
	this.ensureDefault("post_params", {});
	this.ensureDefault("use_query_string", false);
	this.ensureDefault("requeue_on_error", false);
	this.ensureDefault("http_success", []);
	
	// 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", 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 + "?swfuploadrnd=" + Math.floor(Math.random() * 999999999);
	}
	
	delete this.ensureDefault;
};

SWFUpload.prototype.loadFlash = function () {
	if (this.settings.button_placeholder_id !== "") {
		this.replaceWithFlash();
	} else {
		this.appendFlash();
	}
};

// Private: appendFlash gets the HTML tag for the Flash
// It then appends the flash to the body
SWFUpload.prototype.appendFlash = function () {
	var targetElement, container;

	// 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 body tag where we will be adding the flash movie
	targetElement = document.getElementsByTagName("body")[0];

	if (targetElement == undefined) {
		throw "Could not find the 'body' element.";
	}

	// Append the container and load the flash
	container = document.createElement("div");
	container.style.width = "1px";
	container.style.height = "1px";
	container.style.overflow = "hidden";

	targetElement.appendChild(container);
	container.innerHTML = this.getFlashHTML();	// Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers)
};

// Private: replaceWithFlash replaces the button_placeholder element with the flash movie.
SWFUpload.prototype.replaceWithFlash = 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);

	if (targetElement == undefined) {
		throw "Could not find the placeholder element.";
	}

	// 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);

};

// 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;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.
SWFUpload.prototype.destroy = function () {
	try {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩va欧美va亚洲va久久| 日韩视频永久免费| 91精品麻豆日日躁夜夜躁| 久久精品夜夜夜夜久久| 亚洲网友自拍偷拍| 亚洲精品国产第一综合99久久| 久久精品国产99国产| 91精品国产综合久久精品性色| 久久精品一区二区三区四区| 亚洲午夜久久久久中文字幕久| 国产一二精品视频| 久久久激情视频| 美美哒免费高清在线观看视频一区二区 | k8久久久一区二区三区| 4438亚洲最大| 韩国一区二区三区| 久久精品综合网| 91香蕉视频在线| 奇米精品一区二区三区在线观看一 | 日韩一级视频免费观看在线| 成人白浆超碰人人人人| 蜜臀av性久久久久蜜臀aⅴ四虎 | 国产精品二区一区二区aⅴ污介绍| 51久久夜色精品国产麻豆| 欧美激情一区二区三区全黄| 国产乱码精品一区二区三区五月婷 | 成人在线综合网| 偷拍自拍另类欧美| 国产精品久久久久久久裸模| 欧美性做爰猛烈叫床潮| 亚洲综合精品自拍| 亚洲国产精品ⅴa在线观看| 色婷婷av一区| 不卡的av中国片| 韩国欧美一区二区| 婷婷综合五月天| 亚洲黄色免费网站| 国产日韩精品一区二区三区| 欧美私人免费视频| 成人app网站| 成人午夜免费视频| 久久精品国产精品青草| 一区二区三区波多野结衣在线观看| 精品久久久久久无| 日韩一区二区在线观看| 欧美精品国产精品| 欧美日本一区二区三区四区| 色噜噜久久综合| 91麻豆精品一区二区三区| 成人网男人的天堂| 北条麻妃一区二区三区| a级高清视频欧美日韩| 成人国产精品视频| 91麻豆.com| 欧美视频一区二| 欧美精品1区2区3区| 欧美福利视频导航| 日韩欧美国产一区在线观看| 日韩精品在线网站| 久久久亚洲精品石原莉奈| 久久久久久99精品| 中文字幕一区视频| 亚洲高清视频的网址| 婷婷中文字幕综合| 国产一区二区在线免费观看| 国产在线一区观看| 波多野结衣精品在线| 在线观看av一区| 日韩精品一区二区三区中文不卡 | 免费欧美在线视频| 久久国产精品色| 成人高清免费在线播放| 欧美这里有精品| 久久蜜桃一区二区| 一区二区三区91| 国产福利电影一区二区三区| 色综合久久九月婷婷色综合| 精品国产欧美一区二区| 日韩一区中文字幕| 精品制服美女久久| 欧美日韩另类一区| 国产色91在线| 久久激情五月婷婷| 欧美精品乱码久久久久久按摩| 国产人久久人人人人爽| 免费高清视频精品| 欧美人与禽zozo性伦| 亚洲视频 欧洲视频| 国产成人a级片| 欧美r级电影在线观看| 亚洲成人综合在线| 欧美三区在线观看| 一区二区三区四区在线播放| 高清shemale亚洲人妖| 久久精品在这里| 国产一区二区在线免费观看| 欧美欧美欧美欧美首页| 亚洲欧美aⅴ...| 成人app下载| 中文字幕成人av| 成人av网址在线| 一区二区三区久久| 在线观看国产91| 日韩av网站免费在线| 欧美一区二区免费| 国产一区二区三区免费播放| 久久久777精品电影网影网| 成人性生交大片免费| 亚洲乱码国产乱码精品精可以看| 97精品国产露脸对白| 亚洲国产美女搞黄色| 欧美久久久久久久久中文字幕| 日韩不卡手机在线v区| 欧美成人福利视频| 9i看片成人免费高清| 亚洲另类春色国产| 日韩欧美国产不卡| youjizz久久| 一区二区三区免费观看| 日韩三级中文字幕| 成人综合激情网| 美女视频网站久久| 亚洲一二三级电影| 久久婷婷一区二区三区| 欧美日本一区二区三区| 国产一区二区三区久久久| 亚洲乱码中文字幕综合| 精品奇米国产一区二区三区| 97精品久久久午夜一区二区三区| 奇米一区二区三区| 亚洲一区免费观看| 中文字幕不卡的av| 精品久久久久香蕉网| 成人国产精品视频| 国产福利不卡视频| 欧美a级一区二区| 亚洲成人资源网| 亚洲视频在线一区| 日本一区二区视频在线观看| 717成人午夜免费福利电影| 91色|porny| 丁香一区二区三区| 福利一区福利二区| 国产一区激情在线| 国产精品自在在线| 国产一区二区三区四区五区美女 | 国产精品五月天| 日本一区二区三区四区| 久久久午夜精品| 久久精品日产第一区二区三区高清版 | 久久久噜噜噜久久人人看 | 日本高清不卡在线观看| 成人永久免费视频| gogo大胆日本视频一区| 懂色av中文一区二区三区| 国产精品1区2区| 色94色欧美sute亚洲线路一久| av午夜精品一区二区三区| 欧美在线观看视频在线| 欧美日韩亚洲综合在线| 91麻豆精品国产91久久久久久久久 | 亚洲成人av电影| 狠狠色丁香久久婷婷综合_中| 国产麻豆精品theporn| 成人性色生活片免费看爆迷你毛片| www.色综合.com| 在线成人免费观看| 国产日韩一级二级三级| 伊人一区二区三区| 麻豆精品一区二区av白丝在线| 国产精品一二三区| 在线免费av一区| 中文字幕永久在线不卡| 亚洲国产成人tv| 99综合影院在线| 日韩视频在线永久播放| 亚洲精品伦理在线| 国产福利精品导航| 91精品蜜臀在线一区尤物| 成人免费一区二区三区视频 | 91在线精品秘密一区二区| 日韩免费观看2025年上映的电影| 中文字幕中文字幕一区二区| 六月婷婷色综合| 欧美日韩精品免费| 夜夜嗨av一区二区三区中文字幕 | 欧美亚洲免费在线一区| 亚洲国产成人在线| 国产精品一区免费视频| 91精品国产综合久久香蕉麻豆 | 欧美刺激脚交jootjob| 午夜精品爽啪视频| 欧美无人高清视频在线观看| 中文字幕在线观看一区| youjizz国产精品| 亚洲欧洲性图库| 成人av网站在线| 亚洲日本护士毛茸茸| 色综合久久中文字幕| 亚洲日本va午夜在线影院|