多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun,...

18
多多 多多多 • 多多 • 多多 • 多多

Transcript of 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun,...

Page 1: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

多媒體的網頁• 聲音• 影片• 圖片

Page 2: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

音效檔的格式格式 plateform extension

-law, AU Sun, NeXT .au

AIFF/AIFC Macintosh .aiff, .aif

SND Macintosh .snd

WAVE Windows .wav

MIDI ALL .mid, .midi

AIFF: Audio Interchange File FormatAIFC: Audio Interchange File format with Compression

Page 3: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

將音效加入網頁中<EMBEDSRC= [URL] AUTOSTART=[TRUE|FALSE]

LOOP=[TRUE|FALSE|INTEGER] STARTTIME=[MINUTES:SECONDS]

ENDTIME=[MINUTES|SECONDS] VOLUME=[0-100] WIDTH=[# PIXELS]

HEIGHT=[# PIXELS]

ALIGN=[TOP|BOTTOM|CENTER|BASELINE|LEFT|RIGHT

|TEXTTOP|MIDDLE|ABSMIDDLE|ABSBOTTOM]

CONTROLS=[CONSOLE|SMALL|CONSOLE|PLAYBUTTON|

PAUSEBUTTON|STOPBUTTON|VOLUMELEVER]

HIDDEN=[TRUE] MASTERSOUND NAME=[UNIQUE NAME TO GROUP

CONTROLS TOGETHER SO THAT THEY CONTROL ONE SOUND]...>

Page 4: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

SRCSRC=[URL] - The URL of the source sound file.

AUTOSTARTAUTOSTART=[TRUE|FALSE] - Setting the value to TRUE allows the sound, music, or voice to begin playing automatically when the Web page is loaded. The default is FALSE.

LOOPLOOP=[TRUE|FALSE|INTEGER] - Setting the value to TRUE allows the sound to play continuously until the stop button is clicked on the console or the user goes to another page. If an INTEGER value is used, the sound repeats the number of times indicated by the integer.

STARTTIMESTARTTIME=[MINUTES:SECONDS] - Use STARTTIME to designate where in the sound file you would like playback to begin. If you want to begin the sound at 30 seconds, you would set the value to 00:30 (implemented only on Windows 95, NT, and Macintosh).

Page 5: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

ENDTIME=[MINUTES:SECONDS] - Use ENDTIME to designate where in the sound file you would like playback to end. If you want to stop the sound at 1.5 minutes, you would set the value to 01:30 (implemented only on Windows 95, NT, and Macintosh).

VOLUME=[0-100] - This value must be a number between 0 and 100 to represent 0 to 100 percent. This attribute sets the volume for the sound that is playing [unless the MASTERVOLUME (see NAME attribute below) is used, then this value sets the sound for the entire system]. The default volume level is the current system volume.

WIDTH=[# PIXELS] - This attribute is used to display the width of the console or console element. For the CONSOLE and SMALLCONSOLE, the default is WIDTH=144. For the VOLUMELEVER, the default is WIDTH=74. For a button, the default is WIDTH=37.

Page 6: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

HEIGHT=[#PIXELS] - This attribute is used to display the height of the console. For the CONSOLE, the default is HEIGHT=60. For the SMALLCONSOLE, the default is HEIGHT=15. For the VOLUMELEVER, the default is HEIGHT=20. For a button, the default is HEIGHT=22.

ALIGN=[TOP|BOTTOM|CENTER|BASELINE|LEFT|RIGHT| TEXTTOP| MIDDLE|ABSMIDDLE|ABSBOTTOM] - This attribute tells Netscape Navigator how you want to align text as it flows around the consoles. It acts similarly to the IMG tag.

CONTROLS=[CONSOLE|SMALLCONSOLE|PLAYBUTTON| PAUSEBUTTON|STOPBUTTON|VOLUMELEVER] - This attribute defines which control a content creator wishes to use. The default for this field is CONSOLE.

Page 7: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

HIDDEN=[TRUE] - The value for this attribute should be TRUE, or it should not be included in the EMBED tag. If it is specified as TRUE, no controls will load and the sound will act as a background sound.

MASTERSOUND - This value must be used when grouping sounds together in a NAME group. This attribute takes no value (it must merely be present in the EMBED tag), but tells LiveAudio which file is a genuine sound file and allows it to ignore any stub files. Stub files have a minimum length necessary to activate LiveAudio.

Page 8: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

NAME=[UNIQUE NAME TO GROUP CONTROLS TOGETHER SO THAT THEY CONTROL ONE SOUND] - This attribute sets a unique ID for a group of CONTROLS elements, so they all act on the same sound as it plays. For example, if a content creator wishes to have one sound controlled by two embedded objects (a PLAYBUTTON and a STOPBUTTON), they must use this attribute to group the CONTROLS together. In this case, the MASTERSOUND tag is necessary to flag LiveAudio and let it know which of the two EMBED tags actually has the sound file you wish to control. LiveAudio ignores any EMBED(s) with no MASTERSOUND tag.

If you want one VOLUMELEVER to control multiple NAMEs (or the system volume), create an EMBED using the VOLUMELEVER CONTROL. Then set NAME to MASTERVOLUME.

Page 9: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

To play a sound as a background sound for a Web page:

<EMBED SRC="mysound.aif" HIDDEN=TRUE>

Page 10: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

To have several CONTROLS controlling one sound file:

<EMBED SRC="mysound.aif" HEIGHT=22 WIDTH=37 CONTROLS=PLAYBUTTON NAME="MyConsole” MASTERSOUND>

<EMBED SRC="stub1.aif" HEIGHT=22 WIDTH=37 CONTROLS=PAUSEBUTTON NAME="MyConsole">

<EMBED SRC="stub2.aif" HEIGHT=22 WIDTH=37 CONTROLS=STOPBUTTON NAME="MyConsole">

<EMBED SRC="stub3.aif" HEIGHT=20 WIDTH=74 CONTROLS=VOLUMELEVER NAME="MyConsole">

Page 11: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

To use a SMALLCONSOLE:

<EMBED SRC="mysound.aif" HEIGHT=15

WIDTH=144 MASTERSOUND

CONTROLS=SMALLCONSOLE>

Page 12: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

加入背景音效( for IE)

<BGSOUND

SRC = URL

LOOP = integer | INFINITE >

<BGGROUND SRC=“audio/tadum.wav” LOOP=10>

<BGGROUND SRC=“audio/tadum.wav” LOOP=INFINITE>

Page 13: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

影片檔的格式

格式 plateform extension

QuickTime Macintosh .qt, .mov

Video for Windows .aviWindows

MPEG ALL .mpeg, .mpg

MPEG: Moving Picture Experts Group

Page 14: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

如何將影片加入網頁中?<EMBED

SRC=[URL]

AUTOSTART=[TRUE|FALSE]

LOOP=[TRUE|FALSE]

WIDTH=[# PIXELS]

HEIGHT=[# PIXELS]

ALIGN=[TOP|BOTTOM|CENTER|BASELINE|LEFT|

RIGHT|TEXTTOP|MIDDLE|ABSMIDDLE|

ABSBOTTOM]...>

Page 15: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

SRC=[URL] - The URL of the source AVI file.

AUTOSTART=[TRUE|FALSE] - Setting the value to TRUE allows the AVI movie to begin playing automatically when the Web page is loaded. The default is FALSE.

LOOP=[TRUE|FALSE] - Setting the value to TRUE allows the AVI movie to play continuously until the user clicks on the movie to stop it from playing or goes to another page. The default is FALSE.

WIDTH=[# PIXELS] - Use this attribute to display the width of the AVI movie.

Page 16: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

HEIGHT=[# PIXELS] - Use this attribute to display the height of the AVI movie. Standard sizes for movies are 90x120, 120x160, 180x240, and 240x320 (all size references are HEIGHT x WIDTH). These are all standard sizes using the 4:3 aspect ratio.

ALIGN=[TOP|BOTTOM|CENTER|BASELINE|LEFT| RIGHT|TEXTTOP|MIDDLE|ABSMIDDLE| ABSBOTTOM] - This attribute tells Netscape Navigator how you want to align text as it flows around the AVI movie. It acts similarly to the IMG tag.

Page 17: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

將影片加入網頁中( IE only)

<IMG

DYNSRC = URL ( AVI 檔) CONTROLS

LOOP = integer | INFINITE

LOOPDELAY = n (ms)

START= FILEOPEN|MOUSEOVER >

Page 18: 多媒體的網頁 聲音 影片 圖片. 音效檔的格式 格式 plateformextension -law, AUSun, NeXT.au AIFF/AIFCMacintosh.aiff,.aif SNDMacintosh.snd WAVEWindows.wav MIDIALL.mid,.midi

圖片的格式GIF87 256 .gif, .GIF

GIF89a 256 .gif, .GIF 透明圖和交錯格式JPEG 224 .jpg, .jpeg 全彩和高壓縮率PNG 232 .png

GIF: Graphics Interchange Format

JPEG: Joint Photographic Expert Group

PNG: Portable Network Graphics