Location: JavaScript

JavaScript Player (using Flash) + Simple PLaylist Controlers!

niftyPlayer + Simple Playlist
JavaScript Player (using Flash) + Simple PLaylist Controlers!
use this nice js player.

i added a code JS below for using next and prev buttons.


var playNum = 0;
var songs = Array('/files/mp3/no-woman.mp3', '/files/mp3/sa-leat.mp3', '/files/mp3/fix-you.mp3');
totalSongs = songs.length - 1;

function playNext() {
    playNum = playNum + 1;
    if (playNum > totalSongs) { playNum = 0 };
    niftyplayer('FMrPlayer').loadAndPlay(songs[playNum]);
}

function playPrev() {
    playNum = playNum - 1;
    if (playNum < 0) { playNum = totalSongs };
    niftyplayer('FMrPlayer').loadAndPlay(songs[playNum]);
}


Link: niftyPlayer  [ Preview ]

Rate:  

Add To Facebook Share on Twitter Add To Google Bookmarks Add To Linkedin Add To Del.icio.us Add To digg Add To Stumble Upon Add To Yahoo My Web Add To Technorati