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

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

?? deeplinking.js

?? 使用HTTPService交互 flex3.0,RIA開發詳解基于ActionScript3.0實現
?? JS
?? 第 1 頁 / 共 2 頁
字號:
DeepLinkingUtils = {
	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;
		}
	}
}

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

    // 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 = 'deeplinking/historyFrame.html?';

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

    var historyHash = [];

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

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

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

    // 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. */
    function getPlayer() {
        var player = null; /* AJH, needed?  = document.getElementById(getPlayerId()); */
        
        if (player == null) {
            player = document.getElementsByTagName('object')[0];
        }
        
        if (player == null || player.object == null) {
            player = document.getElementsByTagName('embed')[0];
        }

        return player;
    }

    /* 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, copyToAddressBar) {

        //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 && _ie_firstload) {
                currentHref = initialHref;
                return;
            }
            if ((!flexAppUrl || flexAppUrl == defaultHash) && _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;
            }
            if (copyToAddressBar) {
                setHash(flexAppUrl);
                //document.location.href = newUrl;
            }
        } 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);
                if (copyToAddressBar) {
                    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 {
                    //getHistoryFrame().src = historyFrameSourcePrefix + getHash();
                }
            }
		}

		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;
                }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本在线一区| 欧美xxxxxxxxx| 韩国成人精品a∨在线观看| 最新成人av在线| 精品久久久久香蕉网| 色婷婷综合激情| 成人一级黄色片| 老司机免费视频一区二区| 亚洲综合无码一区二区| 欧美激情中文字幕| 日韩午夜在线观看| 欧美亚洲一区二区在线观看| 粉嫩aⅴ一区二区三区四区五区| 麻豆精品一区二区av白丝在线| 一区二区欧美视频| 欧美韩国日本综合| 国产日韩欧美a| 精品国产免费视频| 日韩免费高清av| 亚洲视频资源在线| 国产日韩欧美精品在线| 91高清视频在线| 国产美女精品在线| 久久电影国产免费久久电影| 色综合天天综合网国产成人综合天| 日韩黄色免费电影| 亚洲福利电影网| 一区二区三国产精华液| 亚洲视频图片小说| 成人欧美一区二区三区1314| 国产精品日韩成人| 国产精品毛片大码女人| 亚洲国产精品v| 国产精品五月天| 亚洲国产精品传媒在线观看| 亚洲国产精品av| 亚洲国产精品成人综合 | 亚洲aaa精品| 亚洲另类在线制服丝袜| 亚洲日本电影在线| 亚洲精品一二三区| 亚洲男同性恋视频| 一二三区精品视频| 天堂久久久久va久久久久| 亚洲国产精品综合小说图片区| 亚洲午夜在线电影| 日韩影院在线观看| 毛片不卡一区二区| 国产一区二区三区免费观看| 国产精品性做久久久久久| 高清在线观看日韩| jizzjizzjizz欧美| 91成人看片片| 欧美一区午夜视频在线观看| 日韩免费一区二区三区在线播放| 精品国产一区二区三区不卡 | 亚洲一区影音先锋| 男女激情视频一区| 国产一区二区看久久| 丁香六月久久综合狠狠色| 91性感美女视频| 欧美精品在线视频| 久久久综合视频| 亚洲另类中文字| 蜜臀精品久久久久久蜜臀| 国产高清一区日本| 91精品福利视频| 日韩精品专区在线影院重磅| 91成人免费网站| 精品日韩在线观看| 亚洲欧洲三级电影| 日日夜夜一区二区| 成人综合在线视频| 在线成人高清不卡| 欧美激情在线看| 亚洲午夜免费福利视频| 国产专区综合网| 成人aa视频在线观看| 欧美日本一区二区在线观看| 久久久精品蜜桃| 亚洲一区二区三区精品在线| 免费成人你懂的| 色悠悠久久综合| 精品久久国产97色综合| 亚洲免费观看视频| 精品综合免费视频观看| 色国产综合视频| 亚洲精品一区二区三区99| 一区二区三区在线观看欧美| 国产最新精品精品你懂的| 欧美日韩一区国产| 国产精品久久久久久久久搜平片 | 日韩中文欧美在线| bt欧美亚洲午夜电影天堂| 91精品啪在线观看国产60岁| 亚洲摸摸操操av| 国产91清纯白嫩初高中在线观看| 欧美日韩黄色一区二区| 中文字幕一区二区三区不卡在线| 免费成人在线影院| 欧美三级一区二区| 日韩美女啊v在线免费观看| 国产一区二区视频在线播放| 欧美日韩不卡一区二区| 亚洲人成网站影音先锋播放| 国产精品羞羞答答xxdd | 亚洲欧美日韩小说| 国产高清不卡一区二区| 欧美久久久久久久久中文字幕| 成人免费一区二区三区视频| 国产一区在线观看视频| 欧美一区二区三区思思人| 亚洲女同一区二区| 成人精品视频一区| 久久精品亚洲国产奇米99| 久久精品99国产精品日本| 欧美人妇做爰xxxⅹ性高电影| 成人欧美一区二区三区黑人麻豆 | 激情综合亚洲精品| 欧美一区二区性放荡片| 亚洲成av人影院在线观看网| 在线观看成人小视频| 亚洲人成精品久久久久久| 99久久精品国产一区二区三区| 久久久精品影视| 国产v综合v亚洲欧| 国产日韩精品一区二区三区| 国产米奇在线777精品观看| 26uuu国产电影一区二区| 久久精品国产免费| 精品国产一区二区在线观看| 久久爱另类一区二区小说| 欧美电影免费提供在线观看| 麻豆91在线播放| 精品国产第一区二区三区观看体验 | 国产乱一区二区| 亚洲精品在线观| 国产成人在线色| 国产精品乱人伦| 97久久超碰国产精品电影| 亚洲视频一区二区免费在线观看 | 欧美成人三级在线| 久久成人免费网| 国产日韩综合av| 97精品久久久午夜一区二区三区| 亚洲日本免费电影| 欧美三片在线视频观看| 秋霞午夜鲁丝一区二区老狼| 欧美xxxxxxxxx| 大胆欧美人体老妇| 亚洲精品久久久蜜桃| 欧美巨大另类极品videosbest| 日本成人在线看| 国产三级一区二区三区| 成人av一区二区三区| 尤物视频一区二区| 91精品国产综合久久小美女| 麻豆成人91精品二区三区| 欧美国产激情一区二区三区蜜月| 91视频在线看| 蜜桃视频免费观看一区| 国产日本亚洲高清| 色综合夜色一区| 男人的天堂亚洲一区| 国产目拍亚洲精品99久久精品| 色综合久久天天综合网| 日韩精品一二三四| 国产日产欧美一区| 欧美日韩免费高清一区色橹橹| 久久国产精品无码网站| 国产女人18水真多18精品一级做| 色综合天天综合狠狠| 久久成人久久鬼色| 亚洲精品国产无天堂网2021 | 亚洲欧美视频在线观看| 91精品麻豆日日躁夜夜躁| 成人亚洲精品久久久久软件| 性久久久久久久久久久久| 久久久久9999亚洲精品| 欧美性大战xxxxx久久久| 国产一区二区成人久久免费影院| 一区二区三区在线高清| 欧美成人性福生活免费看| 色哟哟亚洲精品| 国产一级精品在线| 偷拍一区二区三区| 中文字幕制服丝袜成人av | 久久色在线观看| 欧美伊人精品成人久久综合97| 激情文学综合网| 天天综合天天综合色| 国产精品久久久久四虎| 日韩一区二区免费视频| 色猫猫国产区一区二在线视频| 91免费国产在线| 久久99精品久久只有精品| 亚洲精品综合在线| 国产欧美精品一区二区色综合| 欧美日本高清视频在线观看| 91色porny|