Created
June 8, 2010 09:17
-
-
Save mataspetrikas/429798 to your computer and use it in GitHub Desktop.
jump to a certain track in the SoundCloud custom player
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$('a.sc-external-link').live('click', function(event) { | |
// simulate the click on the tracklist item | |
$('ol.sc-trackslist a[href=' + this.href +']').click(); | |
}); | |
</script> | |
<!-- HTML --> | |
<div class="sc-player"> | |
<a href="http://soundcloud.com/matas/hobnotropic">My dub track</a> | |
<a href="http://soundcloud.com/forss/forss-vs-borg-deadline-live-in-milan-2004">Forss</a> | |
<a href="http://soundcloud.com/matas/matas-petrikas-live-at-gravity-club-30-05-2008">My live set</a> | |
<a href="http://soundcloud.com/matas/goldfrapp-little-bird-matas-ornitologic-remix">Pumpkins Track</a> | |
<a href="http://soundcloud.com/matas/on-the-bridge">On the Bridge</a> | |
</div> | |
<a href="http://soundcloud.com/matas/on-the-bridge" class="sc-external-link">Play the track directly</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment