多媒體頁面
嵌入多媒體文本(EMBED)
基本語法 <embed src=#> #=URL
本標記能夠用來在主頁中嵌入多媒體文本,如:
電影(movie), 聲音(sound), 虛擬現實語言(vrml)... ...
體會 <embed> 標記,您須要把 plugin 安裝完備。
請注意:embed attributes are different between each plugins.
背景音樂 ![](http://static.javashuo.com/static/loading.gif)
<bgsound src=#> #=WAV 文件的 URL
<bgsound loop=#> #=循環數
-
<bgsound src="sound.wav" loop=3>
插入視頻剪輯 ![](http://static.javashuo.com/static/loading.gif)
<img src="url.gif" dynsrc="url.avi">
用 url.avi 這一 AVI(Video for MS-WINDOWS) 文件來播放視頻;
用 url.gif 這一 GIF 圖象做爲視頻的封面,即:在瀏覽器
還沒有徹底讀入 AVI 文件時,先在 AVI 播放區域顯示該圖象。
-
<img src="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="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" start=mouseover>
控制條 <img controls>
用來在視頻窗口下附加 MS-WINDOWS 的 AVI 播放控制條。
-
<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" controls>
循環播放 <img loop=#>
<loop=infinite> 將循環播放不止。
-
<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" loop=3>
延時 <img loopdelay=#> #=毫秒數
-
<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI"
![](http://static.javashuo.com/static/loading.gif)