前言:以下內(nèi)容是本人在長(zhǎng)期作帖實(shí)踐中收集、整理、總結(jié)而成,轉(zhuǎn)帖時(shí)請(qǐng)不要隨意改動(dòng)。謝謝!
------
dllc1234提供
一、常用作帖代碼:
1、定位貼圖及羽化:
<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px"第1圖>
<IMG style="FILTER: Alpha(opacity=100,style=2)" height=500 src="地址" width=1000></DIV>
2、定位貼flash:
<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
<EMBED src=地址 width=1000 height=800 type=application/x-shockwave-flash quality="high" wmode="transparent"第一個(gè)FLASH></EMBED></DIV>
3、定位貼flash及半部羽化:
<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px"上半部羽化的FLASH>
<EMBED style="FILTER: alpha(opacity=0,finishopacity=100,startx=0,starty=0,finishx=0,finishy=50,style=1)" type=image src="地址" type=application/x-shockwave-flash wmode="transparent" width=1000 height=500></EMBED></DIV>
4、定位貼標(biāo)題
<DIV style="LEFT: 60px; POSITION: absolute; TOP: 100px"定位標(biāo)題>
<SPAN style="FONT-SIZE: 69pt; FILTER: Glow(Color=#000000, strength=0); COLOR: 000000; FONT-FAMILY: WHITE; HEIGHT: 170px" twffan="done"><PRE><P align=right><FONT color=white><UL><UL><B>
<FONT face=GulimChe color=#000000> 標(biāo)題文字 </FONT></B></UL></UL></PRE></SPAN></DIV>
5、立體字標(biāo)題
<div align=center>
<div style="FILTER: shadow(color=#FFf090, strength=15); WIDTH: 720px"><br><font style="LINE-HEIGHT: normal; FONT-VARIANT: normal; FONT-STYLE: normal; COLOR: #a00000; FONT-SIZE: 72pt; FONT-WEIGHT: normal" face=黑體><strong>標(biāo)題文字<br><br></strong></font></div>
</div>
6、彩色字標(biāo)題
<table border=0 cellSpacing=0 cellPadding=0 background=http://image21.360doc.com/DownloadImg/2010/12/2211/7868887_1.gif align=center>
<tbody>
<tr>
<td style="FILTER: chroma(color=#336699">
<table bgColor=#e4f4e8 align=center>
<tbody>
<tr>
<td align=middle><font style="FONT-SIZE: 40pt" color=#336699 size=4 face=黑體><strong>360個(gè)人圖書(shū)館 </strong></font></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
7、畫(huà)面定位貼文字(橫排)
<DIV style="LEFT: 320px; POSITION: absolute; TOP: 100px">
<P><FONT color=#fff0000 size=3>第一行文字<br>第二行文字 </FONT></P></DIV>
8、畫(huà)面定位貼文字(豎排)
<div style="POSITION: absolute; WIDTH: 200px; TOP: 70px; LEFT: 140px">
<marquee height=200 behavior=slide width=200 scrollAmount=1 scrollDelay=100>
<marquee style="WRITING-MODE: tb-rl; LINE-HEIGHT: 100%" direction=up height=200 behavior=slide width=200 scrollAmount=1 scrollDelay=100>
<div style="LINE-HEIGHT: 180%; WIDTH: 30%; FONT-FAMILY: 宋體; COLOR: #00ff00; FONT-SIZE: 12pt">第一列<br>第二列</div>
</marquee></marquee></div>
9、文字豎排滾動(dòng)
<div align=center><br><br>
<marquee height=400 behavior=slide width=900 loop=1 scrollAmount=1 scrollDelay=100>
<marquee style="WRITING-MODE: tb-rl; LINE-HEIGHT: 120%" direction=up height=400 width=900 scrollAmount=1 scrollDelay=100>
<p align=left><font style="LINE-HEIGHT: 180%; FONT-FAMILY: 黑體; COLOR: #000000; FONT-SIZE: 24pt"><strong>北國(guó)風(fēng)光,<br>千里冰封,<br>萬(wàn)里雪飄。<br>望長(zhǎng)城內(nèi)外,<br>惟馀莽莽;<br>大河上下,<br>頓失滔滔。<br>山舞銀蛇,<br>原馳蠟象,<br>欲與天公試比高。<br>須晴日,<br>看紅妝素裹,<br>分外妖嬈。<br><br>江山如此多嬌,<br>引無(wú)數(shù)英雄競(jìng)折腰。<br>惜秦皇漢武,<br>略輸文采;<br>唐宗宋祖,<br>稍遜風(fēng)騷。<br>一代天驕,<br>成吉思汗,<br>只識(shí)彎弓射大雕。<br>俱往矣,<br>數(shù)風(fēng)流人物,<br>還看今朝。</strong></font></p>
</font></marquee></marquee></div>
10、定位帖的開(kāi)頭
<DIV align=center>
<TABLE id=table1 style="LEFT: 0px; WIDTH: 1000px; POSITION: relative; TOP: 0px" height=650 background="圖片地址">
<TBODY>
<TR>
<TD>
11、頁(yè)面做滾動(dòng)條代碼
<TABLE border=1 cellSpacing=0 cellPadding=0 width=500 align=center>
<TBODY>
<TR>
<TD align=middle>
<DIV style="HEIGHT:360px; OVERFLOW: auto"><FONT color=blue size=8 face=黑體>滿(mǎn)江紅 [岳飛] <BR>怒發(fā)沖冠,憑闌處、瀟瀟雨歇。<BR>抬望眼、仰天長(zhǎng)嘯,壯懷激烈。<BR>三十功名塵與土,八千里路云和月。<BR>莫等閑、白了少年頭,空悲切。 <BR>靖康恥,猶未雪;臣子恨,何時(shí)滅。<BR>駕長(zhǎng)車(chē)踏破、賀蘭山缺。<BR>壯志饑餐胡虜肉,笑談渴飲匈奴血。<BR>待從頭、收拾舊山河。朝天闕。 <BR>飛揚(yáng)教育論壇<BR></FONT></DIV></TD></TR></TBODY></TABLE>
12、給圖片加特殊效果代碼:
見(jiàn):
http://www.360doc.com/content/11/1209/16/2904667_171055838.shtml二、常用的作帖標(biāo)簽代碼:
1)貼圖:<img src="圖片地址">
2)加入連接:<a href="所要連接的相關(guān)地址">圖或字</a>
3)在新窗口打開(kāi)連接:<a href="相關(guān)地址" target="_blank">圖或字</a>
4)移動(dòng)字體(走馬燈):<marquee>圖或字</marquee>
5)字體加粗:<b>寫(xiě)上你想寫(xiě)的字</b>
6)字體斜體:<i>寫(xiě)上你想寫(xiě)的字</i>
7)字體下劃線(xiàn): <u>寫(xiě)上你想寫(xiě)的字</u>
8)字體刪除線(xiàn): <s>寫(xiě)上你想寫(xiě)的字</s>
9)字體加大: <big>寫(xiě)上你想寫(xiě)的字</big>
10)字體控制大小:<h1>寫(xiě)上你想寫(xiě)的字</h1> (其中字體大小可從h1-h5,h1最大,h5最小)
11)更改字體顏色:<font color="#value">寫(xiě)上你想寫(xiě)的字</font>(其中value值見(jiàn)顏色表)
12)消除連接的下劃線(xiàn):<a href="相關(guān)地址" style="text-decoration:none">寫(xiě)上你想寫(xiě)的字</a>
13)貼音樂(lè):<embed src="音樂(lè)地址" width="寬度" height="高度" autostart=false>
14)貼flash: <embed src="flash地址" width="寬度" height="高度">
15)貼影視文件:<img dynsrc="文件地址" width="寬度" height="高度" start=mouseover>
16)換行:<br>
17)段落:<p>段落</p>
18)原始文字樣式:<pre>正文</pre>
19)換帖子背景:<body background="背景圖片地址">
20)固定帖子背景不隨滾動(dòng)條滾動(dòng):<body background="背景圖片地址" body bgproperties=fixed>
21)定制帖子背景顏色:<body bgcolor="#顏色碼">見(jiàn)顏色表
22)帖子背景音樂(lè):<bgsound="背景音樂(lè)地址" loop=infinite>
23)貼網(wǎng)頁(yè):<iframe src="網(wǎng)頁(yè)地址" width="寬度" height="高度"></iframe>
字體與背景顏色表:
http://www.360doc.com/content/11/0606/11/2904667_121986453.shtml三、圖片變幻演示代碼:
<html><HEAD><TITLE>DLLC1234</TITLE></HEAD>
<BODY bgColor=>
<SCRIPT language=JavaScript id=code>
var Ga=new Array()
Ga[3]="圖片地址";
Ga[4]="圖片地址";
Ga[5]="圖片地址";
Ga[0]="圖片地址";
Ga[1]="圖片地址";
Ga[2]="圖片地址";
Ga[3]="圖片地址";
var hayasa=5000
var suu =1;
var iTransNumber=0;
var garTransitions = new Array(); //arrary of filter strings
garTransitions[0] = "progid:DXImageTransform.Microsoft.RandomDissolve()";
garTransitions[1] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='star', motion='out')";
garTransitions[2] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='diamond', motion='in')";
garTransitions[3] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='cross', motion='out')";
garTransitions[4] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='circle', motion='in')";
garTransitions[5] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='square', motion='out')";
garTransitions[6] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='plus', motion='in')";
garTransitions[7] = "progid:DXImageTransform.Microsoft.Barn(orientation='vertial' motion='in')";
garTransitions[8] = "progid:DXImageTransform.Microsoft.Barn(orientation='vertial' motion='out')";
garTransitions[9] = "progid:DXImageTransform.Microsoft.Barn(orientation='horizontal' motion='in')";
garTransitions[10] = "progid:DXImageTransform.Microsoft.Barn(orientation='horizontal' motion='out')";
garTransitions[11] = "progid:DXImageTransform.Microsoft.Pixelate()";
garTransitions[12] = "progid:DXImageTransform.Microsoft.Inset()";
garTransitions[13] = "progid:DXImageTransform.Microsoft.Checkerboard(Direction='left')";
garTransitions[14] = "progid:DXImageTransform.Microsoft.Checkerboard(Direction='right')";
garTransitions[15] = "progid:DXImageTransform.Microsoft.Checkerboard(Direction='down')";
garTransitions[16] = "progid:DXImageTransform.Microsoft.Checkerboard(Direction='up')";
garTransitions[17] = "progid:DXImageTransform.Microsoft.RandomBars(motion='horizontal')";
garTransitions[18] = "progid:DXImageTransform.Microsoft.RandomBars(motion='vertical')";
garTransitions[19] = "progid:DXImageTransform.Microsoft.Slide(bands=5, slideStyle='push')";
garTransitions[20] = "progid:DXImageTransform.Microsoft.Slide(bands=5, slidestyle='swap')";
garTransitions[21] = "progid:DXImageTransform.Microsoft.Slide(bands=5, slidestyle='hide')";
garTransitions[22] = "progid:DXImageTransform.Microsoft.Spiral()";
garTransitions[23] = "progid:DXImageTransform.Microsoft.Stretch(stretchStyle='push')";
garTransitions[24] = "progid:DXImageTransform.Microsoft.Stretch(stretchStyle='pop')";
garTransitions[25] = "progid:DXImageTransform.Microsoft.Fade(duration=2,overlap=0)";
garTransitions[26] = "progid:DXImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )";
garTransitions[27] = "progid:DXImageTransform.Microsoft.Wheel(duration=2,spokes=16)";
garTransitions[28] = "progid:DXImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)";
var kirikaeGa=new Array()
for (kazu=0;kazu<Ga.length;kazu++){
kirikaeGa[kazu]=new Image()
kirikaeGa[kazu].src=Ga[kazu]}
function kirikae(){
if (window.createPopup)
rittai.style.filter = garTransitions[iTransNumber];
iTransNumber++;
if(iTransNumber==garTransitions.length)
iTransNumber=0;
if (window.createPopup)
rittai.filters[0].apply();
document.images.rittai.src=kirikaeGa[suu].src;
if (window.createPopup)
rittai.filters[0].play()
suu++
if (suu==kirikaeGa.length)
suu=0;
setTimeout("kirikae()",hayasa)
}
window.onload=new Function("setTimeout('kirikae()',hayasa)")
</SCRIPT>
<CENTER><IMG style="FILTER: progid:DXImageTransform.Microsoft.RandomDissolve()" height=620 src="底圖地址" width=1000 border=0 name=rittai></CENTER>
<EMBED src=音樂(lè)地址 width=0 height=0 type=audio/x-pn-realaudio-plugin controls="ControlPanel,StatusBar" autostart="true" loop="true"></EMBED>
<SCRIPT language=JavaScript>
ScrollSpeed = 250; // milliseconds between scrolls
ScrollChars = 4; // chars scrolled per time period
function SetupTicker(){
// add space to the left of the message
msg = "DLLC1234";
RunTicker();}
function RunTicker() {
window.setTimeout('RunTicker()',ScrollSpeed);
window.status = msg;
msg = msg.substring(ScrollChars) + msg.substring(0,ScrollChars);}
SetupTicker();
</SCRIPT>
</BODY></html>
四、畫(huà)面變色代碼:
<HEAD>
<TITLE>1234</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb_2312">
<META http-equiv=Content-Style-Type content=text/css>
<META http-equiv=imagetoolbar content=no>
<STYLE>
<!--
.time {
BEHAVIOR: url(#default#time2)
}
v\:* {
BEHAVIOR: url(#default#VML)
}
-->
</STYLE>
</HEAD>
<BODY onload=flash()>
<TABLE style="LEFT: 0px; WIDTH: 1000px; POSITION: absolute; TOP: 0px; HEIGHT: 600px" width=1000 border=0>
<TBODY>
<TR>
<TD height=650><IMG id=img1 style="FILTER: progid:DXImageTransform.Microsoft.Light()" height=600 src="66.jpg" width=1000>
</TD></TR></TBODY></TABLE>
<SCRIPT language=JavaScript><!--
var bcolor="#ffffff"http://
var numax=50;//
ccolor=new Array("#999999","#ff9900","#015656","#e07247","#D2691E","#5F9EA0","#513f67","#90EE90","#DCDCDC");
img1.style.filter="progid:DXImageTransform.Microsoft.Light()"
iii=0
col="0123456789abcdef"
rr=col.indexOf(ccolor[0].substring(1,2))*16+col.indexOf(ccolor[0].substring(2,3));
gg=col.indexOf(ccolor[0].substring(3,4))*16+col.indexOf(ccolor[0].substring(4,5));
bb=col.indexOf(ccolor[0].substring(5,6))*16+col.indexOf(ccolor[0].substring(6,7));
eval("img1.filters['DXImageTransform.Microsoft.Light'].addAmbient("+rr+","+gg+","+bb+",100)")
iii=1
function changecolor(num,r,g,b){
if(num==0){
r=col.indexOf(ccolor[iii].substring(1,2))*16+col.indexOf(ccolor[iii].substring(2,3));
g=col.indexOf(ccolor[iii].substring(3,4))*16+col.indexOf(ccolor[iii].substring(4,5));
b=col.indexOf(ccolor[iii].substring(5,6))*16+col.indexOf(ccolor[iii].substring(6,7));
}
//status=num+","+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)
eval("img1.filters['DXImageTransform.Microsoft.Light'].changecolor(0,"+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)+",100)")
//eval("img1.filters['DXImageTransform.Microsoft.Light'].addAmbient("+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)+",100)")
if(num<numax){
num=num+1;
setTimeout('changecolor('+num+','+r+','+g+','+b+')',100)
}else{
num=0;
rr=r;
gg=g;
bb=b;
iii=iii+1;
if(iii>ccolor.length-1) iii=0;
setTimeout('changecolor('+num+','+r+','+g+','+b+')',2000)
}
}
changecolor(0);
// -->
</SCRIPT>
五、歌詞同步代碼:
1、歌詞單行顯示:
<TABLE height=700 cellSpacing=0 cellPadding=0 width="1000" background=1.jpg>
<TBODY>
<TR>
<TD>
<DIV style="LEFT: 8px; POSITION: absolute; TOP: 112px">
<EMBED src=紙飛機(jī).swf width=600 height=500 type=application/x-shockwave-flash quality="high" wmode="transparent"第一個(gè)FLASH></EMBED></DIV>
<STYLE>
v\:*{behavior:url(#default#VML)}
v\:textpath{font-family:華文新魏_gb2312;font-size:26px;v-text-align:left}
</STYLE>
<XMP id=xLyric style="DISPLAY: none">
[ti:]
[ar:]
[al:)]
[00:00.00] 歌詞同步音畫(huà)制作:DLLC1234
[00:10.00] 《 十五的月亮 》
[00:16.30] 十五的月亮,
[00:21.00] 照在家鄉(xiāng)照在邊關(guān)。
[00:25.00] 寧?kù)o的夜晚,
[00:27.00] 你也思念我也思念。
[00:33.00] 我守在嬰兒的搖籃邊,
[00:36.00] 你巡邏在祖國(guó)的邊防線(xiàn);
[00:41.00] 我在家鄉(xiāng)耕耘著農(nóng)田,
[00:44.00] 你在邊疆站崗值班。
[00:48.00] ??!豐收果里有你的甘甜,
[00:53.00] 也有我的甘甜;
[00:57.00] 軍功章呵有你的一半,
[01:01.00] 也有我的一半。
[01:06.00] 歌詞同步音畫(huà)制作:DLLC1234
[01:21.00] 十五的月亮,
[01:25.00] 照在家鄉(xiāng)照在邊關(guān)。
[01:29.00] 寧?kù)o的夜晚,
[01:31.00] 你也思念我也思念。
[01:37.00] 我孝敬父母任勞任怨,
[01:41.00] 你獻(xiàn)身祖國(guó)不惜流血汗;
[01:45.00] 我肩負(fù)著全家的重任,
[01:48.00] 你在保衛(wèi)國(guó)家安全。
[01:53.00] ?。∽鎳?guó)昌盛有你的貢獻(xiàn),
[01:57.00] 也有我的貢獻(xiàn);
[02:01.00] 萬(wàn)家團(tuán)圓是你的心愿,
[02:05.00] 也是我的心愿。
[02:09.00] ??!啊!……
[02:17.00] 也是你的心愿。
[02:31.00] 謝 謝 您 的 欣 賞
</XMP>
</TD></TR></TBODY></TABLE>
<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("2.mp3")
}
function emv_ini(){
var l
window.emv={}
lrc_ini()
l="<div id=bxEmv style=position:absolute;left:0;top:620;width:1000;height:70>"
l+="<div id=bxEmvScreen style=position:absolute;overflow:hidden;left:0;top:0;width:1000;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=#ffff00 fillcolor=#ffff00 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=#ff9900 fillcolor=#ff9900 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>
2、歌詞雙行顯示:
<TABLE WIDTH="1000" height="750" background="9.jpg">
<TBODY>
<TR>
<TD>
<DIV style="LEFT: 550px; POSITION: absolute; TOP: -50px">
<EMBED src=流星.swf width=450 height=400 type=application/x-shockwave-flash quality="high" wmode="transparent"第一個(gè)FLASH></EMBED></DIV>
<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
<EMBED style="FILTER: alpha(opacity=0,finishopacity=100,startx=0,starty=0,finishx=0,finishy=40,style=1)" src=1.swf width=1000 height=750 type=application/x-shockwave-flash quality="high" wmode="transparent"第一個(gè)FLASH></EMBED></DIV>
<DIV style="LEFT: 700px; POSITION: absolute; TOP: 333px">
<EMBED src=人2.swf width=278 height=417 type=application/x-shockwave-flash quality="high" wmode="transparent"第一個(gè)FLASH></EMBED></DIV>
<STYLE>
v\:* {
BEHAVIOR: url(#default#VML)
}
v\:textpath {
FONT-SIZE: 20px; FONT-FAMILY: 楷體_gb2312; v-text-align: left
}
</STYLE>
<XMP id=xLyric style="DISPLAY: none">
ti:1234]
[ar:1234]
[al:未知]
[by:bcyh.cn]
[00:00.51]別把自己放得太遙遠(yuǎn)
[00:09.81]DLLC1234制作
[00:24.70]別把自己放得太遙遠(yuǎn)
[00:31.08]別讓簡(jiǎn)單的事太費(fèi)解
[00:36.89]很多事不值得總放在心間
[00:43.35]沒(méi)有人可以對(duì)你指指點(diǎn)點(diǎn)
[00:49.63]哪一個(gè)人沒(méi)一點(diǎn)缺陷
[00:55.94]哪一個(gè)人是美侖美絕
[01:02.28]某一天迷惘地以為被湮滅
[01:08.59]低頭看自己還活在這世間
[01:15.21]別想得太多
[01:21.34]看開(kāi)一點(diǎn)一點(diǎn)
[01:27.93]誰(shuí)不是千辛萬(wàn)苦才得到一些
[01:33.70]是理解也好
[01:36.90]是誤會(huì)也好
[01:40.58]都不及自己對(duì)自己的感覺(jué)
[01:46.87]別想得太難
[01:52.94]簡(jiǎn)單一點(diǎn)一點(diǎn)
[01:59.70]不要去太過(guò)在乎那別人的臉
[02:05.28]是快樂(lè)也好
[02:08.35]是難過(guò)也好
[02:12.04]經(jīng)歷后歲月還是一樣流瀉
[02:18.08]DLLC1234制作
[02:43.00]
[02:43.71]哪一個(gè)人沒(méi)一點(diǎn)缺陷
[02:49.75]哪一個(gè)人是美侖美絕
[02:56.13]某一天迷惘地以為被湮滅
[03:02.33]低頭看自己還活在這世間
[03:08.93]別想得太多
[03:14.97]看開(kāi)一點(diǎn)一點(diǎn)
[03:21.52]誰(shuí)不是千辛萬(wàn)苦才得到一些
[03:27.38]是理解也好
[03:30.52]是誤會(huì)也好
[03:34.29]都不及自己對(duì)自己的感覺(jué)
[03:40.46]別想得太難
[03:46.54]簡(jiǎn)單一點(diǎn)一點(diǎn)
[03:52.93]不要去太過(guò)在乎那別人的臉
[03:58.99]是快樂(lè)也好
[04:02.05]是難過(guò)也好
[04:05.69]經(jīng)歷后歲月還是一樣流瀉
[04:12.20]謝謝您的欣賞
[04:14.20]
</XMP>
</TD></TR></TBODY></TABLE>
<SCRIPT>
window.onerror=function(){return false}
start()
function start(){
browser_ini()
timer_ini()
emv_ini()
lrc.setData(oo("xLyric").innerHTML)
lrc.write("歌曲載入中,請(qǐng)耐心等待...","l")
emv.play("別把.mp3")
}
function emv_ini(){
var l
window.emv={}
lrc_ini()
l="<div id=bxEmv style=position:absolute;left:700;top:-150;width:300;height:600>"
l+="<div id=bxEmvScreen style=position:absolute;overflow:hidden;left:0;top:25;width:300;height:600;>"
l+="</div>"
l+="</div>"
l+="<object classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 id=mplayer width=600 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[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=30
y=310
}
else{
x=320-w
y=340
}
l="<div id=bxCaption_"+pos+" style='position:absolute;left:"+x+";top:"+y+";width:"+w+";height:26;overflow:hidden'>"
l+="<v:curve to=600,1 strokecolor=#7fb80e strokeweight=2 style=position:absolute;top:14>"
l+="<v:path textpathok=t /><v:textpath on=t string='"+word+"' /></v:curve>"
l+="<v:curve to=600,1 strokecolor=#FFFAFA fillcolor=#ffe600 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=600,1 strokecolor=#0000ffstrokeweight=3 style=position:absolute;top:14>"
l+="<v:path textpathok=t /><v:textpath on=t string='"+word+"' /></v:curve>"
l+="<v:curve to=600,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>
六、簡(jiǎn)單發(fā)帖代碼(套裝)
<DIV align=center>
<TABLE id=table1 style="LEFT: 0px; WIDTH: 1000px; POSITION: relative; TOP: 0px" height=650 background="圖片地址">
<TBODY>
<TR>
<TD>
--------------定位插入flash------------
<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
<EMBED src=flash地址
width=350 height=280 type=application/x-shockwave-flash quality="high" wmode="transparent"第一個(gè)FLASH></EMBED></DIV>
-------------定位插入文字(豎排)------------------------
<DIV style="LEFT: 35px; WIDTH: 300px; POSITION: absolute; TOP: 20px">
<MARQUEE scrollAmount=1 scrollDelay=100 behavior=slide width=300 height=300>
<MARQUEE style="LINE-HEIGHT: 100%; WRITING-MODE: tb-rl" scrollAmount=1 scrollDelay=100 direction=up behavior=slide width=300 height=300>
<DIV style="FONT-SIZE: 14pt; WIDTH: 15%; COLOR: #ffffff; LINE-HEIGHT: 200%; FONT-FAMILY: 宋體">
花自飄零水自流。<BR>一種相思,<BR>兩處閑愁。
</DIV></MARQUEE>
</MARQUEE>
</DIV>
-----------------插入音樂(lè)---------------------
<embed width="1" height="1" type="application/x-mplayer2" volume="0" playcount="0" autostart="TRUE" showgotobar="0" showstatusbar="0" showdisplay="0" filename="音樂(lè)地址" autoplay="false" loop="true"></embed>
</body>
</TD></TR></TBODY></TABLE></DIV>
七、發(fā)空間帖方法:
發(fā)全屏帖方法之一
<DIV style="LEFT: -210px; WIDTH: 1000px; POSITION: relative; TOP: 150px"><IFRAME marginWidth=0 marginHeight=0 src="網(wǎng)頁(yè)地址" frameBorder=0 width=1000 scrolling=no height=網(wǎng)頁(yè)高度></IFRAME></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
發(fā)全屏帖方法之二
<DIV align=center><A href="網(wǎng)頁(yè)地址" target=_blank><FONT face=隸書(shū) color=#000000 size=6>點(diǎn)擊欣賞全屏</FONT></A><BR>
<DIV style="LEFT: -210px; POSITION: relative; TOP: 150px"><IFRAME marginWidth=0 marginHeight=0 src="網(wǎng)頁(yè)地址" frameBorder=0 width=1000 scrolling=no height=網(wǎng)頁(yè)高度></IFRAME></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
發(fā)全屏帖方法之三
<DIV align=center><A href="網(wǎng)頁(yè)地址" target=_blank><FONT face=隸書(shū) color=#000000 size=6>點(diǎn)擊欣賞全屏</FONT></A><BR>
< P></P>
<DIV style="LEFT: -210px; POSITION: relative; TOP: 120px">
<OBJECT id=data height=網(wǎng)頁(yè)高度 width=1000 data=網(wǎng)頁(yè)地址></OBJECT></DIV>
<DIV></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
發(fā)全屏帖方法之四
<DIV style="LEFT: -210px; POSITION: relative; TOP: 100px" twffan="done"><IFRAME marginWidth=0 marginHeight=0 src="網(wǎng)頁(yè)地址" frameBorder=0 width=1000 scrolling=no height=網(wǎng)頁(yè)高度></IFRAME></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>