flex 嵌入 iframe 点iframe 外面的区域 iframe会消失。 解决方法
flex 嵌入 iframe 点iframe 外面的区域 iframe会消失。。 解决办法
http://hi.baidu.com/qiyangyang2009/blog/item/ebc9731d72b2a98587d6b685.html RIA知识库? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ??????????? / /在嵌入flex的html页面中加入这个, ?????????? //object里有个?? wmode的属性,你把他设为透明就行了。 ????????????params.wmode="transparent"; ?params.quality = "high"; ??????????? params.bgcolor = "#ffffff"; ??????????? params.allowscriptaccess = "sameDomain"; ??????????? params.allowfullscreen = "true"; ??????????? var attributes = {}; ??????????? attributes.id = "timeline"; ??????????? attributes.name = "timeline"; ??????????? attributes.align = "middle"; ??????????? swfobject.embedSWF( ??????????????? "timeline.swf","flashContent",? ??????????????? "100%","100%",? ??????????????? swfVersionStr,xiSwfUrlStr,? ??????????????? flashvars,params,attributes); ??? <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. --> ??? swfobject.createCSS("#flashContent","display:block;text-align:left;"); ??????? </script> ??? </head> ??? <body> ??????? <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough? ??? JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show ??? when JavaScript is disabled. ?? --> ??????? <div id="flashContent"> ??????? <p> ???????? To view this page ensure that Adobe Flash Player version? ???? 10.0.0 or greater is installed.? ??? </p> ??? <script type="text/javascript">? ???? var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");? ???? document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"? ???????? + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );? ??? </script>? ??????? </div> ???? ?????? <noscript> ??????????? <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="timeline"> ??????????????? <param name="movie" value="timeline.swf" /> ??????????????? <param name="quality" value="high" /> ??????????????? <param name="bgcolor" value="#ffffff" /> ??????????????? <param name="allowScriptAccess" value="sameDomain" /> ??????????????? <param name="allowFullScreen" value="true" /> ??????????????? <!--[if !IE]>--> ??????????????? <object type="application/x-shockwave-flash" data="timeline.swf" width="100%" height="100%"> ??????????????????? <param name="quality" value="high" /> ??????????????????? <param name="bgcolor" value="#ffffff" /> ??????????????????? <param name="allowScriptAccess" value="sameDomain" /> ??????????????????? <param name="allowFullScreen" value="true" /> ??????????????? <!--<![endif]--> ??????????????? <!--[if gte IE 6]>--> ??????????????? <p>? ??????????????? ?? Either scripts and active content are not permitted to run or Adobe Flash Player version ??????????????? ?? 10.0.0 or greater is not installed. ??????????????? </p> ??????????????? <!--<![endif]--> ??????????????????? <a href="http://www.adobe.com/go/getflashplayer"> ??????????????????????? <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" /> ??????????????????? </a> ??????????????? <!--[if !IE]>--> ??????????????? </object> ??????????????? <!--<![endif]--> ??????????? </object> ???? </noscript>?? ?? </body> </html> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |