|
|
|||||
|
|
How to Put Music in Web Page: You can also put music in your web page to make it more attractive to user.
There are two methods to put music in your web pages. 1. How to Put Background Music:You can play a music file when you page is loaded. The user can listen the sound with viewing the web page. The tag which can use to put the background music is <bgSound>. This tag is a single tag and have not any closing tag. The bgsound tag can be placed within the page anywhere. For example you can place it in header section even you can place it within body section. You can use all the music files supported by windows media player for internet Explorer. For example you can use .wav and .mid files. (work with IE 3.0 or later , Netscape All). Example:
You can put this line of tag also in between head section it will work.
2. How to Put Music which can played Manually: You can also play music files with click of your mouse in web pages.
This method Works with long size files and can play any type of extension
depending upon player installed in viewer's System.
Result:
Putting Embed Player in Web Page:
This will Looks Like this:
Attributes of Music Tags:Following are some attributes which can be used with bgsound or embeded player. 1. Src:With this attribute you can set the source music file name to bgsound or embeded player. For example:
2. LOOP: If you want that your music file repeat playing after playing then you
can use this loop attribute with music tags. For example if you want that your
file played 2 times then set loop="2" , if you want that your file loops
forever then set loop="-1".
3. Auto Start:This tag is used with embed player and it is used when you are wishing to play your music file on page load. If its value is set to false then file will not played on page load user have to manually play it by pressing the play button.
|
||||
![]()
Send mail to
fmuniversal@gmail.com with
questions or comments about this web site.
Copyright © 2006 FM Universal