Hi,

I'd like to make a button that generates a sound when clicking on it.
This JQuery plugin was the best way I could found:
http://plugins.jquery.com/project/sound
and I wrote this code:

views/default/index.html:
        {{extend 'layout.html'}}
        <div>
                onClick="jQuery(this).sound.play(/static/success.wav)"
        </div>

views/layout.html:
        <head>
        
{{response.files.append(URL(r=request,c='static',f='jquery.sound.js'))}}
        </head>

Since I'm totally new to JQuery I understand that this is completely
wrong. Could anyone tell me how it should look like, please?

Reply via email to