多媒體頁面(Alternative Inline Elements)

來源:互聯網
上載者:User
媒體|頁面 嵌入多媒體文本(EMBED)

基本文法 <embed src=#> #=URL

本標記可以用來在首頁中嵌入多媒體文本,如:
電影(movie), 聲音(sound), 虛擬現實語言(vrml)... ...
體會 <embed> 標記,您需要把 plugin 安裝完備。
請注意:embed attributes are different between each plugins.

背景音樂

<bgsound src=#> #=WAV 檔案的 URL
<bgsound loop=#> #=迴圈數

<bgsound src="sound.wav" loop=3>

插入視訊剪輯

<img src="http://www.webjx.com/htmldata/2005-03-08/url.gif" dynsrc="url.avi">

用 url.avi 這一 AVI(Video for MS-WINDOWS) 檔案來播放視頻;
用 http://www.webjx.com/htmldata/2005-03-08/url.gif 這一 GIF 圖象作為視頻的封面,即:在瀏覽器
尚未完全讀入 AVI 檔案時,先在 AVI 播放地區顯示該圖象。
<img src="http://www.webjx.com/htmldata/2005-03-08/SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI">

何時開始播放 AVI <img start=#> #=fileopen, mouseover

預設值是 #=fileopen,即在連結到含本標記的頁面(如本頁)時開始播放 AVI。

mouseover 是指您把滑鼠移到 AVI 播放地區之上時才開始播放 AVI。

也可以兩者同時設定:<img start=fileopen,mouseover>

另外,用滑鼠在 AVI 播放地區點擊一下,也將令瀏覽器開始播放該 AVI。

<img src="http://www.webjx.com/htmldata/2005-03-08/SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" start=mouseover>

控制條 <img controls>

用來在視頻視窗下附加 MS-WINDOWS 的 AVI 播放控制條。
<img src="http://www.webjx.com/htmldata/2005-03-08/SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" controls>

迴圈播放 <img loop=#>

<loop=infinite> 將迴圈播放不止。

<img src="http://www.webjx.com/htmldata/2005-03-08/SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" loop=3>

延時 <img loopdelay=#> #=毫秒數

<img src="http://www.webjx.com/htmldata/2005-03-08/SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI"  loop=3 loopdelay=250>



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.