Disable hash changing with flash anchor navigation

前端 未结 1 454
暗喜
暗喜 2021-01-26 17:01

If you specify anchors in frames of the flash movie, IE browser will change hash in address bar while playing it.

http://example.com/ --> http://example.com/#         


        
相关标签:
1条回答
  • 2021-01-26 17:54

    There will only be changes if you use the "Flash with named anchors" HTML template for export. It uses an ExternalInterface call to change the address. Remove these lines from the HTML page:

    <script language="JavaScript">
        function flashGetHref() { return location.href; }
        function flashPutHref(href) { location.href = href; }
        function flashGetTitle() { return document.title; }
        function flashPutTitle(title) { document.title = title; }
    </script>
    

    plus the named anchors inserted into the HTML code (<a name="...">), and there will no longer be any deep linking - unless the app uses SWFAddress, which you could simply remove from the JavaScript imports.

    0 讨论(0)
提交回复
热议问题