function player(){ var myPlaylist = new jPlayerPlaylist({ jPlayer: "#jquery_jplayer_1", cssSelectorAncestor: "#jp_container_1" }, [{ title:"", mp3:"/music/tunes/index.php?x=7" },{ title:"Khyalee", mp3:"/music/tunes/index.php?x=2" },{ title:"Saanghuree Baree Ni", mp3:"/music/tunes/index.php?x=14" },{ title:"Lekai Phul Yo", mp3:"/music/tunes/index.php?x=12" },{ title:"Simsime Paani Maa", mp3:"/music/tunes/index.php?x=10" },{ title:"", mp3:"/music/tunes/index.php?x=1" },{ title:"Banjho Khet Maa", mp3:"/music/tunes/index.php?x=11" },{ title:"", mp3:"/music/tunes/index.php?x=0" },{ title:"Sanginee", mp3:"/music/tunes/index.php?x=3" },{ title:"Paan Ko Paat", mp3:"/music/tunes/index.php?x=5" },{ title:"Maachhi Mara Na", mp3:"/music/tunes/index.php?x=9" },{ title:"Chaansai Kaatyo", mp3:"/music/tunes/index.php?x=8" },{ title:"Resham Firiri", mp3:"/music/tunes/index.php?x=13" },{ title:"Sebru", mp3:"/music/tunes/index.php?x=4" },{ title:"Jina Chhanke", mp3:"/music/tunes/index.php?x=6" }], { swfPath: "/js", supplied: "mp3", wmode: "window", smoothPlayBar: true, keyEnabled: true, preload: "auto" }); $('#jquery_jplayer_1').bind($.jPlayer.event.play, function(event) { var current = myPlaylist.current; var playlist = myPlaylist.playlist; $.each(playlist, function(index, object) { if(index == current) { $('#currentSong').html(object.title); $('#musicanalyzer').html('

Explore Nepal: MusicExplore Nepal: Music

'); } }); }); $('#jquery_jplayer_1').bind($.jPlayer.event.pause, function(event) { var current = myPlaylist.current; var playlist = myPlaylist.playlist; $.each(playlist, function(index, object) { if(index == current) { $('#musicanalyzer').html(" "); } }); }); }