Guest Posted February 18, 2006 Posted February 18, 2006 Hi Guys, I am trying to input a music script into my site. I put it in the index.php file but i have a problem, Every time i click on a cat or link it restarts. I know there is far smarter people out there than me, as i am a newbi to php. Does anyone know how i can make this run continually while browsing the site? thanks guys. <body> <script> <!-- /* Background music script By JavaScript Kit (http://javascriptkit.com) Over 400+ free scripts here! */ //specify FULL path to midi var musicsrc="http://www.coastalcomputerservices.com.au/54.mid" if (navigator.appName=="Microsoft Internet Explorer") document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">') else document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">') //--> </script> </body>
ddp Posted February 18, 2006 Posted February 18, 2006 Hi Guys, I am trying to input a music script into my site. I put it in the index.php file but i have a problem, Every time i click on a cat or link it restarts. I know there is far smarter people out there than me, as i am a newbi to php. Does anyone know how i can make this run continually while browsing the site? thanks guys. <body> <script> <!-- /* Background music script By JavaScript Kit (http://javascriptkit.com) Over 400+ free scripts here! */ //specify FULL path to midi var musicsrc="http://www.coastalcomputerservices.com.au/54.mid" if (navigator.appName=="Microsoft Internet Explorer") document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">') else document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">') //--> </script> </body> Are you sure you want to have music looping on your whole site? That always drives me crazy when I find a site that you can't turn off the sound. Anyway I think if the sound was embedded in the header it would appear on every page that way. I don't know how to get it to not start at the beggining after each click though. Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh?
Guest Posted February 18, 2006 Posted February 18, 2006 Are you sure you want to have music looping on your whole site?That always drives me crazy when I find a site that you can't turn off the sound. Anyway I think if the sound was embedded in the header it would appear on every page that way. I don't know how to get it to not start at the beggining after each click though. While I know that alot of others like music it makes me hit the back button realy quickly. I keep my speekers down low but some peaple don't and will hit back to keep from waking their children consider this. You may lose customers.
dave111 Posted February 18, 2006 Posted February 18, 2006 Ask yourself this: Have you ever visited a legitimate business website that had music playing? Answer: NO So unless your website sells cool-aid to your cult members you should probably not include music...
mreigle Posted February 18, 2006 Posted February 18, 2006 The only thing I can think of is to use two frames. One that never goes away for the music to play in and one so people can shop and listen to the annoying music. (not 100% sure it wouldn't mess up the links... but I dont think so) You'd probably have to have a home page (for the frameset) different than index.php. Maybe call it home.php. You can set home.php as the default file in a directory in Apache.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.