Adding sound effect to A tag with jQuery


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('a.click').click(function(){
  2. $('embed').remove();
  3. $('body').append('<embed src="click.wav" autostart="true" hidden="true" loop="false">');
  4. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.