Js Sound plugin

Plugin details

RJS Generator for the Script.aculo.us Sounds library.

sound.js allows to play .wav/.mp3 files easily.

Websitehttp://js-code.googlecode.com Repositoryhttp://js-sound.googlecode.com/svn/trunk/js-sound Author marcus derencius Tags sound, Javascript, script.aculo.us, rjs LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://js-sound.googlecode.com/svn/trunk/js-sound

Examples:

show.rjs

page.play "alert.mp3"



will generate:

	Sound.play("sounds/alert.mp3")



show.rhtml / show.html.erb

 <%=link_to_function 'Press to Listen' do |page|
   page.play "alert.mp3"
 end
 %>

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (2 older versions) | Last edited by: scott, 4 months ago