首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

IE bug-appending hash to title when a page include any flash

2012-10-27 
IE bug--appending hash to title when a page include any flashWhat steps will reproduce the problem?

IE bug--appending hash to title when a page include any flash

What steps will reproduce the problem?
1. Including any flash in a page, dynamically or not
2. Redirecting to the page with a hash in its url http://url#hash
3. In IE7 the tabs and windows title are changed appending the #hash to the
window's/tab title

What is the expected output? What do you see instead?
In all other browsers the title remains unmodified, only in IE the #hash is
appended into the title.

What version of the product are you using? On what operating system?
All swfobject versions i tried will reproduce it

Please provide any additional information below.
This is a Flash reported bug and also in IE, after googling a bit I thought
that there was a way to make a workaround for this. I just added this timer
in the createSWF function, just for IE
// Try to clean windows title in IE
????// http://bugs.adobe.com/jira/browse/FP-240
????try{
?????var wT = doc.title // get the title before being bug
?????// clean the title if needed
?????if(wT.indexOf('#')!=-1) wT=wT.substring(0,wT.indexOf('#'));
?????var iv = setInterval(function () {
???????// Whenever its loaded just push in the old title again
???????if (r.readyState == 4) {
????????clearInterval(iv)
????????doc.title = wT;
???????}
??????}, 100)
????}
????catch(e){ }


Hope helps someone

热点排行