Hi librandi,
I did test our you above <script> codes on our JA Tiris template, could see the audio wasn’t playing. The browser just loads your audio to be saved or downloaded although I did activate the browser’s audio player extension. So, if you want to add music background on JA Tiris template, pls follow this guide:
1. Open <blockquote>pluginssystemjat3jat3base-themesdefaultblocksheader.php</blockquote>, then insert below code into (22nd line):
<SCRIPT TYPE="text/javascript">
var filename="gladiatore.mp3";
if (navigator.appName == "Music Background")
document.writeln ('<BGSOUND SRC="' + filename + '">');
</SCRIPT>
<NOSCRIPT>
<BGSOUND SRC="your_mp3_path">
</NOSCRIPT>
<nowiki><object data="your_mp3_path" type="application/x-mplayer2" height="0" width="0">
<param name="autostart" value="true" />
<param name="autoplay" value="true" />
<param name="movie" value="gladiatore.mp3" />
</object> </nowiki>
>> The audio will be automatically played when the browser load your website’s pages.
2. Remember to activate the browser’s audio players.
Regards,
—
Leo