ie中隐藏显示div中的flash不会重新播放(Hidden in IE shows that the div in flash will not be replayed).doc

ie中隐藏显示div中的flash不会重新播放(Hidden in IE shows that the div in flash will not be replayed).doc

  1. 1、本文档共12页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ie中隐藏显示div中的flash不会重新播放(Hidden in IE shows that the div in flash will not be replayed)

ie中隐藏显示div中的flash不会重新播放(Hidden in IE shows that the div in flash will not be replayed) In a project, the demand is HTML page click on the button will be in the way of BlockUI display contains a SWF animation DIV, click on SWF if this DIV can be hidden, if the user clicks on the HTML button again, the DIV will show up again and play SWF animation. In Chrome, the Firefox browser can achieve the above requirements, but to hide the DIV IE browser, and then display, which SWF does not seem to be re loaded, it will stay in the last frame last play, still do not know this is IE for Flash or Bug this is normal, after a to try out the solution way. Of course, can also be used in the SWF JavaScript call replay events to solve, but this is not the way to solve. The following is an example of the original HTML (excerpt): DOCTYPE HTML PUBLIC! -//W3C//DTD XHTML Transitional//EN /TR/xhtml1/DTD/xhtml1-transitional.dtd 1 html xmlns= /1999/xhtml head meta http-equiv= Content-Type content= text/html; charset=utf-8 / titleieF/title script type= text/javascript language= JavaScript Google.load (jQuery, 1); /script script src= Scripts/swfobject.js type= text/javascript /script script src= Scripts/jquery.blockUI.js type= text/javascript /script said style type= text/css #swf {display:none}; /style /head body div id= SWF div id= swfcontent /div /div a href= # /a animation /body /html Then, to use SWFObject embedded SWF player written in a Function JavaScript event: Function (showSwf) { Var = {flashvars}; Var params = {}; Params.wmode = transparent; Params.menu = true; Params.quality = high; Var attributes = FlashID {id:, name: FlashID}; Swfobject.embedSWF (flash.swf, swfcontent, 698, 608, 10.0.0, expressInstall.swf, flashvars, params, attributes); } Thinking about is this: Open: the page is loaded, embedded SWF player event (this event CSS is hidden) to SWF DIV, when the user clicks the animation button, display the SWF DIV by BlockUI. Closing click the SWF button in the BlockUI Clo

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档