嵌入 Flash SWF

发布于 2024-12-11 07:15:24 字数 2392 浏览 0 评论 0原文

我正在尝试为一个班级项目制作该网站的模型: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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只为一人 2024-12-18 07:15:24

我可能不完全理解你的问题。
假设您已经测试了各种浏览器。
在我看来,你错过了第二条路。如果您查看原始版本,请查看以下示例: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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文