Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-02-17 13:08:54
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
background music autoplay
i got this code
<embed src="<txp:site_url />files/hirrus.mp3" autostart="true" loop="true" volume="20" hidden="true" />
it’s working, but it’s not valid i know. found solution , but can’t to implement it to my code. could anybody help me?
Offline
#2 2010-02-19 12:15:08
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
Re: background music autoplay
jQuery.noConflict();
// Use jQuery via jQuery(...)
jQuery(document).ready(function() {
jQuery("#jplayer").jPlayer({
ready: function () {
this.element.jPlayer("setFile","files/hirrus.mp3").jPlayer("play");
},
volume:50
});
});
the code above and jquery jplayer plugin did the trick
Offline
Pages: 1