对象和EMBED [英] OBJECT and EMBED

查看:46
本文介绍了对象和EMBED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个页面纳入HTML 4合规性,但我不能理解有关我在帮助中阅读的< OBJECTtag的信息

网站。我在页面中有这个:

< embed src =" soundfile.mov"自动启动= QUOT;真" loop =" false"

hidden =" true"< / embed>


如何以符合HTML 4的方式实现此效果?

I''d like to bring a page into HTML 4 compliance, but I can''t
understand the information about the <OBJECTtag that I read at help
sites. I have this in a page:
<embed src="soundfile.mov" autostart="true" loop="false"
hidden="true"</embed>

How do I accomplish that effect in an HTML 4 compliant way?

推荐答案

Scripsit Ben Sharvy:
Scripsit Ben Sharvy:

我想要将页面纳入HTML 4合规性,
I''d like to bring a page into HTML 4 compliance,



不要打扰。但是根据HTML 4.01 Strict写_new_页面,除非

你有充分的理由偏离。 (合理的价格可以从我这里得到合理的价格。:-))

Don''t bother. But write _new_ pages according to HTML 4.01 Strict, unless
you have good reasons to deviate. (Good reasons available for a reasonable
price from me. :-) )


但是我不能

了解有关我在帮助

网站上阅读的< OBJECTtag的信息。
but I can''t
understand the information about the <OBJECTtag that I read at help
sites.



然后检查规范。经常尝试一些不好的教程之后,如果你看一下原来的规格,就会神奇地变得清晰。

Check the specification then. Quite often, after trying some poor tutorials,
things magically become clear if you look at the original specifications.


< embed src = " soundfile.mov"自动启动= QUOT;真" loop =" false"

hidden =" true"< / embed>


如何以符合HTML 4的方式实现此效果?
<embed src="soundfile.mov" autostart="true" loop="false"
hidden="true"</embed>

How do I accomplish that effect in an HTML 4 compliant way?



< object data =" soundfile.mov"宽度= QUOT; 0" height =" 0">< / object>


HTML 4中没有自动启动和循环属性的对应物。


根据严肃创作联盟的规定*),我有义务

提到自动启动一些声音或视频会让很多人自动离开

和其他人受到干扰。我只是讨厌一些蹩脚的音乐。意外地

干扰我听Sibelius。


*)我刚刚创立。


-

Jukka K. Korpela(Yucca)
http://www.cs.tut.fi/~jkorpela/

<object data="soundfile.mov" width="0" height="0"></object>

There''s no counterpart in HTML 4 for the autostart and loop attributes.

According to regulations of the No-nonsense Authoring League*), I am obliged
to mention that autostarting some sound or video makes many people autoleave
and others disturbed. I just hate it when some crappy "music" unexpectedly
interferes with my listening to Sibelius.

*) which I just founded.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


2007年6月19日星期二06:07 :40 -0700,Ben Sharvy< sp ****** @ hotmail.com>

写道:
On Tue, 19 Jun 2007 06:07:40 -0700, Ben Sharvy <sp******@hotmail.com>
wrote:

> I 我希望将页面纳入HTML 4合规性,
>I''d like to bring a page into HTML 4 compliance,


>< embed src =" soundfile.mov"自动启动= QUOT;真" loop =" false"
hidden =" true"< / embed>
><embed src="soundfile.mov" autostart="true" loop="false"
hidden="true"</embed>



保持为< embed在HTML 4中没有直接的等价物< embed>

比替代品效果更好。 <嵌入

用户桌面上的内容,并要求它选择一个播放器。基于HTML标准的

方法选择播放器并希望它们是未知计算机上最好和最优惠的b $ b适当的选择。


由于背景音乐或视频与W3C对于文件应该如何工作的看法相反,所以实际上没有实际机会获得/>
一个同样好的实现_and_符合标准。这么久

你知道多少你不符合要求以及结果是什么?b $ b(在这种情况下,可以忽略不计)然后你没有担心完全符合


Keep it as <embed There''s no direct equivalent in HTML 4 and <embed>
works better than the alternatives. <embedthrows content at the
user''s desktop and asks it to choose a player. The HTML standards-based
approaches select the player(s) and hope they''re the best and most
appropriate choice on an unknown computer.

As background music or video is so contrary to the W3C''s view of how eb
documents ought to work, there''s really no practical chance of getting
an equally good implementation _and_ conforming to the standard. So long
as you know by how much you''re non-conformant and what the results are
(in this case, negligible) then you don''t have to worry about being
fully conformant.


Jukka K. Korpela< jk ****** @ cs.tut.fiwrote:
Jukka K. Korpela <jk******@cs.tut.fiwrote:

< object data =" soundfile.mov"宽度= QUOT; 0" height =" 0">< / object>

HTML 4中没有自动启动和循环属性的对应物。
<object data="soundfile.mov" width="0" height="0"></object>

There''s no counterpart in HTML 4 for the autostart and loop attributes.



我认为param元素应该用于此:


< object data =" soundfile.mov"宽度= QUOT; 0" height =" 0">

< param name =" autostart" value =" true">

< param name =" loop" value =" false">

< / object>

-

Alexander

I think the "param" element should be used for this:

<object data="soundfile.mov" width="0" height="0">
<param name="autostart" value="true">
<param name="loop" value="false">
</object>
--
Alexander


这篇关于对象和EMBED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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