DeSi
12-15-2003, 09:15 PM
im tryin too put music on my web site in the background .......i tryed on java but i don't get it how does it work.......can some1 tell me how to use it .......gave a EX
|
Click to See Complete Forum and Search --> : music code DeSi 12-15-2003, 09:15 PM im tryin too put music on my web site in the background .......i tryed on java but i don't get it how does it work.......can some1 tell me how to use it .......gave a EX Daniel T 12-15-2003, 09:33 PM theres a part of your message i didnt get, but neway, u dont have 2 use jave 2 embed a backgrounsound into a webpage. here is the html code: if u want the sound 2 only play when the page is maximized, use this code: <bgsound hidden=true src="yoursound" autostart=true loop=*> if u want the sound 2 play even if the page is minimized, use the following code insted: <embed hidden=true src="yoursound" autostart=true loop=*> * change this 2 the number of times u want ur sound 2 play through - 1. ex: if u want the sound 2 play once, use 0 as the loop value. if u want ur sound 2 play twice, use 1 as the loop value. if u want ur song to never stop playing, use the word "infinite" as the loop value. Jeff Mott 12-15-2003, 09:58 PM Just my personal preference: adding background music to your site is a bad idea. I am usually listening to my own music when at the computer. When yours starts up and mixes in with mine it is going to sound horrible. And so I have the choice of turning off my own music or turning off yours... guess which one I'm gonna choose. And since it is almost always the case that turning off the site's music means closing out of the whole site, it is a very effective way to drive off visitors. DarkScythe 12-15-2003, 11:26 PM well, actually, sometimes there are some interesting songs out there. I usually pause my music to take a quick 5-10 second preview of the background music presented to me. If i like it, well all's good. if I don't a quick click of the "stop" button fixes that i believe.. tho I usually code in a pause or stop button when i put up midis. in response to the poster though, I do have a random music script that I have stowed away somewhere. I compiled it using 3 separate codes off javascript.com or something. I'll have to look for it tomorrow though, because my previous host had my only updated copy and for some reason it went kaput (well, that's free hosts for you) and ate it. Though, i gather it would be more helpful if you stated what your intentions are for the music.. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |