Day Walker Posted January 23, 2007 Share Posted January 23, 2007 ok i know there has to be a way....i want to add sound to my php website...i can do that no problem in the tpl files...however when you change the page it restarts the tunes...is there a way to add a script somewhere so that once you enter the site the tunes play and loop forever till you exit the stie? Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/ Share on other sites More sharing options...
bibby Posted January 23, 2007 Share Posted January 23, 2007 php could help you choose a sound file, but not play it.See if your browser can handle[code]<embed src="yourfile.mp3" />[/code] Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/#findComment-166951 Share on other sites More sharing options...
Day Walker Posted January 23, 2007 Author Share Posted January 23, 2007 i can get the tunes to play no problem using thisin the tpl file...thing is it restarts everytime you change the page...there has to be a way to make it play with out restarting[code]<embed src="mytunes.mp3" autostart="true" hidden="true" loop="0"><bgsound src="mytunes.mp3" loop="infinite">[/code] Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/#findComment-166958 Share on other sites More sharing options...
The Little Guy Posted January 23, 2007 Share Posted January 23, 2007 to play the file through out many pages, you need to have a frame. Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/#findComment-166959 Share on other sites More sharing options...
Day Walker Posted January 23, 2007 Author Share Posted January 23, 2007 how would i do that?...i've never used frames...or is it to complex to get into here? Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/#findComment-166961 Share on other sites More sharing options...
The Little Guy Posted January 23, 2007 Share Posted January 23, 2007 http://www.w3schools.com/html/html_frames.asp Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/#findComment-166964 Share on other sites More sharing options...
Day Walker Posted January 23, 2007 Author Share Posted January 23, 2007 my site is in php...will frames work? before i go there and read all that stuff...lol Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/#findComment-166966 Share on other sites More sharing options...
The Little Guy Posted January 23, 2007 Share Posted January 23, 2007 yes Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/#findComment-166969 Share on other sites More sharing options...
Day Walker Posted January 23, 2007 Author Share Posted January 23, 2007 ok thanks...i'll try that Quote Link to comment https://forums.phpfreaks.com/topic/35320-sound/#findComment-166970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.