IE中facebook对话后Flash应用不会重新出现
Internet explorer用flash内容覆盖facebook对话框,这是当用户单击打开对话框时隐藏任何flash内容的常见解决方案 闪存正在隐藏,但不会再次出现,以下是我的代码:IE中facebook对话后Flash应用不会重新出现,facebook,flash,internet-explorer,Facebook,Flash,Internet Explorer,Internet explorer用flash内容覆盖facebook对话框,这是当用户单击打开对话框时隐藏任何flash内容的常见解决方案 闪存正在隐藏,但不会再次出现,以下是我的代码: function postToWall(postName,postCaption,postDescription,postPicture,postLink) { hideFlash(); FB.ui({ method: 'feed', name: postNam
function postToWall(postName,postCaption,postDescription,postPicture,postLink) {
hideFlash();
FB.ui({
method: 'feed',
name: postName,
caption: postCaption,
access_token: '<?php echo $accessToken ?>',
description: postDescription,
picture: postPicture,
link: postLink,
display: 'iframe'
},
function (response) {
showFlash();
var swf = swfobject.getObjectById("flashContent");
swf.postToWallCallback(response);
});
return false;
}
function hideFlash(){
var flashContent = document.getElementById("flashContent");
flashContent.style.visibility = "hidden";
}
function showFlash(){
var flashContent = document.getElementById("flashContent");
flashContent.style.visibility = "visible";
}
函数postToWall(postName、postCaption、postDescription、postPicture、postLink){
hideFlash();
FB.ui({
方法:“提要”,
姓名:postName,,
描述:后适应,
访问\u令牌:“”,
描述:postDescription,
图片:后期,
链接:postLink,
显示:“iframe”
},
功能(响应){
showFlash();
var swf=swfobject.getObjectById(“flashContent”);
swf.postToWallCallback(响应);
});
返回false;
}
函数hideFlash(){
var flashContent=document.getElementById(“flashContent”);
flashContent.style.visibility=“隐藏”;
}
函数showFlash(){
var flashContent=document.getElementById(“flashContent”);
flashContent.style.visibility=“可见”;
}
我通过浏览器检查解决了这个问题,然后对任何版本的IE使用display:“popup”