将.swf文件嵌入.html页面 [英] Embedding .swf files on an .html page

查看:359
本文介绍了将.swf文件嵌入.html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的网站(这是一个.swf文件)建立了一个介绍页面,我试图把它嵌入到.html文件中,但是html代码不允许我调整文件的大小(我想要该文件占用整个页面,所以我试图重置对象标记的高度和宽度部分为100% - 它没有工作)
有人告诉我,调整文件的最佳方式是使用JavaScript。

代码如下:

 < object classid =clsid:d27cdb6e-ae6d-11cf-96b8-444553540000codebase =http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0, 0,0width =550height =400id =elianas website introalign =middle> 
< param name =allowScriptAccessvalue =sameDomain/>
< param name =movievalue =intro.swf/>
< param name =qualityvalue =high/>
< param name =bgcolorvalue =#1C140D/>
< / object>


解决方案

您还需要提供对象也是如此。

 < object width =100%height =100%> 
< param name =movievalue =file.swf>
..
< embed src =intro.swfwidth =100%height =100%/>
< / object>


I've built an intro page for my website (it's a .swf file) and I'm trying to embed it into an .html file, but the html code won't allow me to resize the file (I want the file to take up the whole page, so I tried resetting the height and width parts of the object tag to 100% - it didn't work) someone told me that the best way to resize the file would be by using javascript. How would I do this?

the code is as follows:

<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="550" height="400" id="intro to elianas website" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="intro.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#1C140D" />
<embed src="intro.swf" quality="high" bgcolor="#1C140D" width="100%" height="100%" name="intro" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

解决方案

You also need to provide the height and width for the Object as well.

<object width="100%" height="100%">
    <param name="movie" value="file.swf">
    ..
    <embed src="intro.swf" width="100%" height="100%" />
</object>

这篇关于将.swf文件嵌入.html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