歌词与声音同步代码

歌词与声音同步代码
<div align="center">
<STYLE>
TD { FONT-SIZE: 9pt; LINE-HEIGHT: 20px; }
BODY{
FONT-SIZE: 9pt;
LINE-HEIGHT: 20px;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#lrcollbox td, #lrcollbox font {font-family: 黑体; font-size: 16px;}
#lrcoll td { color:#0080C0; }
.lrcbc { color:#FFFF33; overflow:hidden; height:20; width:0; filter:alpha(opacity=100); }
A:visited { TEXT-DECORATION: none; color: #000000; }
A:active { COLOR: #000000; TEXT-DECORATION: none; }
A:link { TEXT-DECORATION:none; Color:#000000 }
#idDownload {behavior:url(#default#download);}
A:hover{ TEXT-DECORATION: underline; Color:#74ACDC }
</STYLE>
<script language="JavaScript" src="headr.js"></script>
<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" id="aboutplayer" width="480" height="60">
<param name="url" value=".net教程.cn/sanguo/wenyi/yingshi/yanyi/gequ/zheyibai.mp3">http://xf.hb.vnet.cn/sanguo/wenyi/yingshi/yanyi/gequ/zheyibai.mp3">
<param name="volume" value="100">
<param name="enablecontextmenu" value="0">
<param name="enableerrordialogs" value="0">
</object>
<div id="lrcollbox" style="overflow:hidden; height:260; width:480; background-color:#000000; cursor:hand;">
<table border="0" cellspacing="0" cellpadding="0" width="480" id="lrcoll" style="position:relative; top:120px;">
<tr><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox1" style="height:20; color:#00FF00">歌词加载中</span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc1" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-20px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox2" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc2" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-40px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox3" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc3" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-60px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox4" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc4" class="lrcbc"></div></td>
</tr>
</table>
</td>
</tr>
<tr style="position:relative; top:-80px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox5" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc5" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-100px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox6" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc6" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-120px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox7" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc7" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-140px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox8" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc8" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-160px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox9" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc9" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-180px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox10" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc10" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-200px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox11" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc11" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-220px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox12" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc12" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-240px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox13" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc13" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-260px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox14" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc14" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-280px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox15" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc15" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-300px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox16" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc16" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-320px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox17" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc17" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-340px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox18" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc18" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-360px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox19" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc19" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-380px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox20" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc20" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-400px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox21" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc21" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-420px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox22" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc22" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-440px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox23" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc23" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-460px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox24" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc24" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-480px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox25" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc25" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-500px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox26" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc26" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-520px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox27" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc27" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-540px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox28" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc28" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-560px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox29" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc29" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-580px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox30" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc30" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-600px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox31" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc31" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-620px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox32" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc32" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-640px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox33" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc33" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-660px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox34" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc34" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-680px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox35" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc35" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-700px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox36" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc36" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-720px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox37" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc37" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-740px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox38" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc38" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-760px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox39" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc39" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-780px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox40" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc40" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-800px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox41" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc41" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-820px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox42" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc42" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-840px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox43" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc43" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-860px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox44" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc44" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-880px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox45" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc45" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-900px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox46" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc46" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-920px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox47" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc47" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-940px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox48" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc48" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-960px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox49" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc49" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-980px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox50" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc50" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1000px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox51" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc51" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1020px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox52" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc52" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1040px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox53" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc53" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1060px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox54" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc54" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1080px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox55" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc55" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1100px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox56" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc56" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1120px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox57" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc57" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1140px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox58" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc58" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1160px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox59" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc59" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1180px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox60" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc60" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1200px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox61" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc61" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1220px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox62" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc62" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1240px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox63" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc63" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1260px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox64" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc64" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1280px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox65" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc65" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1300px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox66" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc66" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1320px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox67" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc67" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1340px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox68" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc68" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1360px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox69" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc69" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
<tr style="position:relative; top:-1380px;"><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcbox70" style="height:20"></span></td></tr>
<tr style="position:relative; top:-20px; z-index:6;">
<td nowrap height="20"><div id="lrcbc70" class="lrcbc"></div></td>
</tr>
</table>
</td></tr>
</table>
</div>
</center>
<download id="idDownload">
<script language="JavaScript" src="lrcwmove.js"></script>
<script language="JavaScript">
try {idDownload.startDownload("200763315301708.txt",lrcrun);} catch(hh){}
</script> 
  </TBODY>
  </TABLE>

</BODY>
</HTML>
lrcwmove.js
var lrc0, lrc1, lrc2;
moveflag = false;
var top, bottom;
var lrcobj;
var lrctop;
predlt = 0;
curdlt = 0;

function lrcClass(tt)
{
  this.inr = [];

  this.oTime = 0;

  this.dts = -1;
  this.dte = -1;
  this.dlt = -1;
  this.ddh;
  this.fjh;

  if(/[offset:(-?d+)]/i.test(tt))
    this.oTime = RegExp.$1/1000;
 
  tt = tt.replace(/[:][^$n]*(n|$)/g,"$1");
  tt = tt.replace(/[[^[]:]*]/g,"");
  tt = tt.replace(/[[^[]]*[^[]d]+[^[]]*:[^[]]*]/g,"");
  tt = tt.replace(/[[^[]]*:[^[]]*[^[]d.]+[^[]]*]/g,"");
  tt = tt.replace(/<[^<>]*[^<>d]+[^<>]*:[^<>]*>/g,"");
  tt = tt.replace(/<[^<>]*:[^<>]*[^<>d.]+[^<>]*>/g,"");

  while(/[[^[]]+:[^[]]+]/.test(tt))
  {
    tt = tt.replace(/(([[^[]]+:[^[]]+])+[^[rn]*)[^[]*/,"n");
    var zzzt = RegExp.$1;
    /^(.+])([^]]*)$/.exec(zzzt);
    var ltxt = RegExp.$2;
    var eft = RegExp.$1.slice(1,-1).split("][");
    for(var ii=0; ii<eft.length; ii++)
    {
      var sf = eft[ii].split(":");
      var tse = parseInt(sf[0],10) * 60 + parseFloat(sf[1]);
      var sso = { t:[] , w:[] , n:ltxt }
      sso.t[0] = Math.round((tse-this.oTime)*1000)/1000;
      this.inr[this.inr.length] = sso;
    }
  }
  this.inr = this.inr.sort( function(a,b){return a.t[0]-b.t[0];} );

  for(var ii=0; ii<this.inr.length; ii++)
  {
    while(/<[^<>]+:[^<>]+>/.test(this.inr[ii].n))
    {
      this.inr[ii].n = this.inr[ii].n.replace(/<(d+):([d.]+)>/,"%=%");
      var tse = parseInt(RegExp.$1,10) * 60 + parseFloat(RegExp.$2);
      this.inr[ii].t[this.inr[ii].t.length] = Math.round((tse-this.oTime)*1000)/1000;
    }
    lrcbc1.innerHTML = "<font>"+ this.inr[ii].n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/%=%/g,"</font><font>") +" </font>";
    var fall = lrcbc1.getElementsByTagName("font");
    for(var wi=0; wi<fall.length; wi++)
      this.inr[ii].w[this.inr[ii].w.length] = fall[wi].offsetWidth;
    this.inr[ii].n = lrcbc1.innerText;
  }

  this.overtop = function()
  {
    var ii;
    for(ii=this.inr.length-1; ii>0 && this.inr[ii].t[0]>ffbb; ii--){}
    top = ii;
  }

  this.run = function(tme)
  {
    if(tme<this.dts || tme>=this.dte)
    {
      var ii;
      for(ii=this.inr.length-1; ii>=0 && this.inr[ii].t[0]>tme; ii--){}
      if(ii<0) return;
      this.ddh = this.inr[ii].t;
      this.fjh = this.inr[ii].w;
      this.dts = this.inr[ii].t[0];
      this.dte = (ii<this.inr.length-1)?this.inr[ii+1].t[0]:aboutplayer.currentMedia.duration;

      if(!movable)
      {
        lrctop = 140;
        lrcoll.style.pixelTop = 140;
        lowlight(lrcbox1);
        this.overtop();
        overbottom();
        for(var wi=1; wi<=this.inr.length; wi++)
        {
          eval("lrcbox"+wi).innerText = this.inr[wi-1].n;
          eval("lrcbc"+wi).innerText = this.inr[wi-1].n;
        }
        movable = true;
      }

      if(this.dlt>0) lowcolor(eval("lrcbc"+this.dlt));
      clearTimeout(lrc2);
      if(this.dlt==ii-1)
      {
        predlt = this.dlt+1;
        if(!ptms && predlt>0)
        {
          eval("lrcbc"+predlt).filters.alpha.opacity = 100;
          eval("lrcbc"+predlt).style.width = "100%";
          highcolor(0,this.dte-this.dts);
        }
        toposition(1,this.dte-this.dts);
      }
      if(ii-this.dlt>1 || ii-this.dlt<=-1)
      {
        if(this.dlt>=0) lowcolor(eval("lrcbc"+(this.dlt+1)));
        if(this.dlt==-1 || ii==0)
        {
          jumpto(ii-this.dlt-1);
          toposition(1,this.dte-this.dts);
        }
        else
          jumpto(ii-this.dlt);
      }
      if(this.dlt>=0) lowlight(eval("lrcbox"+(this.dlt+1)));
      this.dlt = ii;
      curdlt = ii;
      if(!drdc) highlight(eval("lrcbox"+(this.dlt+1)));
      if(drdc)
      {
        curlowcolor(eval("lrcbc"+(this.dlt+1)));
        curhighcolor(0,this.dte-this.dts);
      }
    }
    if(klok)
    {
      var bbw = 0;
      var ki;
      for(ki=0; ki<this.ddh.length && this.ddh[ki]<=tme; ki++)
        bbw += this.fjh[ki];
      var kt = ki-1;
      var sc = ((ki<this.ddh.length)?this.ddh[ki]:this.dte) - this.ddh[kt];
      var tc = tme - this.ddh[kt];
      bbw -= this.fjh[kt] - tc / sc * this.fjh[kt];
      if(bbw>eval("lrcbox"+(this.dlt+1)).offsetWidth)
        bbw = eval("lrcbox"+(this.dlt+1)).offsetWidth;
      eval("lrcbc"+(this.dlt+1)).style.width = Math.round(bbw);
    }
  }
  lrcbox1.innerText = "www.qq5500.cn";
}

function overbottom()
{
  if(aboutplayer.currentMedia.duration>0)
  {
    var ii;
    for(ii=lrcobj.inr.length-1; ii>0 && lrcobj.inr[ii].t[0]-ffbb>=aboutplayer.currentMedia.duration; ii--){}
    bottom = ii;
  }
  else
    setTimeout("overbottom()",10);
}

function jumpto(nline)
{
  lrctop -= 20*nline;
  lrcoll.style.top = lrctop;
}

function toposition(step,dur)
{
  if(moveflag) return;
  lrcoll.style.top = lrctop--;
  if(step<20)
  {
    step++;
    setTimeout("toposition("+step+","+dur+");",dur*50);
  }
}

function highcolor(step,dur)
{
  if(moveflag) return;
  eval("lrcbc"+predlt).filters.alpha.opacity = 100-(step++)*10;
  if(step<10)
    lrc1 = setTimeout("highcolor("+step+","+dur+");",dur*100);
}

function curhighcolor(step,dur)
{
  if(moveflag) return;
  eval("lrcbc"+(curdlt+1)).filters.alpha.opacity = (step++)*10;
  if(step<10)
    lrc2 = setTimeout("curhighcolor("+step+","+dur+");",dur*100);
}

function highlight(lid)
{
  lid.style.color = "#00FF00";
}

function lowcolor(lid)
{
  clearTimeout(lrc1);
  lid.style.width = 0;
  lid.filters.alpha.opacity = 100;
}

function curlowcolor(lid)
{
  lid.filters.alpha.opacity = 0;
  lid.style.width = "100%";
}

function lowlight(lid)
{
  lid.style.color = "#0080C0";
}

function lrcrun(m)
{
  lrcobj = new lrcClass(m);
  lrc0 = setInterval("try {lrcobj.run(aboutplayer.controls.currentPosition+ffbb)} catch(hh){}",10);
}

MakeMovable(lrcollbox);
function MakeMovable(element)
{
  element.attachEvent("onmousedown",onmousedown);
  element.attachEvent("onmouseup",onmouseup);
  element.attachEvent("onmousemove",onmousemove);
  flagmove = false;
  var s_y, o_y;
  curpot = 0;

  function onmousedown()
  {
    if(event.button!=1 || moveflag || !movable || !type || bottom==0) {flagmove = true; return;}
    clearTimeout(lrc0);
    if(curdlt>0) lowcolor(eval("lrcbc"+curdlt));
    lowcolor(eval("lrcbc"+(curdlt+1)));
    lowlight(eval("lrcbox"+(curdlt+1)));
    if(lrcoll.style.pixelTop>120-top*20) lrcoll.style.top = 120-top*20;
    if(lrcoll.style.pixelTop<120-bottom*20) lrcoll.style.top = 120-bottom*20;
    s_y = event.clientY;
    o_y = lrcoll.style.pixelTop;
    element.style.cursor = "n-resize";
    element.setCapture();
    moveflag = true;
  }

  function onmousemove()
  {
    if(event.button!=1 || !moveflag || flagmove) return;
    var offy = event.clientY-s_y;
    if(o_y+offy<=120-top*20 && o_y+offy>=120-bottom*20) lrcoll.style.top = o_y+offy;
    if(o_y+offy>120-top*20) lrcoll.style.top = 120-top*20;
    if(o_y+offy<120-bottom*20) lrcoll.style.top = 120-bottom*20;
    var pot = Math.floor((lrcoll.style.pixelTop-120)/-20);
    if(pot!=curpot)
    {
      lowlight(eval("lrcbox"+(curpot+1)));
      curpot = pot;
      highlight(eval("lrcbox"+(curpot+1)));
    }
  }

  function onmouseup()
  {
    if(!moveflag || flagmove) {flagmove = false; return;}
    if(aboutplayer.playState==3)
    {
      if(lrcoll.style.pixelTop<=120-top*20 && lrcoll.style.pixelTop>100-top*20)
        lrcobj.dte = -1;
      else
        lrcobj.dte = lrcobj.inr[Math.floor((lrcoll.style.pixelTop-120)/-20)-1].t[0];
      if(lrcobj.inr[Math.floor((lrcoll.style.pixelTop-120)/-20)].t[0]-ffbb<0)
        aboutplayer.controls.currentPosition = 0;
      else
        aboutplayer.controls.currentPosition = lrcobj.inr[Math.floor((lrcoll.style.pixelTop-120)/-20)].t[0]-ffbb;
      lrcobj.dlt = Math.floor((lrcoll.style.pixelTop-120)/-20);
      lrctop = lrcoll.style.pixelTop;
    }
    else
    {
      lowlight(eval("lrcbox"+(curpot+1)));
      highlight(eval("lrcbox"+(curdlt+1)));
      lrcoll.style.top = o_y;
    }
    lrc0 = setInterval("try {lrcobj.run(aboutplayer.controls.currentPosition+ffbb)} catch(hh){}",10);
    element.releaseCapture();
    element.style.cursor = "hand";
    moveflag = false;
  }
}

js文件

movable = false;
drdc = false;
ptms = false;
klok = true;
ffbb = 0;

function offset(s)
{
  if(s==0)
    ffbb = 0;
  else
    ffbb += s*0.5;
  if(movable && type) {lrcobj.overtop(); overbottom();}
}

function loadfile()
{
  file.click();
  if(file.value=="" || file.value==uu) return;
  uu = file.value;
  url.value = uu;
  aboutplayer.setSource(uu);
  aboutplayer.DoPlay();
}

function mode(item)
{
  if(item=="1") {ptms = true; drdc = false; klok = false;}
  if(item=="2") {ptms = false; drdc = true; klok = false;}
  if(item=="3") {ptms = false; drdc = false; klok = true;}
}
txt 文件

[ti:这一拜]
[ar:刘欢]
[al:]
[by:www.re5.cn]
[00:00.00]歌手:刘欢
[00:00.00]歌名:这一拜

http://www.111cn.net 冷觉DJ吧

 

时间: 2024-11-08 18:25:13

歌词与声音同步代码的相关文章

使用DELPHI实现文本文件显示和声音同步

在一些语言教学软件中,经常使用文本显示和声音同步播放,我们可以用DELPHI实现之. 一.材料的制作 首先,我们选择几篇文章,这里我们选择马丁路德金.林肯和里根的演说,每一篇文章分为若干句,在制作声音文件时,记下每个句子的开始时间和结束时间,然后将其记到一个数据表中,这个表有如下字段:NO.TEXT.STARTTIME,分别表示每句序号.内容.开始时间. 二.界面的制作 在DELPHI中创建一个新工程,在FORM中放入多媒体控件,RTF编辑器,命令按钮,单选分组框,数据表,时钟和标签,如图所示

基本线程同步(四)在同步代码中使用条件

在同步代码中使用条件 在并发编程中的一个经典问题是生产者与消费者问题,我们有一个数据缓冲区,一个或多个数据的生产者在缓冲区存储数据,而一个或多个数据的消费者,把数据从缓冲区取出. 由于缓冲区是一个共享的数据结构,我们必须采用同步机制,比如synchronized关键字来控制对它的访问.但是我们有更多的限制因素,如果缓冲区是满的,生产者不能存储数据,如果缓冲区是空的,消费者不能取出数据. 对于这些类型的情况,Java在Object对象中提供wait(),notify(),和notifyAll()

Java同步代码等同于断面

同步经常作为断面被引用.断面是指一次只能有一个线程执行它.多个线程同时执行同步代码是有可能的. 这个误解是因为很多程序员认为同步关键字锁住了它所包围的代码.但是实际情况不是这样的.同步加锁的是对象,而不是代码.因此,如果你的类中有一个同步方法,这个方法可以被两个不同的线程同时执行,只要每个线程自己创建一个的该类的实例即可. 参考下面的代码: class Foo extends Thread { private int val; public Foo(int v) { val = v; } pub

svn-怎么让外网的两台电脑同步代码?用SVN的话,怎样配置

问题描述 怎么让外网的两台电脑同步代码?用SVN的话,怎样配置 我跟另一个开发者在不同的地方,但是要怎样同步代码呢? 以前用SVN都是用内网的,外网的要怎样用 解决方案 Svn也可用于外网的 解决方案二: 用OneDrive吧. 解决方案三: 想方便,教你一个方法,360云盘PC同步版可以,如果不怕被360窃取的话,本地建svn,然后同步上去

线程-同步代码块的问题。。。。。

问题描述 同步代码块的问题..... 数据库的几张表常用表的数据,我想写到几个静态变量中. 然后提供若干个get方法,同时还有一个set方法重置所有的静态变量. 请问如何能够在set重置方法没完成以前,让get方法的线程等待? 同时几个get方法又不能有相互影响. 就是set没完成,所有的get需要等待,但是不同的get之间没完成不需要等待. 来人啊... 解决方案 http://my.oschina.net/tinglanrmb32/blog/339661 解决方案二: http://blog

银行取款[多线程]{使用同步代码块确保线程同步}

经典例子:老婆(朱丽叶)老公(罗密欧),使用银行卡和存折,或者网银等,同时对同一账户操作的安全问题. 此处用多线程实现,同时取款的模拟实现,使用同步代码块确保线程同步,查看取款安全隐患问题,代码如下: --------------------------------------------------------------------------------------------------------------------------------------  * 线程同步 :使用同步块

基本线程同步(五)使用Lock同步代码块

声明:本文是< Java 7 Concurrency Cookbook >的第二章,作者: Javier Fernández González     译者:许巧辉 校对:方腾飞 使用Lock同步代码块 Java提供另外的机制用来同步代码块.它比synchronized关键字更加强大.灵活.它是基于Lock接口和实现它的类(如ReentrantLock).这种机制有如下优势: 它允许以一种更灵活的方式来构建synchronized块.使用synchronized关键字,你必须以结构化方式得到释

JAVA里synchronized同步代码块的一点疑问

问题描述 代码如下:public class SomeObj { public void print(int i){ System.out.println(Thread.currentThread().getName()+DateHelper.getNow()+ " " + i); try { wait(1000); } catch (InterruptedException e) { e.printStackTrace(); } }}public class ThreadA exte

java编程播放声音只有画面没有声音,代码没有错误,怎么解决

问题描述 java编程播放声音只有画面没有声音,代码没有错误,怎么解决 package audio; import java.applet.*; import java.awt.*; import java.awt.event.*; import java.applet.AudioClip; public class sounda extends Applet implements ActionListener { /* */ Label lb; //标签,显示使用类方法的信息 AudioCli