Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 20th, 2012  |  syntax: PHP  |  size: 1.47 KB  |  hits: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         <script type="text/javascript">
  2.             $(document).ready(function() {
  3.                 var carousel = $("#carousel").featureCarousel({
  4.                     movedToCenter: function($feature) {
  5.                         // $feature is a jQuery wrapped object describing the featured that is now in the center position.
  6.                         var idAlbum = $feature.find('.carousel-image').attr('id');
  7.                         $.post('/artist/tracks', {id: idAlbum}, function(data){
  8.                             //аудио
  9.  
  10.                             $("#jquery_jplayer_1").jPlayer("destroy");
  11. //                            $("#jquery_jplayer_1").jPlayer("clearMedia");
  12. //                            $("#jquery_jplayer_1").jPlayerPlaylist("clearMedia");
  13.  
  14.  
  15.                             new jPlayerPlaylist({
  16.                                 jPlayer: "#jquery_jplayer_1",
  17.                                 cssSelectorAncestor: "#jp_container_1"
  18.                             }, data.tracks, {
  19.                                 swfPath: "/static/site/js",
  20.                                 supplied: "mp3",
  21.                                 wmode: "window"
  22.                             });
  23.                         }, 'json');
  24.                     }
  25.                 });
  26.                 $("#but_prev").click(function () {
  27.                     carousel.prev();
  28.                 });
  29.                 $("#but_next").click(function () {
  30.                     carousel.next();
  31.                 });
  32.             });
  33.         </script>