如何将Flash(.swf)放在页面中? [英] how to put flash (.swf) in a page?

查看:317
本文介绍了如何将Flash(.swf)放在页面中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算使用.swf文件作为标题。这是行不通的。

 < img src =exactheader.swfwidth =650height =140 /> 

你能告诉我怎么做吗?

< embed> 标记将Flash文件嵌入到HTML页面中:

 < object width =650height =140> 
< param name =movievalue =exactheader.swf>
< embed src =exactheader.swfwidth =650height =140> < /嵌入>
< / object>

编辑:正如Russ所指出的,我只是找到了资源同时使用对象和嵌入标签此处
$ b


在上面的代码中,有一个
标签和一个< object>标签。这个
是因为Internet Explorer识别的
标签,而
Netscape识别< embed>标记
并忽略< object>标记。 b $ b


i'm planning to use a .swf file as a header. this won't work.

<img src="exactheader.swf" width="650" height="140" />

can you tell me how?

解决方案

You should use <embed> tag to embed flash files to an html page :

<object width="650" height="140">
  <param name="movie" value="exactheader.swf">
  <embed src="exactheader.swf" width="650" height="140"> </embed>
</object>

EDIT : As Russ pointed, I just found the resource why we should use both object and embed tags here.

In the code above there is both an tag and an <object> tag. This is because the tag is recognized by Internet Explorer, and Netscape recognizes the <embed> tag and ignores the <object> tag.

这篇关于如何将Flash(.swf)放在页面中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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