找回密码
 欢迎注册中国音画网

QQ登录

只需一步,快速开始

中国音画网
标识下载

在线书法生成器
(全矢量图)

中国音画网
网页加密器

中国音画网
全屏帖代码

独立上传
空间申请

FTP软件
下载

楼主: 红叶

求助各位音画老师

[复制链接]
发表于 2009-8-22 09:09 | 显示全部楼层
和你的版本差不多,看看那里不同

<HTML xmlns:v>
<style>
v\:*{behavior:url(#default#VML)}
v\:textpath{font-family:经典繁中变_gb2312;font-size:26px;v-text-align:left}
</style>
</head>
<body bgcolor="#000000">
<img width=1024 height=600

src="http://www.nh361.com/bbs/attachments/20090820_afb1f7f264b444cc20b5e0iCpyDSkkUe.jpg">
<p align="center">
<xmp id=xLyric style=display:none>

[00:04.05]一生的朋友
[00:06.46]作词:陈乐融
[00:27.87]那么多心酸
[00:29.38]那么多快乐
[00:32.05]我们都经历过
[00:37.27]回忆终究会慢慢褪色
[00:42.26]彼此还拥有过
[00:48.82]年少的轻狂
[00:50.15]算不算承诺
[00:53.06]我们曾期盼过
[00:58.05]美好的旅程也藏着寂寞
[01:03.25]到现在才懂得
[01:11.21]你是我一生的朋友
[01:16.06]不管人世变幻知心有几个
[01:22.65]明天也许有雨有风
[01:27.67]我们眼里还有彩虹
[01:56.28]那么多心酸
[01:59.79]那么多快乐
[02:01.25]我们都经历过
[02:07.57]回忆终究会慢慢褪色
[02:12.89]彼此还拥有过
[02:17.21]年少的轻狂
[02:20.57]算不算承诺
[02:22.36]我们曾期盼过
[02:27.38]美好的旅程也藏着寂寞
[02:33.64]到现在才懂得
[02:41.54]你是我一生的朋友
[02:45.29]不管人世变幻知心有几个
[02:51.98]明天也许有雨有风
[02:56.24]我们眼里还有彩虹
[03:01.41]你是我一生的朋友
[03:06.08]不管沧海桑田谁为谁守候
[03:12.88]人生就旧一场大梦
[03:17.23]何不笑看明月清风
[03:23.84]人生就旧一场大梦
[03:28.20]何不笑看明月清风
</xmp>
</body>
</html>
<script>
window.onerror=function(){return false}
start()
function start(){
browser_ini()
timer_ini()
emv_ini()
lrc.setData(oo("xLyric").innerHTML)
lrc.write("歌曲载入中...","l")
emv.play("http://listen.idj.126.net/dqbd/090427/010098.mp3")
}
function emv_ini(){
var l
window.emv={}
lrc_ini()
l="<div id=bxEmv style=position:absolute;left:-50;top:490;width:1024;height:70>"
        l+="<div id=bxEmvScreen

style=position:absolute;overflow:hidden;left:50;top:0;width:1024;height:70;>"
        l+="</div>"
l+="</div>"
l+="<object classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 id=mplayer width=250

height=560 style=display:none></object>"
insHtm(document.body,l)
emv.play=function(url){oo("mplayer").FileName=url;oo("mplayer").Play()}
emv.time=function(){
  var mPos
  var n1,o,len,w,per,n0,n1
  if(mplayer==null)
   return
  mPos=mplayer.CurrentPosition
  n=-1
  for(i=0;i<lrc.arr.length;i++){
   if(mPos<lrc.arr[i].slice(0,"|")*1)
    break
   n=i
  }
  if(n==-1)
   return
  if(lrc.i!=n){
   if(n==0)
    lrc.write(lrc.arr[n].slice("|"),"l")
   if(n!=lrc.i+1)
    lrc.write(lrc.arr[n].slice("|"),n%2==0?"l":"r")
   if(n<lrc.arr.length-1)
    lrc.write(lrc.arr[n+1].slice("|"),n%2==1?"l":"r")
   lrc.i=n
  }
  n0=lrc.arr[n].slice(0,"|")
  n1=lrc.arr.length>n+1?lrc.arr[n+1].slice(0,"|"):4
  o=oo("bxCaption_"+(n%2==0?"l":"r")+"_cover")
  len=o.time!=""?o.time*1:n1-n0
  per=(mPos-n0)/len
  for(i=0.001;i<1;i+=0.001){
   per1=lrc.getRealPos(o,i)
   if(per1>=per)
    break
  }
  o.style.width=o.width*i
}
timer.add("emv.time()")
}
function lrc_ini(){
window.lrc={}
lrc.wordPer=function(str,pos){
  return str.slice(0,pos).replace(/[^\x00-\xff]/g,"  ").length/str.replace(/[^\x00-\xff]/g,"

").length
}
lrc.setData=function(str){
  var l,a,i,ad,n,j
  str=str.replace(/\|/g,"").replace(/\r\n/g,"\n")
  str=str.replace(/\[(\d\d)\:(\d\d)\.(\d\d)\]/g,function($0,$1,$2,$3){return

($1*60+$2*1+$3/100)+"|"})
  a=str.split("\n")
  lrc.arr=new Array()
  for(i=0;i<a.length;i++){
   ad=a[i].split("|")
   for(j=1;j<ad.length;j++){
    lrc.arr.add(ad[j-1]+"|"+ad[ad.length-1])
   }
  }
  lrc.i=-1
  sortIndex=0
  sortDir=1
  lrc.arr.sort(sortFoo)
}
lrc.getRealPos=function(obj,pos){
  var a=obj.path,zoom=obj.zoom,pos1=pos*zoom
  var a,i,ad
  for(i=0;i<a.length;i++){
   ad=a[i]
   if(pos<=ad[0])
    continue
   if(pos>ad[0]&&pos<=ad[1])
    pos1+=(zoom*ad[2]-zoom)*(pos-ad[0])
   else
    pos1+=(zoom*ad[2]-zoom)*(ad[1]-ad[0])
   
  }
  return pos1
}
lrc.write=function(str,pos){
  var word=str,style=""
  var x,y,l,w,w1,o,a,i,ad
  if(/^\<.+\>/.test(str)){
   word=str.slice(">")
   style=str.slice(1).slice(0,">")
  }
  w=word.replace(/[^\x00-\xff]/g,"  ").length*13+2
  if(pos=="l"){
   x=60
                            y=19
  }
  else{
   x=950-w
   y=19
  }
l="<div id=bxCaption_"+pos+"

style='position:absolute;left:"+x+";top:"+y+";width:"+w+";height:32;overflow:hidden'>"
  l+="<v:curve to=800,1 strokecolor=black strokeweight=3 style=position:absolute;top:14>"
  l+="<v:path textpathok=t /><v:textpath on=t string='"+word+"' /></v:curve>"
  l+="<v:curve to=800,1 strokecolor=#ffffff fillcolor=#ffffff strokeweight=1

style=position:absolute;top:14>"
  l+="<v:path textpathok=t /><v:textpath on=t string='"+word+"' /></v:curve>"
  l+="</div>"
  l+="<div id=bxCaption_"+pos+"_cover width="+w+"

style=position:absolute;left:"+x+";top:"+y+";width:0;height:32;overflow:hidden>"
  l+="<v:curve to=800,1 strokecolor=white strokeweight=3 style=position:absolute;top:14>"
  l+="<v:path textpathok=t /><v:textpath on=t string='"+word+"' /></v:curve>"
  l+="<v:curve to=800,1 strokecolor=#ff0000 fillcolor=#ff0000 strokeweight=1

style=position:absolute;top:14>"
  l+="<v:path textpathok=t /><v:textpath on=t string='"+word+"' /></v:curve>"
  l+="</div>"
  odel("bxCaption_"+pos)
  odel("bxCaption_"+pos+"_cover")
  insHtm("bxEmvScreen",l)
  o=oo("bxCaption_"+pos+"_cover")
  o.time=style.get("time")
  o.path=new Array()
  len1=1
  a=style.split(";")
  for(i=0;i<a.length;i++){
   if(!/(\d+):(\d+)/.test(a[i]))
    continue
   if(/(\d+)-(\d+):(\d+)/.test(a[i])){
    ad=/(\d+)-(\d+):(\d+)/.exec(a[i])
    ad[0]=lrc.wordPer(word,ad[1]-1)
    ad[1]=lrc.wordPer(word,ad[2]*1)
    ad[2]=ad[3]
   }
   else{
    ad=/(\d+):(.+)/.exec(a[i])
    ad[0]=lrc.wordPer(word,ad[1]-1)
    ad[1]=lrc.wordPer(word,ad[1]*1)
   }
   len1+=(ad[1]-ad[0])*(ad[2]-1)
   o.path.add(ad)
  }
  o.zoom=1/len1
}
}
function browser_ini(){
window.isIE=navigator.userAgent.indexOf("IE")>0
window.isIE5=navigator.userAgent.indexOf("IE 5.0")>0
String.prototype.trim=function(){return this.replace(/(^[\s]*)|([\s]*$)/g,"")}
String.prototype.inc=function(s1,s2){if(s2==null){s2=","};return (s2+this+s2).indexOf

(s2+s1+s2)>-1?true:false}
String.prototype._slice="".slice
String.prototype.slice=function(n1,n2){var v,b1=typeof(n1)=="number",b2=typeof(n2)

=="number";if(!b1||typeof(n2)=="string"){v=eval("this._slice("+(b1?n1:this.indexOf(n1)+

(n2==null?1:0)+(this.indexOf(n1)==-1?this.length:0))+(n2==null?"":(b2?n2:(this.indexOf(n2)

==-1?"":","+this.indexOf(n2))))+")")}else{v=isIE5&&n1<0&&n2==null?this._slice(this.length-

1):eval("this._slice(n1"+(n2==null?"":","+n2)+")")}return v}
String.prototype.get=function(str,def){if(this.inc(str,";"))return 1;var a=this.match(new

RegExp("(^|;)"+str+":[^;]*"));return a==null||str==""?(def==null?"":def):a[0].replace

(";","").slice(str.length+1)}
Array.prototype.add=function(key){this[this.length]=key}
window.oo=function(obj){return typeof(obj)=="string"?document.getElementById(obj):obj}
window.insHtm=function(op,html,inEnd){op=oo(op);if(isIE){op.insertAdjacentHTML

(inEnd==null?"beforeend":"afterbegin",html)}else{var r=op.ownerDocument.createRange

();r.setStartBefore(op);eval("op."+(inEnd==null?"appendChild":"insertBefore")

+"(r.createContextualFragment(html),op.firstChild)");}}
window.odel=function(obj){if(oo(obj)!=null){oo(obj).parentNode.removeChild(oo(obj))}}
if(!isIE){
     HTMLElement.prototype.contains=function(node){if(!node)return false;do if(node==this)

{return true}while(node=node.parentNode){return false}}
  Event.prototype.__defineGetter__("srcElement",function(){var node=this.target;while

(node.nodeType!=1){node=node.parentNode}return node})
  Event.prototype.__defineGetter__("toElement",function(){return this.relatedTarget})
}
}
function timer_ini(){
window.timer={}
timer.handle=null
timer.queue=""
timer.i=0
timer.add=function(key){if(!timer.queue.inc(key,";")){timer.queue+=key+";"}}
timer.del=function(key){timer.queue=move.queue.replace(key+";","")}
timer.inv=function(){
  window.clearTimeout(timer.handle)
  eval(timer.queue)
  timer.i++
  timer.handle=window.setTimeout("timer.inv()",10)
}
timer.inv()
}
function sortFoo(v1,v2){
    var s1=v1.split("|")[sortIndex],s2=v2.split("|")[sortIndex]
    if(!isNaN(s1)&&!isNaN(s2)){
  s1*=1
  s2*=1   }
return (s1==s2?0:(s1>s2?1:-1))*sortDir
}
</script>

<EMBED style="LEFT: 0px; POSITION: absolute; TOP: 50px"  

src=http://www.nh361.com/bbs/attachments/20090820_48d0a9d5c224d269291fG4Mj83pjqCYI.swf
  width=1000 height=400 type=application/x-shockwave-flash quality="high"

wmode="transparent">
</body></html>
回复 支持 反对

使用道具 举报

本版积分规则

Archiver|手机版|小黑屋|中国音画网

GMT+8, 2025-7-4 18:16 , Processed in 0.029502 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表