你的位置:首页 > Java教程

[Java教程]基于jQuery仿QQ音乐播放器网页版代码


基于jQuery仿QQ音乐播放器网页版代码是一款黑色样式风格的网页QQ音乐播放器样式代码。效果图如下:

在线预览    源码下载

实现的代码。

html代码:

<div class="m_player" id="divplayer" role="application" onselectstart="return false" style="left: 0px;">  <div class="m_player_dock" id="divsongframe">    <div class="music_info" id="divsonginfo"><a target="contentFrame" class="album_pic" title=""><img src="img/cover_mine_130.jpg" alt="" onerror="this.src='img/cover_mine_130.jpg'"></a><div class="music_info_main"><p class="music_name" title="音乐你的生活"><span>音乐你的生活</span></p><p class="singer_name" title="QQ音乐">QQ音乐</p><p class="play_date" id="ptime"></p><p class="music_op" style="display:none;"><strong class="btn_like_n" title="暂不提供此歌曲服务" onClick="MUSIC.event.cancelBubble();" name="myfav_" mid=""><span>我喜欢</span></strong><strong class="btn_share_n" title="暂不提供此歌曲服务" onClick="MUSIC.event.cancelBubble();"><span>分享</span></strong><strong class="btn_kge" onMouseOver="this.className='btn_kge btn_kge_hover';" onMouseOut="this.className='btn_kge';" style="z-index:100;display:none;" id="btnkge"></strong></p></div></div>    <div class="bar_op">      <strong title="上一首( [ )" class="prev_bt" onClick="g_topPlayer.prev();"><span>上一首</span></strong>      <strong title="播放(P)" class="play_bt" id="btnplay" onClick="g_topPlayer.play();"><span>播放</span></strong>      <strong title="下一首( ] )" class="next_bt" onClick="g_topPlayer.next();"><span>下一首</span></strong>      <strong title="列表循环" class="cycle_bt" id="btnPlayway" onClick="g_topPlayer.setPlayWay();"><span>列表循环</span></strong>      <p class="volume" title="音量调节">        <span class="volume_icon" id="spanmute" title="点击设为静音(M)"></span>        <span class="volume_regulate" id="spanvolume">          <span id="spanvolumenum">0</span>          <span class="volume_bar" style="width:0%;" id="spanvolumebar"></span>          <span class="volume_op" style="left:60%;" id="spanvolumeop"></span>        </span>      </p>    </div>    <p class="playbar_cp_select" id="divselect">    </p>    <p class="player_bar">      <span class="player_bg_bar" id="spanplayer_bgbar"></span>      <span class="download_bar" id="downloadbar" style="width: 0%;"></span>      <span class="play_current_bar" style="width: 0%;" id="spanplaybar"></span>      <span class="progress_op" style="left: 0%;" id="spanprogress_op"></span>    </p>    <div class="time_show" style="left:240px;bottom:8px;display:none;">      <p id="time_show"></p>      <span class="icon_arrow_foot"><i class="foot_border"></i><i class="foot_arrow"></i></span>    </div>  </div>  <span class="active_tip" id="spanaddtips" style="top:0px;display:none;"></span>  <span title="展开播放列表" class="open_list" id="spansongnum1"><span>0</span></span>  <button type="button" class="folded_bt" title="点击收起" id="btnfold"><span>点击收起/展开</span></button>  <!--play list-->  <div class="play_list_frame" id="divplayframe" style="display: none ;filter:alpha(opacity=0);opacity:0;">    <div class="play_list_title">      <!-- 单曲FM修改 -->      <ul id="tab_container" style="width:270px;">        <li id="playlist_tab" class="current"><a href="javascript:;">播放列表</a><i></i></li>        <li id="fm_tab" style="display:none"><a href="javascript:;">单曲电台列表</a><i></i></li>      </ul>      <span id="clear_list" class="clear_list" onClick="g_topPlayer.clearList();">清空列表</span>      <strong title="收起播放列表" class="close_list" id="btnclose"></strong>    </div>    <div class="play_list" id="divlistmain">      <!--列表为空提示_S-->      <div class="play_list_point" id="divnulllist" style="display: block;">        <div>          <h4>您当前还未添加任何歌曲</h4>          <p>您可以:</p>          <p>在<a href="http://www.cnblogs.com//y/static/index.html?pgv_ref=qqmusic.y.player" target="contentFrame">首页</a>选择试听我们推荐的歌曲。</p>          <p>在<a href="http://www.cnblogs.com//y/static/singer/index/all_hot_1.html?pgv_ref=qqmusic.y.player" target="contentFrame">乐库</a>中查找您想听的歌曲。</p>        </div>      </div>      <!-- 单曲FM修改 空列表-->      <div class="play_list_point" id="divnullFMlist" style="display:none;">        <div>          <h4>哎呀,这首歌和其他歌曲还不熟</h4>          <p>你可以:</p>          <p>换 另一首歌曲<span style="color:#9ae40a"> 重新发起单曲电台</span>。          </p><p>什么是单曲电台?</p>          <p>当你听到一首喜欢的歌曲,我们会针对这首歌曲,为你生成一批<span style="color:#9ae40a"> 你可能也喜欢的歌曲列表</span>,            并且根据你的反馈,不断优化——所以听得越多,为你推荐得越准噢!</p>          <p></p>        </div>      </div>      <!--列表为空提示_E-->      <div class="play_list_main" id="divplaylist" style="display: none;">        <!-- 播放列表_S-->        <div class="single_list" id="divsonglist" dirid="0"><ul></ul></div>        <div id="divalbumlist" style="display:none;">        </div>      </div>      <div class="play_list_scroll" style="top:0px"><span id="spanbar" class="play_list_scrolling"></span></div>      <!--单曲电台列表_S-->      <div class="single_radio_cont" id="FM_container" style="display:none;">        <div class="single_radio_top">          <!-- a href="javascript:;" ><i ></i>换一批</a -->          <p>您正在收听以“<strong id="FM_songname">好久不见-陈奕迅</strong>”生成的单曲电台。</p>        </div>        <div class="single_radio_list">          <ul id="single_radio_list" style="margin-left:-150px;">            <li class="first"></li>          </ul>        </div>        <div class="single_radio_info" id="single_radio_info">          <a href="javascript:;" class="single_radio_like" title="喜欢"></a>          <a href="javascript:;" class="single_radio_delete" title="删除"></a>          <h3></h3>          <p></p>        </div>      </div>      <!--单曲电台列表_E-->    </div>  </div>  <!--歌词内容-->  <div class="y_player_lyrics" id="player_lyrics_pannel" style="display:none;">    <div class="lyrics_text" id="qrc_ctn"></div>    <div class="lyrics_bg"></div>    <span class="close_lyrics" id="closelrcpannel"></span>  </div>  <div class="single_radio_tip" id="single_radio_tip" style="display:none;">    <a href="javascript:;" class="close_tips"></a>  </div></div>

via:http://www.w2bc.com/Article/44746