嵌入 Flash SWF
我正在尝试为一个班级项目制作该网站的模型:http://www.smokeybear。 com/campfire-safety.asp
我已经加载了所有元素,但我似乎无法让它加载位于烧毁的大约英亩数正上方的 flash\clock.swf > 关于右侧。
由于我的硬盘上没有本地保存的 swf 副本,因此我尝试将其重新路由到 swf 的实际 url。当前显示的是计数器的灰色空间,没有橙色数字。这是页面源代码中的代码片段:
<script type="text/javascript" language="JavaScript">getCounterFlash()</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="190" height="45" id="clock" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://www.smokeybear.com/flash/clock.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="http://www.smokeybear.com/flash/clock.swf" quality="high" bgcolor="#000000" width="190" height="45" name="clock" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
这是来自 js 的 getCounterFlash():
function getCounterFlash() {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="190" height="45" id="clock" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.smokeybear.com/flash/clock.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="opaque"><embed src="http://www.smokeybear.com/flash/clock.swf" quality="high" bgcolor="#ffffff" width="190" height="45" id="clock" name="clock" align="middle" allowScriptAccess="sameDomain" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}
还没有真正玩过太多嵌入式 Flash 对象,所以有人可以建议我应该更改哪些值才能使其像它一样工作吗?正在原始网站上工作吗?谢谢。
I am trying to make a mockup of this website for a class project: http://www.smokeybear.com/campfire-safety.asp
I have all the elements loaded just fine, except I can't seem to make it load the flash\clock.swf right above the Approximate number of acres burned on the right-hand side.
Since I don't have a copy of the swf saved locally on my hard drive, I was trying to reroute it to the actual url of the swf. What it is currently showing is the grey space for the counter, without the orange numbers. Here is the clip of code from the page source:
<script type="text/javascript" language="JavaScript">getCounterFlash()</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="190" height="45" id="clock" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://www.smokeybear.com/flash/clock.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="http://www.smokeybear.com/flash/clock.swf" quality="high" bgcolor="#000000" width="190" height="45" name="clock" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
Here is the getCounterFlash() from the js:
function getCounterFlash() {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="190" height="45" id="clock" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.smokeybear.com/flash/clock.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="opaque"><embed src="http://www.smokeybear.com/flash/clock.swf" quality="high" bgcolor="#ffffff" width="190" height="45" id="clock" name="clock" align="middle" allowScriptAccess="sameDomain" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}
Haven't really played with embedded flash objects too much, so could anyone advise on what values I should change to get it to work like it is working on the original site? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可能不完全理解你的问题。
假设您已经测试了各种浏览器。
在我看来,你错过了第二条路。如果您查看原始版本,请查看以下示例:http://kb2.adobe。 com/cps/415/tn_4150.html
有两个 movie_name.swf
并且您有两个 js 关闭标签?
I may not entirely understand your problem.
Assuming you have tested various browsers.
Seems to me you are missing a second path. If you go to the originals, and look at this example: http://kb2.adobe.com/cps/415/tn_4150.html
there are two movie_name.swf
and you have two close tags for js?