// Local copy of jQuery selectors, for performance.
var my_jPlayer = $("#jquery_jplayer"),
my_trackName = $("#jp_container .track-name"),
my_playState = $("#jp_container .play-state"),
my_extraPlayInfo = $("#jp_container .extra-play-info");
// Some options
var opt_play_first = false, // If true, will attempt to auto-play the default track on page loads. No effect on mobile devices, like iOS.
opt_auto_play = true, // If true, when a track is selected, it will auto-play.
opt_text_playing = "Now playing", // Text when playing
opt_text_selected = "Track selected"; // Text when not playing
// A flag to capture the first track
var first_track = true;
// Change the time format
$.jPlayer.timeFormat.padMin = false;
$.jPlayer.timeFormat.padSec = false;
$.jPlayer.timeFormat.sepMin = " min ";
$.jPlayer.timeFormat.sepSec = " sec";
// Initialize the play state text
my_playState.text(opt_text_selected);
// Instance jPlayer
my_jPlayer.jPlayer({
ready: function () {
$("#jp_container .track-default").click();
},
timeupdate: function(event) {
my_extraPlayInfo.text(parseInt(event.jPlayer.status.currentPercentAbsolute, 10) + "%");
},
play: function(event) {
my_playState.text(opt_text_playing);
},
pause: function(event) {
my_playState.text(opt_text_selected);
},
ended: function(event) {
my_playState.text(opt_text_selected);
},
swfPath: "js",
cssSelectorAncestor: "#jp_container",
supplied: "mp3",
solution:"flash,html",
wmode: "window"
});
// Create click handlers for the different tracks
$("#jp_container .track").click(function(e) {
my_trackName.text($(this).text());
my_jPlayer.jPlayer("setMedia", {
mp3: $(this).attr("href")
});
if((opt_play_first && first_track) || (opt_auto_play && !first_track)) {
my_jPlayer.jPlayer("play");
}
first_track = false;
$(this).blur();
return false;
<div id="mainwrapper">
<!--header-->
<?php
include("elements/header.php");
?>
<!--Header Ending-->
<div class="clr"></div>
<div id="top2holder">
<?php
include("elements/leftmenu1.php");
?>
<div id="bannerholderouter">
<ul id="bannerholder">
</ul>
</div>
</div>
<!--End top2holder-->
<div class="clr"></div>
<!--maincontent part-->
<div id="maincontent">
<div id="maincontentinside"><!--leftside ends-->
<!--middlecontent-->
<div id="innerspace">
<?php
include("elements/browseblock.php");
?>
<!--<div class="browseblock">
<ul>
<li class="strong1">Browse -: </li>
<li><a href="#">Free Download /</a></li>
<li><a href="#">Concert Excerpts / </a></li>
<li><a href="#">Bhajans / Slokas /</a></li>
<li><a href="#">Varna /</a></li>
<li><a href="#">Krithi /</a></li>
<li><a href="#">Tillana /</a></li>
</ul>
</div>-->
<br/>
<div class="alltrack">
<h1>Download / Play Tracks >></h1>
</div>
<div class="line">
<img src="images/trakline.gif" height="2" width="755"/>
</div>
<!--<div id="recenttracksholder">
--><div id="recenttracks">
<div id="recenth1holder">
<h2>Most Recent Tracks >></h2>
</div>
<?php
$qry=@mysql_query("select track_name,track_link,track_duration,track_price,artist_name,category_name,track_id_pk from tbl_track,tbl_category,tbl_artist where category_id_pk=category_id_fk and artist_id_pk=artist_id_fk and track_status=0 order by track_id_pk desc limit 3") or die(mysql_error());
//$rows=mysql_fetch_array($qry);
$count=0;
while($rows=mysql_fetch_array($qry))
{
$count++;
?>
<div id="recenttrackbox">
<div id="contentpart">
<h3><?php echo $rows['track_name']; ?></h3>
<p class="artist"><?php echo $rows['artist_name']; ?></p>
<p class="lenght"><?php echo $rows['track_duration']; ?></p>
</div>
<div id="jquery_jplayer"></div>
<div id="jp_container">
<ul>
<li>
<a href="music/<?php echo $rows['track_link'];?>"
<?php
if($count==1)
{
echo "class=\"track track-default\"";
}
else
{
echo "class=\"track\"";
}
?> id="track" class="jp-play" tabindex="1" >
<img src="images/play.png" width="26" height="20" title="Play"/>
</a>
</li>
<li><a href="music/<?php echo $rows['track_link'];?>" id="track"
class="jp-stop" tabindex="1">
<img src="images/stop.gif" width="26" height="20" title="Stop"/>
</a></li>
</ul>
</div>
<div id="playbutton">
<a href="music1/<?php echo $rows['track_link'];?>" title="play" target="_blank">
<img src="images/play.png" width="26" height="20" border="0" id="Image2" onmouseover="MM_swapImage('Image2','','images/playover.png',1)" onmouseout="MM_swapImgRestore()" />
</a>
<a href="fdownload.php?f=<?php echo $rows['track_link'];?>">
<img src="images/pdownload.gif" width="26" height="20" />
</a>
</div>
</div>
<?php
}
?>
</div>
<div id="populartrack">
<div id="popularh1holder">
<h2>Most Popular Tracks >></h2>
<a href="#" class="all"></a></div>
<?php
$qry=@mysql_query("select track_name,track_link,track_duration,track_price,artist_name,category_name,track_id_pk from tbl_track,tbl_category,tbl_artist where category_id_pk=category_id_fk and artist_id_pk=artist_id_fk and track_status=0 order by track_id_pk asc") or die(mysql_error());
//$rows=mysql_fetch_array($qry);
while($rows=mysql_fetch_array($qry))
{
?>
<div id="populartrackbox">
<div id="contentpart">
<h3><?php echo $rows['track_name']; ?></h3>
<p class="artist"><?php echo $rows['artist_name']; ?></p>
<p class="lenght"><?php echo $rows['track_duration']; ?></p>
</div>
<div id="playbutton">
<a href="music/<?php echo $rows['track_link'];?>" title="play">
<img src="images/play.png" width="26" height="20" border="0" id="Image2" onmouseover="MM_swapImage('Image2','','images/playover.png',1)" onmouseout="MM_swapImgRestore()" />
</a>
<a href="fdownload.php?f=<?php echo $rows['track_link'];?>">
<img src="images/pdownload.gif" width="26" height="20" />
</a>
</div>
</div>
<?php
}
?>
<!---->
</div>
</div>
<!--End contentinside--->
<!--photosection-->
<!--endpicturesection-->
<!--middlecontent ends-->
<!--Leftcontent starts-->
<?php
include("elements/rightmenu.php");
?>
<div id="leftside">
<?php /*?><div id="recording">
<img src="images/recording.jpg" width="202" height="233" alt="latestest recording"/>
</div><?php */?>
<div id="news">
<h5>Press Release</h5>
<marquee direction="up" height="150"scrolldelay="150">
<?php
$sql = @mysql_query("SELECT news_article_name FROM tbl_newshighlights
ORDER BY news_id_pk desc")
or die(mysql_error());
while($rows = mysql_fetch_array($sql))
{
?>
<p><a href="pressrelease.php">
<?php echo $rows['news_article_name']; ?></a></p>
<?php
}
?>
</marquee>
</div>
<br />
<div id="browse">
<a href="onlinestore.php"><img src="images/browse.gif" width="200" height="72" alt="browse" border="0"/></a>
</div>
<div id="download">
<a href="freedownload.php"><img src="images/download.gif" width="200" height="72" alt="browse"/ border="0"></a>
</div>
</div>
<!--Leftcontent ends-->
</div>
<!--main contentinside ends here-->
</div>
<!--main content ends here-->
<?php
include("elements/footer.php");
?>
</div>
</body>
</html>
<?php ob_flush();?>