ก่อนอื่นกด คำสั่งนี้ก่อน
แล้วจะเห็น code มากมาย ถ้ารู้เรื่อง code html คงร้องอ๋อ แต่ถ้าไม่รู้คงเอ๋อ... พอกดแล้วใส่ tag ดังนี้
<EMBED src="ที่อยู่ของไฟล์เพลง" autostart="true" hidden="false" loop="false" width="100" height="60" align="center">
รายละเอียด
autostart เปิดมาเริ่มเพลงเลยไหม?
hidden ไม่แน่ใจ
loop เพลงจบแล้วเล่นซ้ำไหม?
true ใช้คำสั่งนี้
false ไม่ใช้คำสั่งนี้
width ความกว้างของหน้าต่าง บอกเป็นตัวเลข เช่น 240 จะกำหนดเป็น pixel ถ้าบอกเป็น % (สูงสุด 100%) จะบอกขนาดเป็น %
height ความสูง บอกเป็นตัวเลข เช่น 240 จะกำหนดเป็น pixel ถ้าบอกเป็น % (สูงสุด 100%) จะบอกขนาดเป็น %
volume บอกเป็น % (สูงสุด 100%)
ส่วนเพลงที่ฝาก อาจจะฝากไว้ที่เว็บฟรีอย่าง se-ed.net หรือ thai.net แต่ไม่แน่ใจว่าจะฝากได้ไหม
ปล.เว็บใครใส่เพลงระวังคนอื่นจะเข้าไม่ได้นะ เพราะคนที่คอมสเปคต่ำ หรือเครื่องช้า เวลาเปิดหน้าที่มีเพลงจะกินแรมมากๆ และมีโอกาสแฮงค์สูง (error) ดังนั้น blog ใครใส่เพลงผมขอไม่เข้านะงับ(T-T แง คอมป๋มอืด แถมIE ก็รวน)
รายละเอียด
To add sounds to a web page... we will use the <EMBED> tag. This tag supports many common file formats... such as .wav, .mid, .mp3, and .au. Here is the basic structure of the tag:
<embed src="filename.ext" width="x" height="x" autoplay="x" hidden="x" loop="x" volume="x"></embed>
If you want the file to automatically play when the web page is loaded, set autoplay="true", if you do not want the file to automatically start, set autoplay="false". If you want the control box to be hidden, use the hidden="true" attribute. Normally the file will stop playing after it is completed the first time, so if you want it to start over once it is done use the attribute loop="true". You can set the volume setting with the volume attribute, a value from 1 to 100 (default is 50). The control box size that plays the sound can vary from browser to browser, but some versions of Netscape won't show the box at all unless you specify. (145 and 60 are usually good)
Example of the embed tag...
<embed src="http://www.davesite.com/webstation/html/davesite.wav" loop="true" autoplay="false" width="145" height="60"></embed>
NOTE: Because this embed tag was not set to autoplay="true", you will need to click the play button to play the sound file.
You may use multiple embed tags within one page, but it is recommended to never set more than one on autoplay. It is also not recommended to use .wav or .au files in the embed tag, because they are very large and take a few minutes to download. (.mp3 also falls into the category of "too large to use".)
เอามาจาก : http://www.davesite.com/webstation/html/chap13.shtml
ยังมีเว็บอื่นๆ อีกเช่น
http://www.webreference.com/js/column20/embed.html
http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html
แต่ search จาก google เจอบานเลย
http://www.google.com/search?q=code+html+%3Cembed%3E&hl=en&lr=&client=opera&rls=en&start=10&sa=N
แล้วจะเห็น code มากมาย ถ้ารู้เรื่อง code html คงร้องอ๋อ แต่ถ้าไม่รู้คงเอ๋อ... พอกดแล้วใส่ tag ดังนี้
<EMBED src="ที่อยู่ของไฟล์เพลง" autostart="true" hidden="false" loop="false" width="100" height="60" align="center">
รายละเอียด
autostart เปิดมาเริ่มเพลงเลยไหม?
hidden ไม่แน่ใจ
loop เพลงจบแล้วเล่นซ้ำไหม?
true ใช้คำสั่งนี้
false ไม่ใช้คำสั่งนี้
width ความกว้างของหน้าต่าง บอกเป็นตัวเลข เช่น 240 จะกำหนดเป็น pixel ถ้าบอกเป็น % (สูงสุด 100%) จะบอกขนาดเป็น %
height ความสูง บอกเป็นตัวเลข เช่น 240 จะกำหนดเป็น pixel ถ้าบอกเป็น % (สูงสุด 100%) จะบอกขนาดเป็น %
volume บอกเป็น % (สูงสุด 100%)
ส่วนเพลงที่ฝาก อาจจะฝากไว้ที่เว็บฟรีอย่าง se-ed.net หรือ thai.net แต่ไม่แน่ใจว่าจะฝากได้ไหม
ปล.เว็บใครใส่เพลงระวังคนอื่นจะเข้าไม่ได้นะ เพราะคนที่คอมสเปคต่ำ หรือเครื่องช้า เวลาเปิดหน้าที่มีเพลงจะกินแรมมากๆ และมีโอกาสแฮงค์สูง (error) ดังนั้น blog ใครใส่เพลงผมขอไม่เข้านะงับ(T-T แง คอมป๋มอืด แถมIE ก็รวน)
รายละเอียด
To add sounds to a web page... we will use the <EMBED> tag. This tag supports many common file formats... such as .wav, .mid, .mp3, and .au. Here is the basic structure of the tag:
<embed src="filename.ext" width="x" height="x" autoplay="x" hidden="x" loop="x" volume="x"></embed>
If you want the file to automatically play when the web page is loaded, set autoplay="true", if you do not want the file to automatically start, set autoplay="false". If you want the control box to be hidden, use the hidden="true" attribute. Normally the file will stop playing after it is completed the first time, so if you want it to start over once it is done use the attribute loop="true". You can set the volume setting with the volume attribute, a value from 1 to 100 (default is 50). The control box size that plays the sound can vary from browser to browser, but some versions of Netscape won't show the box at all unless you specify. (145 and 60 are usually good)
Example of the embed tag...
<embed src="http://www.davesite.com/webstation/html/davesite.wav" loop="true" autoplay="false" width="145" height="60"></embed>
NOTE: Because this embed tag was not set to autoplay="true", you will need to click the play button to play the sound file.
You may use multiple embed tags within one page, but it is recommended to never set more than one on autoplay. It is also not recommended to use .wav or .au files in the embed tag, because they are very large and take a few minutes to download. (.mp3 also falls into the category of "too large to use".)
เอามาจาก : http://www.davesite.com/webstation/html/chap13.shtml
ยังมีเว็บอื่นๆ อีกเช่น
http://www.webreference.com/js/column20/embed.html
http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html
แต่ search จาก google เจอบานเลย
http://www.google.com/search?q=code+html+%3Cembed%3E&hl=en&lr=&client=opera&rls=en&start=10&sa=N
~