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

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

?? history.js

?? flex+lcds配置環境
?? JS
?? 第 1 頁 / 共 2 頁
字號:
BrowserHistoryUtils = {
    addEvent: function(elm, evType, fn, useCapture) {
        useCapture = useCapture || false;
        if (elm.addEventListener) {
            elm.addEventListener(evType, fn, useCapture);
            return true;
        }
        else if (elm.attachEvent) {
            var r = elm.attachEvent('on' + evType, fn);
            return r;
        }
        else {
            elm['on' + evType] = fn;
        }
    }
}

BrowserHistory = (function() {
    // type of browser
    var browser = {
        ie: false, 
        firefox: false, 
        safari: false, 
        opera: false, 
        version: -1
    };

    // if setDefaultURL has been called, our first clue
    // that the SWF is ready and listening
    //var swfReady = false;

    // the URL we'll send to the SWF once it is ready
    //var pendingURL = '';

    // Default app state URL to use when no fragment ID present
    var defaultHash = '';

    // Last-known app state URL
    var currentHref = document.location.href;

    // Initial URL (used only by IE)
    var initialHref = document.location.href;

    // Initial URL (used only by IE)
    var initialHash = document.location.hash;

    // History frame source URL prefix (used only by IE)
    var historyFrameSourcePrefix = 'history/historyFrame.html?';

    // History maintenance (used only by Safari)
    var currentHistoryLength = -1;

    var historyHash = [];

    var initialState = createState(initialHref, initialHref + '#' + initialHash, initialHash);

    var backStack = [];
    var forwardStack = [];

    var currentObjectId = null;

    //UserAgent detection
    var useragent = navigator.userAgent.toLowerCase();

    if (useragent.indexOf("opera") != -1) {
        browser.opera = true;
    } else if (useragent.indexOf("msie") != -1) {
        browser.ie = true;
        browser.version = parseFloat(useragent.substring(useragent.indexOf('msie') + 4));
    } else if (useragent.indexOf("safari") != -1) {
        browser.safari = true;
        browser.version = parseFloat(useragent.substring(useragent.indexOf('safari') + 7));
    } else if (useragent.indexOf("gecko") != -1) {
        browser.firefox = true;
    }

    if (browser.ie == true && browser.version == 7) {
        window["_ie_firstload"] = false;
    }

    // Accessor functions for obtaining specific elements of the page.
    function getHistoryFrame()
    {
        return document.getElementById('ie_historyFrame');
    }

    function getAnchorElement()
    {
        return document.getElementById('firefox_anchorDiv');
    }

    function getFormElement()
    {
        return document.getElementById('safari_formDiv');
    }

    function getRememberElement()
    {
        return document.getElementById("safari_remember_field");
    }

    // Get the Flash player object for performing ExternalInterface callbacks.
    // Updated for changes to SWFObject2.
    function getPlayer(id) {
		if (id && document.getElementById(id)) {
			var r = document.getElementById(id);
			if (typeof r.SetVariable != "undefined") {
				return r;
			}
			else {
				var o = r.getElementsByTagName("object");
				var e = r.getElementsByTagName("embed");
				if (o.length > 0 && typeof o[0].SetVariable != "undefined") {
					return o[0];
				}
				else if (e.length > 0 && typeof e[0].SetVariable != "undefined") {
					return e[0];
				}
			}
		}
		else {
			var o = document.getElementsByTagName("object");
			var e = document.getElementsByTagName("embed");
			if (e.length > 0 && typeof e[0].SetVariable != "undefined") {
				return e[0];
			}
			else if (o.length > 0 && typeof o[0].SetVariable != "undefined") {
				return o[0];
			}
			else if (o.length > 1 && typeof o[1].SetVariable != "undefined") {
				return o[1];
			}
		}
		return undefined;
	}
    
    function getPlayers() {
        var players = [];
        if (players.length == 0) {
            var tmp = document.getElementsByTagName('object');
            players = tmp;
        }
        
        if (players.length == 0 || players[0].object == null) {
            var tmp = document.getElementsByTagName('embed');
            players = tmp;
        }
        return players;
    }

	function getIframeHash() {
		var doc = getHistoryFrame().contentWindow.document;
		var hash = String(doc.location.search);
		if (hash.length == 1 && hash.charAt(0) == "?") {
			hash = "";
		}
		else if (hash.length >= 2 && hash.charAt(0) == "?") {
			hash = hash.substring(1);
		}
		return hash;
	}

    /* Get the current location hash excluding the '#' symbol. */
    function getHash() {
       // It would be nice if we could use document.location.hash here,
       // but it's faulty sometimes.
       var idx = document.location.href.indexOf('#');
       return (idx >= 0) ? document.location.href.substr(idx+1) : '';
    }

    /* Get the current location hash excluding the '#' symbol. */
    function setHash(hash) {
       // It would be nice if we could use document.location.hash here,
       // but it's faulty sometimes.
       if (hash == '') hash = '#'
       document.location.hash = hash;
    }

    function createState(baseUrl, newUrl, flexAppUrl) {
        return { 'baseUrl': baseUrl, 'newUrl': newUrl, 'flexAppUrl': flexAppUrl, 'title': null };
    }

    /* Add a history entry to the browser.
     *   baseUrl: the portion of the location prior to the '#'
     *   newUrl: the entire new URL, including '#' and following fragment
     *   flexAppUrl: the portion of the location following the '#' only
     */
    function addHistoryEntry(baseUrl, newUrl, flexAppUrl) {

        //delete all the history entries
        forwardStack = [];

        if (browser.ie) {
            //Check to see if we are being asked to do a navigate for the first
            //history entry, and if so ignore, because it's coming from the creation
            //of the history iframe
            if (flexAppUrl == defaultHash && document.location.href == initialHref && window['_ie_firstload']) {
                currentHref = initialHref;
                return;
            }
            if ((!flexAppUrl || flexAppUrl == defaultHash) && window['_ie_firstload']) {
                newUrl = baseUrl + '#' + defaultHash;
                flexAppUrl = defaultHash;
            } else {
                // for IE, tell the history frame to go somewhere without a '#'
                // in order to get this entry into the browser history.
                getHistoryFrame().src = historyFrameSourcePrefix + flexAppUrl;
            }
            setHash(flexAppUrl);
        } else {

            //ADR
            if (backStack.length == 0 && initialState.flexAppUrl == flexAppUrl) {
                initialState = createState(baseUrl, newUrl, flexAppUrl);
            } else if(backStack.length > 0 && backStack[backStack.length - 1].flexAppUrl == flexAppUrl) {
                backStack[backStack.length - 1] = createState(baseUrl, newUrl, flexAppUrl);
            }

            if (browser.safari) {
                // for Safari, submit a form whose action points to the desired URL
                if (browser.version <= 419.3) {
                    var file = window.location.pathname.toString();
                    file = file.substring(file.lastIndexOf("/")+1);
                    getFormElement().innerHTML = '<form name="historyForm" action="'+file+'#' + flexAppUrl + '" method="GET"></form>';
                    //get the current elements and add them to the form
                    var qs = window.location.search.substring(1);
                    var qs_arr = qs.split("&");
                    for (var i = 0; i < qs_arr.length; i++) {
                        var tmp = qs_arr[i].split("=");
                        var elem = document.createElement("input");
                        elem.type = "hidden";
                        elem.name = tmp[0];
                        elem.value = tmp[1];
                        document.forms.historyForm.appendChild(elem);
                    }
                    document.forms.historyForm.submit();
                } else {
                    top.location.hash = flexAppUrl;
                }
                // We also have to maintain the history by hand for Safari
                historyHash[history.length] = flexAppUrl;
                _storeStates();
            } else {
                // Otherwise, write an anchor into the page and tell the browser to go there
                addAnchor(flexAppUrl);
                setHash(flexAppUrl);
            }
        }
        backStack.push(createState(baseUrl, newUrl, flexAppUrl));
    }

    function _storeStates() {
        if (browser.safari) {
            getRememberElement().value = historyHash.join(",");
        }
    }

    function handleBackButton() {
        //The "current" page is always at the top of the history stack.
        var current = backStack.pop();
        if (!current) { return; }
        var last = backStack[backStack.length - 1];
        if (!last && backStack.length == 0){
            last = initialState;
        }
        forwardStack.push(current);
    }

    function handleForwardButton() {
        //summary: private method. Do not call this directly.

        var last = forwardStack.pop();
        if (!last) { return; }
        backStack.push(last);
    }

    function handleArbitraryUrl() {
        //delete all the history entries
        forwardStack = [];
    }

    /* Called periodically to poll to see if we need to detect navigation that has occurred */
    function checkForUrlChange() {

        if (browser.ie) {
            if (currentHref != document.location.href && currentHref + '#' != document.location.href) {
                //This occurs when the user has navigated to a specific URL
                //within the app, and didn't use browser back/forward
                //IE seems to have a bug where it stops updating the URL it
                //shows the end-user at this point, but programatically it
                //appears to be correct.  Do a full app reload to get around
                //this issue.
                if (browser.version < 7) {
                    currentHref = document.location.href;
                    document.location.reload();
                } else {
					if (getHash() != getIframeHash()) {
						// this.iframe.src = this.blankURL + hash;
						var sourceToSet = historyFrameSourcePrefix + getHash();
						getHistoryFrame().src = sourceToSet;
					}
                }
            }
        }

        if (browser.safari) {
            // For Safari, we have to check to see if history.length changed.
            if (currentHistoryLength >= 0 && history.length != currentHistoryLength) {
                //alert("did change: " + history.length + ", " + historyHash.length + "|" + historyHash[history.length] + "|>" + historyHash.join("|"));
                // If it did change, then we have to look the old state up
                // in our hand-maintained array since document.location.hash
                // won't have changed, then call back into BrowserManager.
                currentHistoryLength = history.length;
                var flexAppUrl = historyHash[currentHistoryLength];
                if (flexAppUrl == '') {
                    //flexAppUrl = defaultHash;
                }
                //ADR: to fix multiple
                if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
                    var pl = getPlayers();
                    for (var i = 0; i < pl.length; i++) {
                        pl[i].browserURLChange(flexAppUrl);
                    }
                } else {
                    getPlayer().browserURLChange(flexAppUrl);
                }
                _storeStates();
            }
        }
        if (browser.firefox) {
            if (currentHref != document.location.href) {
                var bsl = backStack.length;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜电影网站| 久久久久久久综合日本| 久久亚洲综合色一区二区三区| 国产精品久久久久婷婷| 老司机精品视频线观看86| 色婷婷综合激情| 国产精品免费久久久久| 蜜臀av一区二区在线免费观看 | 久久一区二区三区国产精品| 亚洲精品日日夜夜| 成人一区二区三区| 精品嫩草影院久久| 日韩国产在线一| 91成人免费电影| 成人免费一区二区三区视频 | 精品国产露脸精彩对白| 亚洲成在线观看| 91日韩在线专区| 国产欧美日韩精品一区| 精品无人码麻豆乱码1区2区| 欧美日韩高清一区二区| 一区二区成人在线| 日本高清成人免费播放| 中文字幕一区免费在线观看| 国产精品66部| 国产无一区二区| 成人中文字幕电影| 国产精品久久久久永久免费观看| 国产美女精品一区二区三区| 精品日韩成人av| 免费久久精品视频| 欧美一区二区三区系列电影| 日韩精品国产精品| 日韩三级在线免费观看| 久久99日本精品| 久久久国产精品麻豆| 国产大陆亚洲精品国产| 国产精品毛片高清在线完整版| 国产成人在线视频网址| 日本一区二区在线不卡| 97久久久精品综合88久久| 亚洲乱码国产乱码精品精小说 | 色综合av在线| 亚洲综合免费观看高清完整版| 在线观看免费视频综合| 亚洲mv在线观看| 日韩久久免费av| 国产福利一区二区三区在线视频| 国产精品福利影院| 欧美日韩亚洲国产综合| 精品一区二区三区在线播放视频| 久久综合五月天婷婷伊人| 高清视频一区二区| 亚洲精品菠萝久久久久久久| 91麻豆精品国产| 国产一区二区三区在线观看免费视频 | 欧美精品v国产精品v日韩精品| 日韩成人午夜精品| 中文字幕成人av| 欧美私模裸体表演在线观看| 久久成人羞羞网站| 国产精品成人一区二区艾草| 欧美中文字幕一区| 黄页网站大全一区二区| 亚洲欧洲精品一区二区精品久久久 | 色综合一区二区| 日韩电影在线一区二区三区| 久久久国产精华| 欧美年轻男男videosbes| 美女视频黄免费的久久 | 美脚の诱脚舐め脚责91| 国产精品卡一卡二| 91精品久久久久久蜜臀| 成人深夜视频在线观看| 日韩精品电影一区亚洲| 亚洲日本在线看| 精品国产a毛片| 欧美日韩精品欧美日韩精品| 成人小视频在线| 青青草精品视频| 亚洲伦理在线精品| 亚洲国产精品国自产拍av| 欧美日韩国产高清一区二区三区 | 欧美国产精品专区| 在线91免费看| 91麻豆国产精品久久| 国产麻豆精品一区二区| 日韩在线卡一卡二| 亚洲精品日产精品乱码不卡| 国产日韩欧美a| 欧美成人三级在线| 欧美日韩精品一区二区三区四区| 福利电影一区二区| 激情另类小说区图片区视频区| 亚洲图片欧美视频| 亚洲视频电影在线| 中文字幕一区二区三区在线不卡| 精品少妇一区二区三区视频免付费 | 久久久不卡网国产精品一区| 制服丝袜中文字幕亚洲| 欧美天堂一区二区三区| 色婷婷综合激情| 91丝袜美腿高跟国产极品老师| 国产自产2019最新不卡| 蜜桃精品视频在线| 视频在线观看一区| 偷拍亚洲欧洲综合| 五月天国产精品| 天天综合色天天| 亚洲国产精品综合小说图片区| 亚洲美女在线国产| 伊人婷婷欧美激情| 亚洲国产一区二区视频| 亚洲一区二区影院| 午夜在线电影亚洲一区| 亚洲成av人影院在线观看网| 一区二区三区不卡在线观看| 亚洲欧美另类小说视频| 亚洲一区在线电影| 天堂一区二区在线| 欧美a一区二区| 精品午夜一区二区三区在线观看 | 亚洲成人在线免费| 日韩精品一二区| 极品美女销魂一区二区三区| 国产酒店精品激情| 成人福利视频在线| 欧洲中文字幕精品| 51精品视频一区二区三区| 日韩欧美资源站| 久久亚洲一级片| 国产精品电影院| 一区二区三区精品| 首页国产丝袜综合| 韩国欧美国产1区| 91免费观看在线| 欧美日韩另类国产亚洲欧美一级| 日韩欧美在线网站| 国产午夜亚洲精品午夜鲁丝片| 国产精品午夜春色av| 亚洲综合一区二区三区| 免费观看久久久4p| 99久久99久久免费精品蜜臀| 欧美亚洲另类激情小说| 精品成人免费观看| 亚洲欧洲精品一区二区精品久久久| 亚洲午夜av在线| 国产在线国偷精品产拍免费yy| www.亚洲精品| 日韩精品一区二区在线| 欧美国产一区视频在线观看| 亚洲成人黄色影院| 国产成a人亚洲| 欧美日韩精品电影| 亚洲欧美怡红院| 久久激情五月激情| 色狠狠一区二区| 国产日韩欧美精品在线| 亚洲午夜免费电影| 成人午夜私人影院| 制服丝袜av成人在线看| 中国色在线观看另类| 日本麻豆一区二区三区视频| 99久久伊人久久99| 日韩欧美综合在线| 亚洲国产视频在线| jlzzjlzz欧美大全| 26uuu国产一区二区三区| 亚洲国产综合视频在线观看| 国产成人自拍网| 91精品国产色综合久久| 亚洲一区二区三区四区在线观看 | 在线观看一区二区视频| 国产亚洲综合性久久久影院| 亚洲成av人片| 91色综合久久久久婷婷| 国产女人18毛片水真多成人如厕| 水野朝阳av一区二区三区| 色婷婷久久久久swag精品| 国产日韩欧美麻豆| 国产乱码精品1区2区3区| 精品噜噜噜噜久久久久久久久试看| 亚洲一区二区三区在线| 91黄色免费网站| 亚洲免费在线看| 不卡一区在线观看| 中文欧美字幕免费| 盗摄精品av一区二区三区| 久久免费的精品国产v∧| 精品一区二区在线播放| 日韩视频免费观看高清完整版在线观看| 亚洲一区二区三区视频在线播放| 91色在线porny| 伊人色综合久久天天人手人婷| 99在线精品视频| 综合分类小说区另类春色亚洲小说欧美| 岛国精品在线观看| 国产精品传媒入口麻豆| 97久久超碰国产精品电影| 亚洲日穴在线视频|