jQuery / Safari 显示/隐藏 Flash 问题
我在加载表单时使用显示/隐藏来加载“正在加载”flash 文件。
我试图显示的 div 包含一个 swf 文件
这在除 safari 之外的所有浏览器中都可以正常工作,单击提交按钮后不会显示 swf 文件
我在这里设置了一个测试... https://www.paydaygap.co.uk/test.php
我正在使用.. .
$('#form').show();
$('#loading').hide();
$('.sendform').click(function(){
$('#form').hide();
$('#loading').show();
});
单击 .sendform 时应显示的隐藏 div 是...
<div id="loading" style="padding:50px; text-align:center;">
<h1>This thing is loading</h1>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="300" >
<param name="movie" value="lightboxform/loading.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="lightboxform/loading.swf" width="300" height="300" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object>
</p>
非常感谢任何帮助
Im using show/hide to load a 'loading' flash file whilst a form loads.
The div im trying to show contains an swf file
This works fine in all browsers except safari, which does not show the swf file upon clicking the submit button
ive got a test set up here...
https://www.paydaygap.co.uk/test.php
Im using...
$('#form').show();
$('#loading').hide();
$('.sendform').click(function(){
$('#form').hide();
$('#loading').show();
});
and the hidden div which should show on clicking .sendform is...
<div id="loading" style="padding:50px; text-align:center;">
<h1>This thing is loading</h1>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="300" >
<param name="movie" value="lightboxform/loading.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="lightboxform/loading.swf" width="300" height="300" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object>
</p>
Any assistance greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为当容器隐藏时其他浏览器无法渲染 Flash。请尝试以下操作:
首先,不要显示加载 div,而是将其位置设置为绝对位置,并将其移出页面:
然后尝试以下操作:
I would think that the other browsers are failing to render the flash when the container is hidden. Try this instead:
First, instead of not showing the loading div, set it's position to absolute, and move it off the page:
Then try this:
乍一看,我想知道为什么你使用 old-skool 嵌入 flash,而不是用 javascript 插入它?
尝试使用 swfobject 或 flashembed (http://flowplayer.org/tools/toolbox/flashembed.html) 插入 Flash:
At first glance I'm wondering why you're using the old-skool embedding the flash rather than inserting it with javascript?
Try inserting the flash with swfobject or flashembed (http://flowplayer.org/tools/toolbox/flashembed.html) using: