⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 history.js

📁 flexplayer_source自己写的flex播放器
💻 JS
字号:
// $Revision: 1.1.1.1 $

// Vars

Vars = function(qStr) {

	this.numVars = 0;

	if(qStr != null) {

		var nameValue, name;

		var pairs = qStr.split('&');

		var pairLen = pairs.length;

		for(var i = 0; i < pairLen; i++) {

			var pair = pairs[i];

			if( (pair.indexOf('=')!= -1) && (pair.length > 3) ) {

				var nameValue = pair.split('=');

				var name = nameValue[0];

				var value = nameValue[1];

				if(this[name] == null && name.length > 0 && value.length > 0) { 

					this[name] = value;

					this.numVars++;

				}

			}

		} 

	}

}

Vars.prototype.toString = function(pre) {

	var result = '';

	if(pre == null) { pre = ''; }

	for(var i in this) {

		if(this[i] != null && typeof(this[i]) != 'object' && typeof(this[i]) != 'function' && i != 'numVars') {

			result += pre + i + '=' + this[i] + '&';

		}

	}

	if(result.length > 0) result = result.substr(0, result.length-1);

	return result;

}

function getSearch(wRef) {

	var searchStr = '';

	if(wRef.location.search.length > 1) {

		searchStr = new String(wRef.location.search);

		searchStr = searchStr.substring(1, searchStr.length);

	}

	return searchStr;

}

var lc_id = Math.floor(Math.random() * 100000).toString(16);

if (this != top)

{

	top.Vars = Vars;

	top.getSearch = getSearch;

	top.lc_id = lc_id;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -