返回列表 发帖

做音乐帖简明教程(为思雨1234制作 高手莫入)

这是制作教程的边框:

加入内容

 

这是边框代码:

<TABLE cellSpacing=25 borderColorDark=#344228 cellPadding=0 width="100%" align=center borderColorLight=#7ea063 background=http://xz1.2000y.net/348114/uploadpic/2004122517350623.gif border=1>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=15 borderColorDark=#344228 cellPadding=0 width="100%" align=center borderColorLight=#7ea063 background=http://xz1.2000y.net/348114/uploadpic/20041225173521566.gif border=1>
<TBODY>
<TR>
<TD>
<TABLE cellPadding=0 width="100%" background=http://xz1.2000y.net/348114/uploadpic/20041114959024242.jpg border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=5 borderColorDark=#344228 cellPadding=0 width="100%" borderColorLight=#7ea063 background=http://xz1.2000y.net/348114/uploadpic/20041225172949648.jpg border=1>
<TBODY>
<TR>
<TD>
<TABLE cellPadding=0 width="100%" background=http://xz1.2000y.net/348114/uploadpic/20041114959024242.jpg border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=5 borderColorDark=#344228 cellPadding=0 width="100%" borderColorLight=#7ea063 background=http://xz1.2000y.net/348114/uploadpic/20041225172949648.jpg border=1>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" background=http://xz1.2000y.net/348114/uploadpic/20041130223049305.jpg border=0>
<TBODY>
<TR>
<TD>
<P align=center><FONT color=#f0ffff size=5><STRONG><EM>加入内容</EM></STRONG></FONT></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

 

以下是教程

 

 

不懂代码也同样可以做精美的音画帖

 

Discuz!代码模式下做边框

 

1.在论坛发帖处或回复处(不是快速回复)点击Discuz! 代码模式

2.勾选“启用HTML代码 禁用 Smilies

3.复制粘贴上面的边框代码

4.点击”所见即所得模式“,就看见边框了!

现在,就可以进行下面的操作啦!


在所见所即所得模式下添加文字
   

1、用鼠标点表格的中间处,你看到光标在闪动,这时你就能写入文字了,也可以复制粘贴文字。

2、编辑表格中的文字

将鼠标放到表格中文字的最前面,点击,然后横拖鼠标选中,你看到字的背景颜色是蓝色时你就可以操作了。

3、编辑文字

居中:点居中图标

字体:选择你喜欢的字体,有很多选项

字号:论坛中的编辑器是数字越大字也就越大,论坛最大为7号字。

以嵌套方式调用CSS样式来定义字体,这种方法可以让我们最大限度地设置字号大小,实现方法也很简单,只需在<font>标签里用以下代码替换纯HTML原来的元素即可。

代码:

<font color=#ff0000 style="font-size: 100pt;font-family:华文行楷,隶书,黑体">春天</font>
改变font-size: 100pt的数字即可改变文字的大小。

字体颜色:点开A自由选色,满意为止)

 

在所见所即所得模式下添加你喜欢的图片

 

1.选找到你喜欢的图片,按住鼠标从上往下拉,图片变黑,右击,点复制。

2.用鼠标点击你要在边框中添加图片处,你看到光标在闪动,就可粘贴你喜欢的图片了。

3.调整图片的位置

按住鼠标左键从图片上面往下拉,待图片变黑,就可进行下面的操作:

居左:点居左图标

居中:点居中图标

居右:点居右图标  

还可对图片的位置进行微调:   

在图片的上部点击,光标闪动,按确认键,可向下调。

在图片的左则点击,光标闪动,敲空格键,可向右调。

 


 

 

在所见即所得模式Discuz! 模式下添加FLSH

1.选好插入flash的代码和flash 如:

<EMBED height=400 pluginspage=http://www.macromedia.com/go/getflashplayer src=地址 type=application/x-shockwave-flash width=200 quality="high"></EMBED>

http://bbs1.hnol.net/200504/tianshi/yinhua/dnzsjch/e.swf

2.在所见即所得模式下,在你要添加的地方输入几个文字,我输入的是”添加FLASH“。

3.点击“Discuz! 模式”,在代码中找到“添加FLASH”几个文字,用左键抹黑,粘贴前面复制的代码即可。

 

在所见所即所得模式和Discuz! 下添加播放器和音乐

 

1.选好播放器代码(<EMBED style="FILTER: Xray" src=音乐地址width=300 height=40 type=audio/mpeg loop="-1" autostart="true" volume="0"></EMBED>复制到记事本上。

2.找好你要添加的音乐(http://www.73cq.net/ad/女儿情.mp3),把音乐地址代入播放器的代码中。

3.在边框中要添加播放器的地方输入几个字(如:添加音乐)。

4.点" Discuz!代码模式",复制播放器代码,抹黑刚添加的几个字(添加音乐),粘贴播放器代码到抹黑处。

这下你就可以点发新话题,发表自己的帖子啦!一切OK!

 

 

署名:某某制作

 

[ 本帖最后由 wzyh 于 2007-12-21 09:23 编辑 ]
2

评分人数

  • dqpddd

  • 云佛纳

建议开两个浏览器窗口,一步一步照着做!我想你一定会的…!祝你成功!

TOP


点歌代码:





当前播放曲目: 十五的月亮


十五的月亮
爱的奉献-韦唯
边疆处处赛江南
红星闪闪
阿拉伯风格绮想曲

[ 本帖最后由 wzyh 于 2007-12-22 23:00 编辑 ]

TOP

<p align="center">
<EMBED style="FILTER: invert()" id=mp3Player src=http://www.dabaoku.com/bjyinyue/mid/1.mid width=400 height=66 type=audio/mpeg AutoStart="1" EnableContextMenu="-1" loop="1" ShowControls="-1" ShowStatusBar="-1" ShowDisplay="0">
<br><br><br>

<table width="400" height="50" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor=#000000>
<tr>
<td>
当前播放曲目:
</td>
<td><font style='CURSOR: hand; width:220px; color: #FF00ff; FONT-FAMILY: 华文新魏; FONT-SIZE: 19pt;' id=titleid>十五的月亮</font><br><br>
<font style='CURSOR: hand;color: #00FF00;' onclick="mp3Player.FileName=this.value;titleid.innerText='十五的月亮'" value=http://www.dabaoku.com/bjyinyue/mid/1.mid>
</font>
</td>
<td><img src=http://www.sqkz.com/yyy/tb/gb.gif>
</td></tr></table>

<br>

<table width="300" height="20" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor=#000000>

<tr><td>
<font style='CURSOR: hand;color: #00FF00;' onclick=mp3Player.FileName=this.value;titleid.innerText='十五的月亮' value=http://www.dabaoku.com/bjyinyue/mid/1.mid>
十五的月亮
</font>
</td></tr>

<tr><td>
<font style='CURSOR: hand;color: #00FF00;' onclick=mp3Player.FileName=this.value;titleid.innerText='爱的奉献-韦唯' value=http://www.dabaoku.com/bjyinyue/mid/10.mid>
爱的奉献-韦唯
</font>
</td></tr>

<tr><td>
<font style='CURSOR: hand;color: #00FF00;' onclick=mp3Player.FileName=this.value;titleid.innerText='边疆处处赛江南' value=http://www.dabaoku.com/bjyinyue/mid/57.mid>
边疆处处赛江南
</font>
</td></tr>

<tr><td>
<font style='CURSOR: hand;color: #00FF00;' onclick=mp3Player.FileName=this.value;titleid.innerText='红星闪闪' value=http://www.dabaoku.com/bjyinyue/mid/196.mid>
红星闪闪
</font>
</td></tr>

<tr><td>
<font style='CURSOR: hand;color: #00FF00;' onclick=mp3Player.FileName=this.value;titleid.innerText='阿拉伯风格绮想曲' value=http://www.dabaoku.com/bjyinyue/mid/5.mid>
阿拉伯风格绮想曲
</font>
</td></tr>

</table>


按需要复制蓝色代码,换掉歌曲名和地址.
粉红色是开始播放曲.

可去掉表格,按需要各部分随便放.
但标题前面有"当前播放曲目"等字样,最好做表格,因为歌名长短不一时他会跟着走.

[ 本帖最后由 wzyh 于 2007-12-20 19:53 编辑 ]

TOP

学习音画的一点体会在我第一次见到优美的音画帖时,内心很激动,怎么还有这么美的东西,一心想把它保存下来,可是怎么都做不到,在一次寻问高手后才得知,音画帖是用代码做的,是无法保存在本地来欣赏(其实是可以保存的),从此我才知道还有代码一说,同时朋友告诉我学习音画的一些技巧:
1.找教程看.(但初次接触到代码往往都是头发晕,好象在看天书)看多了您就可以从中发现代码的一些规律来,虽说有很多代码我至今也不知他是什么意思,不过也不要紧,因为那都是定式,你也不用去管他,留待以后慢慢去熟悉.
2.在转帖中学习.这是很关键的,每当你看到一幅好音画作品时,你要研究他的代码组成,(如何找到它的代码呢?你可以采用以下的步骤:

方法一:

查看源代码,复制保存下来,你会发现代码是很有规律性的:


(第一层:也就是背景底层,该层决定画面距左边距离LEFT: -160px;负数越大越往左, 宽度:WIDTH: 850px; 通常不大于1024全屏,及离顶部距离TOP: 80px,一般在50-200之间,这些基本数据都在此层调整)


<TABLE id=table1 style="LEFT: -160px; WIDTH: 850px; POSITION: relative; TOP: 80px" cellSpacing=50 borderColorDark=#007500 cellPadding=0 borderColorLight=#ff8533 background=(背景图地址)border=0>

(第二层:边框)
<TBODY>
<TR>
<TD>
<DIV align=center>
<TABLE borderColor=#424200 cellSpacing=5 borderColorDark=#000000 cellPadding=0 width="93%" background=http://www.sunjelly.com/sucai/yumao/J2.jpg border=1>

(第三层:边框)
<TBODY>
<TR>
<TD width="100%">
<TABLE borderColor=#424200 cellSpacing=25 borderColorDark=#000000 cellPadding=0 width="100%" background=http://www.sunjelly.com/sucai/hua/harunouta6a.jpg border=1>


(第四层:边框,视情况可以继续增加边框层)
<TBODY>
<TR>
<TD align=middle width="100%">
<TABLE borderColor= #424200 cellSpacing=5 borderColorDark=#000000 cellPadding=0 width="100%" background=http://www.sunjelly.com/sucai/zb/5/d01_1_050620.jpg border=1>


(标题文字...你希望文字在哪出现就放在哪里)
<TBODY>
<TR>
<TD align=middle>
<p  align=center>    注:<p align="#"> 代表文字(同时也适用于图片)在画面中的对齐方式,#号可为 left左对齐; center中对齐; right右对齐;
<FONT style="FONT-SIZE: 30pt; FILTER: shadow(color=#FFFFFF);WIDTH: 100%; COLOR: #00BB00; LINE-HEIGHT: 150%; FONT-FAMILY: 方正行书"><B>精美溶图欣赏</B></FONT></P><BR><BR>

(主题图片:图片可以是单幅也可以是多幅)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=564 background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_79f334cd8a32c26.jpg height=846></TD></TR></TBODY></TABLE> <BR>
(在该图片上加FLASH)
<EMBED style="LEFT: 80px; WIDTH: 600px; POSITION: absolute; TOP: 100px; HEIGHT: 846px" align=right src=http://imgfree.21cn.com/free/flash/9.swf width=600 height=846 type=application/octet-stream wmode="transparent" quality="high" ;;>


(主题图片)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=564 height=846 background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_128003aafbe1237.jpg height=502></TD></TR></TBODY></TABLE><BR>
(在该图片上加FLASH)
<EMBED style="LEFT: 60px; WIDTH: 500px; POSITION: absolute; TOP: 750px; HEIGHT: 846px" align=center src=http://imgfree.21cn.com/free/flash/45.swf width=600 height=846 type=application/octet-stream wmode="transparent" quality="high" ;;>


(主题图片)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=564 background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_242e9cdf09c174f.jpg height=846></TD></TR></TBODY></TABLE><BR>
(在该图片上加FLASH)
<EMBED style="LEFT: 50px; WIDTH:600px; POSITION: absolute; TOP: 1050px; HEIGHT: 846px" align=right src=http://imgfree.21cn.com/free/flash/9.swf width=600 height=846 type=application/octet-stream wmode="transparent" quality="high" ;;>


(主题图片)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=846 height=564 background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_63b30a5193ba855.jpg height=864></TD></TR></TBODY></TABLE><BR>
(在该图片上加FLASH)
<EMBED style="LEFT: 80px; WIDTH:600px; POSITION: absolute; TOP: 1300px; HEIGHT: 846px" align=right src=http://imgfree.21cn.com/free/flash/9.swf width=600 height=846 type=application/octet-stream wmode="transparent" quality="high" ;;>


(主题图片)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=564
background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_07e6012b520b046.jpg height=846></TD></TR></TBODY></TABLE><BR>


(主题图片)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=564
background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_973eaf75b556b59.jpg height=846></TD></TR></TBODY></TABLE><BR>


(主题图片)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=768
background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_0b6f0895b1c1c7b.jpg height=585></TD></TR></TBODY></TABLE><BR>


(主题图片)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=564
background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_8fead7c13751ea7.jpg height=846></TD></TR></TBODY></TABLE><BR>


(主题图片)
<TABLE border=0>
<TBODY>
<TR>
<TD align=middle width=564
background=http://i.topzj.com/u/Mon_0701/Day_4/195550_4255_bbb8d996ad6d2ee.jpg height=846></TD></TR></TBODY></TABLE><BR>


(落款文字)
<p  align=center><FONT style="FONT-SIZE: 30pt; FILTER: shadow(color=#FFFFFF); WIDTH: 100%; COLOR: #82D900; LINE-HEIGHT: 150%; FONT-FAMILY: 方正行楷"><B>编辑:逍遥公子<BR>07.12.20</B></FONT></P>


(音乐)
<EMBED src=http://www.greengra.com/Marc%20Anthony%20-%20Dimelo%20-%2001%20-%20Track%20%201.mp3 width=0 height=0 hidden=true type=audio/x-pn-realaudio-plugin autostart="true" loop="true"
<DIV></DIV><BR></DIV>
这里的width(宽)=0 height(高)=0意思是播放器不可见,如要想可见请设置宽高即可

(代码结束语)
</TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
<DIV><BR>
<DIV></DIV><BR></DIV>
</TD></TR></TBODY></TABLE>
<DIV></DIV><BR></DIV>


(代码结尾空行字符)
<BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR>

每一个循环就代表一张图片,一幅音画会有很多图片组成,所以他有规律性.你可以把代码中的连接地址复制到浏览器中看看是音画中的哪张图片,从而领悟出音画帖的结构.




方法二:

在音画帖页面点右键,查看源代码或点查看/源文件,在打开的记事本中找出该帖的代码,一般音画帖都是以:<TABLE id=table1 style="LEFT: -160px; WIDTH: 850px; POSITION: relative; TOP: 80px".......字符开头,以这些字符结尾:</TD></TR></TBODY></TABLE>
<DIV></DIV><BR></DIV>
<BR><BR><BR><BR>


把你找到的代码保存起来慢慢领会,这是很关键的,当你对代码有所领悟后,就可以试着发帖,但一定不要心急,不要想着一次就会成功,高手也很难保证一次就OK,也需要不停地调整数据才行.



特别注意:边框是从第一层的背景层开始,一层一层往内收缩,一层压一层,视内容可以做很多的边框层,每增加一层边框相应增加一组代码.


Quote:
友情提示:学习音画最有效的捷径就是在转帖中学习,这是个非常重要的方法.

TOP

歌词同步代码测试代码:
<html>
<head>
<meta http-equiv=Content-Type content=text/html; charset=gb2312>
<title>歌词同步测试代码</title>
<STYLE type=text/css>
TD { FONT-SIZE: 9pt; LINE-HEIGHT: 17px; }
BODY{
FONT-SIZE: 9pt;
LINE-HEIGHT: 17px;
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; cursor: default; }
#lrcbox { color:#00FF00 }
#lrcfilter { filter: alpha(opacity=0) }
#lrcbc { color:#FFFF33 }
</STYLE>
</head>
<script language="JavaScript">
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<span id="lrcdata"><!--
[ti:青春日记]
[ar:沙宝亮]
[al:逍遥公子欢迎你]
[00:01.25]青春日记(逍遥记录编辑)
[00:07.03]作词:谭克媛   作曲:侯均
[00:14.94]编曲:孟可
[00:20.73]演唱:沙宝亮
[00:26.41]我在青春的日记里流浪
[00:31.61]迷惘的脚步一行一行
[00:37.43]走过欢喜走过忧伤
[00:42.50]走过那些莫名的惆怅
[02:19.52][00:48.10]还有那初次动情的地方
[02:24.93][00:53.42]当年龄在记忆里成长
[02:30.65][00:59.00]我的目光我的歌唱
[02:35.77][01:04.24]每一天都在这里珍藏
[02:41.48][01:09.81]我对你谈起的那些梦想
[02:46.82][01:15.48]还有我的年少轻狂
[02:52.38][01:20.87]青春的日记应该充满阳光
[02:57.79][01:26.16]照亮了每一页年轻的时光
[03:29.38][03:03.24][01:31.67]积蓄温暖积蓄力量
[03:34.73][03:08.68][01:37.09]因为我和我的梦正奔跑在路上
[03:40.10][03:14.07][01:42.45]来不及叹息来不及思量来不及回头望
[03:50.72][03:24.40][01:53.17]因为青春正长
--></span>
<center>
<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" id="aboutplayer" width="480" height="240">
<param name="url" value="
http://www.whx.gov.cn/forumimages/200781017311743.wma">
<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;">
<table border="0" cellspacing="0" cellpadding="0" width="100%" id="lrcoll" style="position:relative; top: -20px;" >
<tr><td nowrap height="20" align="center" id="lrcwt1"></td></tr>
<tr><td nowrap height="20" align="center" id="lrcwt2"></td></tr>
<tr><td nowrap height="20" align="center" id="lrcwt3"></td></tr>
<tr><td nowrap height="20" align="center" id="lrcwt4"></td></tr>
<tr><td nowrap height="20" align="center" id="lrcwt5"></td></tr>
<tr><td nowrap height="20" align="center" id="lrcwt6"></td></tr>
<tr><td nowrap height="20" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td nowrap height="20"><span id="lrcwt7" style="height:20"></span></td></tr>
<tr style="position:relative; top: -20px; z-index:6"><td nowrap height="20"><div id="lrcfilter" style="overflow:hidden; width:100%; color:#FFFF33; height:20"></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="lrcbox" style="height:20">歌词加载中</span></td></tr>
<tr style="position:relative; top: -20px; z-index:6;"><td nowrap height="20"><div id="lrcbc" style="overflow:hidden; height:20; width:0;"></div></td></tr>
</table>
</td></tr>
<tr style="position:relative; top: -40px;"><td nowrap height="20" align="center" id="lrcwt8"></td></tr>
<tr style="position:relative; top: -40px;"><td nowrap height="20" align="center" id="lrcwt9"></td></tr>
<tr style="position:relative; top: -40px;"><td nowrap height="20" align="center" id="lrcwt10"></td></tr>
<tr style="position:relative; top: -40px;"><td nowrap height="20" align="center" id="lrcwt11"></td></tr>
<tr style="position:relative; top: -40px;"><td nowrap height="20" align="center" id="lrcwt12"></td></tr>
<tr style="position:relative; top: -40px;"><td nowrap height="20" align="center" id="lrcwt13"></td></tr>
</table>
</div>
</center>
<script language="JavaScript">
var lrc0;
var lrc1;
var min;
lrcobj = new lrcClass(lrcdata.innerHTML.slice(4,-3));

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

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

lrcbc.style.width = 0;
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(/((\[[^\[\]]+\:[^\[\]]+\])+[^\[\r\n]*)[^\[]*/,"\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] = tse-this.oTime;
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] = tse-this.oTime;
}
lrcbc.innerHTML = "<font>"+ this.inr[ii].n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/%=%/g,"</font><font>") +"</font>";
var fall = lrcbc.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 = lrcbc.innerText;
}

for(var ii=0; ii<this.inr.length-1; ii++)
this.min[ii] = Math.floor((this.inr[ii+1].t[0]-this.inr[ii].t[0])*10);
this.min.sort(function(a,b){return a-b});
min = this.min[0]/2;

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;

lrcwt1.innerText = this.retxt(ii-7);
lrcwt2.innerText = this.retxt(ii-6);
lrcwt3.innerText = this.retxt(ii-5);
lrcwt4.innerText = this.retxt(ii-4);
lrcwt5.innerText = this.retxt(ii-3);
lrcwt6.innerText = this.retxt(ii-2);
lrcwt7.innerText = this.retxt(ii-1);
lrcfilter.innerText = this.retxt(ii-1);
lrcwt8.innerText = this.retxt(ii+1);
lrcwt9.innerText = this.retxt(ii+2);
lrcwt10.innerText = this.retxt(ii+3);
lrcwt11.innerText = this.retxt(ii+4);
lrcwt12.innerText = this.retxt(ii+5);
lrcwt13.innerText = this.retxt(ii+6);
this.print(this.retxt(ii));
if(this.dlt==ii-1)
{
clearTimeout(lrc0);
if(lrcoll.style.pixelTop!=0) lrcoll.style.top = 0;
golrcoll(0);
clearTimeout(lrc1);
lrcfilter.filters.alpha.opacity = 100;
golrcolor(0);
}
else if(parseInt(lrcoll.style.top)!=-20)
{
clearTimeout(lrc0);
lrcoll.style.top = -20;
clearTimeout(lrc1);
lrcfilter.filters.alpha.opacity = 0;
}
this.dlt = ii;
}
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>lrcbox.offsetWidth)
bbw = lrcbox.offsetWidth;
lrcbc.style.width = Math.round(bbw);
}

this.retxt = function(i)
{
return (i<0 || i>=this.inr.length)?"":this.inr.n;
}

this.print = function(txt)
{
lrcbox.innerText = txt;
lrcbc.innerText = txt;
}

this.print("欢迎光临—逍遥");
lrcwt1.innerText = "";
lrcwt2.innerText = "";
lrcwt3.innerText = "";
lrcwt4.innerText = "";
lrcwt5.innerText = "";
lrcwt6.innerText = "";
lrcwt7.innerText = "";
lrcfilter.innerText = "";
lrcwt8.innerText = "";
lrcwt9.innerText = "";
lrcwt10.innerText = "";
lrcwt11.innerText = "";
lrcwt12.innerText = "";
lrcwt13.innerText = "";
}

function lrcrun()
{
with(aboutplayer)
{
lrcobj.run(controls.currentPosition);
}
if(arguments.length==0) setTimeout("lrcrun()",10);
}

function golrcoll(s)
{
lrcoll.style.top = -(s++)*2;
if(s<=9)
lrc0 = setTimeout("golrcoll("+s+")",min*10);
}

function golrcolor(t)
{
lrcfilter.filters.alpha.opacity = 110-(t++)*10;
if(t<=10)
lrc1 = setTimeout("golrcolor("+t+")",min*10);
}
window.onerror = function()
{return true;}
lrcrun();
</script>
</body>
</html>

