N/APosted on - 12/05/2012
I have developed a web site and I want to add a video clip to auto play when opening of selected pages.
But it should happen once. I mean that sound should play once opening selected pages after entering the site.
Need to find java script or php autoplay sound codes.
Hello Bersh Roman,
Hope that my message finds you well.
To add a background sound in each page you should embed each of the following steps in all the pages you want to add
In them a certain sound, please follow the below steps:
Add this to your html page in the body part:
<bgsound src="yourmusicfile.mid" loop="infinite">
Then add this code also:
<embed src="musicfile.mid" autostart="true" loop="true"
<bgsound src="musicfile.mid" loop="infinite">
As I said before if you want to play sounds for specific pages, you should embed this code only
In the pages that you want to play with them a background sound.
Hope this solution will help you and please let me know if you need anything else.