In this Arduino Tutorial SW-420 vibration sensor was used. It can detect vibrations from various sources.
Download # Arduino Code (*.ino file)
Upload Arduino code directly to your Microcontroller from website
If you want to integrate Arduino IDE into your website (as above) sign up here: codebender