复制粘贴到http://www.17zm.net/tools/DIY.htm运行HTML”即可测试!
播放代码
<style>
v\:*{behavior:url(#default#VML)}
v\:textpath{font-family:楷体_gb2312;font-size:26px;v-text-align:left}
</style>
<body>
<xmp id=xLyric style=display:none>
[ti:青春日记]
[ar:沙宝亮]
[al:逍遥公子欢迎你]
[00:01.25]青春日记(逍遥记录编辑)
[00:07.03]作词:谭克媛   作曲:侯均
[00:14.94]编曲:孟可
[00:20.73]演唱:沙宝亮
[00:26.41]我在青春的日记里流浪
[00:31.61]迷惘的脚步一行一行
[00:37.43]走过欢喜走过忧伤
[00:42.50]走过那些莫名的惆怅
[02:19.52][00:48.10]还有那初次动情的地方
[02:24.93][00:53.42]当年龄在记忆里成长
[02:30.65][00:59.00]我的目光我的歌唱
[02:35.77][01:04.24]每一天都在这里珍藏
[02:41.48][01:09.81]我对你谈起的那些梦想
[02:46.82][01:15.48]还有我的年少轻狂
[02:52.38][01:20.87]青春的日记应该充满阳光
[02:57.79][01:26.16]照亮了每一页年轻的时光
[03:29.38][03:03.24][01:31.67]积蓄温暖积蓄力量
[03:34.73][03:08.68][01:37.09]因为我和我的梦正奔跑在路上
[03:40.10][03:14.07][01:42.45]来不及叹息来不及思量来不及回头望
[03:50.72][03:24.40][01:53.17]因为青春正长
</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://www.whx.gov.cn/forumimages/200781017311743.wma")
}
function emv_ini(){
var l
window.emv={}
lrc_ini()
l="<div id=bxEmv style=position:absolute;left:100;top:200;width:600;height:460>"
l+="<div style=position:absolute;left:0;top:0;width:600;height:460;></div>"
l+="<div id=bxEmvScreen style=position:absolute;overflow:hidden;left:19;top:26;width:560;height:360;>"
l+="</div>"
l+="</div>"
l+="<object classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 id=mplayer width=250 height=200 style=display:none></object>"
insHtm(document.body,l)
emv.play=function(url){oo("mplayer").FileName=url;oo("mplayer").Play()}
emv.time=function(){
  var mPos=mplayer.CurrentPosition,n=lrc.i
  var n1,o,len,w,per,n0,n1
  n1=n<lrc.arr.length-1?lrc.arr[n+1].slice(0,"|")*1:9999
  if(n1<mPos){
   lrc.i++
   n++
   if(n==0)
    lrc.write(lrc.arr[n].slice("|"),"l")
   if(n<lrc.arr.length-1)
    lrc.write(lrc.arr[n+1].slice("|"),n%2==1?"l":"r")
  }
  if(n>=0){
   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.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
   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=40
   y=285
  }
  else{
   x=520-w
   y=315
  }
  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=white fillcolor=white 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=blue fillcolor=blue 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))
    continue
   if(/(\d+)-(\d+):(\d+)/.test(a)){
    ad=/(\d+)-(\d+):(\d+)/.exec(a)
    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)
    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>

TOP

回复 #7 我的森林 的帖子

网上现成的边框很多,平时注意收集,随用随取。也可自己制作。边框的制作另发。

TOP

回复 #9 我的森林 的帖子

先学简单的制作!

TOP

中国人
http://www.wangziwenzhai.com/images/bg.mp3
[00:00.00]歌手:刘德华
[00:00.00]歌名:中国人
[00:00.00]逍遥记录编制

[00:18.00] 曲: 陈耀川  词: 李安修  编: 涂惠元/江港生
[01:35.00][00:25.00]    五千年的风和雨啊  藏了多少梦
[01:40.00][00:30.00]    黄色的脸黑色的眼  不变是笑容
[01:47.00][00:37.00]    八千里山川河岳  像是一首歌
[01:52.00][00:42.00]    不论你来自何方  将去向何处

[02:47.00][01:59.00][00:49.00]    一样的泪  一样的痛
[02:53.00][02:05.00][00:55.00]    曾经的苦难  我们留在心中
[02:59.00][02:11.00][01:00.00]    一样的血  一样的种
[03:05.00][02:17.00][01:07.00]    未来还有梦  我们一起开拓
[03:25.00][03:13.00][01:12.00]    手牵着手不分你我  昂首向前走
[03:31.00][03:19.00][01:18.00]    让世界知道我们都是中国人
[02:42.00]欢迎光临

TOP

照葫芦画瓢,适合新手入门学习制作音画帖

很多朋友想学做音画作品,虽然做帖子的教材很多,但对初学者来说刚接触代码就感到很烦喔,也摸不着头绪,不知从何着手,为了提高大家学音画的兴趣,作了一个简单的代码帖供初学音画的朋友照葫芦画瓢,只要你把这些代码复制下去,照葫芦画瓢你就会掌握做帖子的方法与技巧,而且可以对照代码更换你自已喜欢的背景、图片,还有加文字,换音乐等,我想当你欣赏到这些漂亮的音画作品时,它一定会带给你天天好心情,祝大家开心快乐!

 

 

帖子标题

 


文字 

 


文字

 


 

文字

 


 

文字



加入播放器

 

编辑制作[落款]

[ 本帖最后由 wzyh 于 2007-12-20 20:48 编辑 ]

TOP

返回列表