1 / 18

多媒體的網頁

多媒體的網頁. 聲音 影片 圖片. 音效檔的格式. 格式 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 Format AIFC: Audio Interchange File format with Compression. 將音效加入網頁中.

ewan
Télécharger la présentation

多媒體的網頁

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. 音效檔的格式 格式 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 Format AIFC: Audio Interchange File format with Compression

  3. 將音效加入網頁中 <EMBEDSRC= [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]...>

  4. SRC=[URL] - The URL of the source sound file. AUTOSTART=[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. LOOP=[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. STARTTIME=[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).

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. To play a sound as a background sound for a Web page: <EMBED SRC="mysound.aif" HIDDEN=TRUE>

  10. 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">

  11. To use a SMALLCONSOLE: <EMBED SRC="mysound.aif" HEIGHT=15 WIDTH=144 MASTERSOUND CONTROLS=SMALLCONSOLE>

  12. 加入背景音效(for IE) <BGSOUND SRC = URL LOOP = integer | INFINITE > <BGGROUND SRC=“audio/tadum.wav” LOOP=10> <BGGROUND SRC=“audio/tadum.wav” LOOP=INFINITE>

  13. 影片檔的格式 格式 plateform extension QuickTime Macintosh .qt, .mov Video for Windows .avi Windows MPEG ALL .mpeg, .mpg MPEG: Moving Picture Experts Group

  14. 如何將影片加入網頁中? <EMBED SRC=[URL] AUTOSTART=[TRUE|FALSE] LOOP=[TRUE|FALSE] WIDTH=[# PIXELS] HEIGHT=[# PIXELS] ALIGN=[TOP|BOTTOM|CENTER|BASELINE|LEFT| RIGHT|TEXTTOP|MIDDLE|ABSMIDDLE| ABSBOTTOM]...>

  15. 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.

  16. 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.

  17. 將影片加入網頁中(IE only) <IMG DYNSRC = URL (AVI 檔) CONTROLS LOOP = integer | INFINITE LOOPDELAY = n (ms) START= FILEOPEN|MOUSEOVER >

  18. 圖片的格式 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

More Related