Beatport, probably the world’s leading online store for club and electronic music has developed a great tool: The Beatportplayer which generates a code you can put into websites to play track snippets according to certain criteria.
Here’s an example for the recently issued tunes in the deep-house genre. Nice toy and great viral marketing, just like De:bug states.