Click here to Skip to main content
15,883,938 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I use this code for playing the song:
XML
<object id="objPlayMusic"  data = "1.mp3" >
</object>


but I want , the song repeated, How can I do this?

Thanks
Posted

1 solution

If you are using HTML5, this would work:

XML
<audio controls="controls" loop="loop">
   <source src="horse.ogg" type="audio/ogg" />
   <source src="horse.mp3" type="audio/mpeg" />
   Your browser does not support the audio element.
 </audio>


http://www.w3schools.com/html5/att_audio_loop.asp[^]
 
Share this answer
 
Comments
Parissa Nouraie 31-Dec-12 15:36pm    
No, I'm not using html 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900