Can someone give me an overview how to play a 3 second mp3 clip in a module I'm creating using an input button...
I'm not clear on what to put in the pnuser.php file and the template file...
I tried using the following javascript in the template only, which seems to want to work (no errors on page), but the clip doesn't play.
Code
<EMBED SRC="<!--[$path]-->/modules/pntarot/sounds/shuffle.mp3" NAME="shuffle" AUTOSTART=false MASTERSOUND HIDDEN=true>
<SSS*>function beep(){document.shuffle.play();} </SSS*>
<form>
<INPUT TYPE="button" VALUE="Shuffle" onClick="javascript:beep();">
</form>
<SSS*>function beep(){document.shuffle.play();} </SSS*>
<form>
<INPUT TYPE="button" VALUE="Shuffle" onClick="javascript:beep();">
</form>
*Note that the SSS above stands for script but this editor won't allow me to put "script" in between the braces .
Any ideas?
edited by: EMZ, Jan 05, 2009 - 11:26 AM
--
EMZ
