分享

常用作帖、发帖代码集萃

 DLLC1234 2011-05-02

常用作帖、发帖代码集萃

 
 
 
前言:以下内容是本人在长期作帖实践中收集、整理、总结而成,转帖时请不要随意改动。谢谢!
 
 

------ 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"第一个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、定位贴标题
 
<DIV style="LEFT: 60px; POSITION: absolute; TOP: 100px"定位标题>
<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> 标题文字      </FONT></B></UL></UL></PRE></SPAN></DIV>

 5、立体字标题
 
<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>标题文字<br><br></strong></font></div>
 </div>
 
6、彩色字标题
 
<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个人图书馆 </strong></font></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

 7、画面定位贴文字(横排)
 
<DIV style="LEFT: 320px; POSITION: absolute; TOP: 100px">
<P><FONT color=#fff0000 size=3>第一行文字<br>第二行文字           </FONT></P></DIV>
 
 8、画面定位贴文字(竖排)
 
<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、文字竖排滚动
 
<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>北国风光,<br>千里冰封,<br>万里雪飘。<br>望长城内外,<br>惟馀莽莽;<br>大河上下,<br>顿失滔滔。<br>山舞银蛇,<br>原驰蜡象,<br>欲与天公试比高。<br>须晴日,<br>看红妆素裹,<br>分外妖娆。<br><br>江山如此多娇,<br>引无数英雄竞折腰。<br>惜秦皇汉武,<br>略输文采;<br>唐宗宋祖,<br>稍逊风骚。<br>一代天骄,<br>成吉思汗,<br>只识弯弓射大雕。<br>俱往矣,<br>数风流人物,<br>还看今朝。</strong></font></p>
</font></marquee></marquee></div>
 
10、定位帖的开头
 
 <DIV align=center>
<TABLE id=table1 style="LEFT: 0px; WIDTH: 1000px; POSITION: relative; TOP: 0px" height=650 background="图片地址">
<TBODY>
<TR>
<TD>
 
11、页面做滚动条代码
 
<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=黑体>满江红 [岳飞] <BR>怒发冲冠,凭阑处、潇潇雨歇。<BR>抬望眼、仰天长啸,壮怀激烈。<BR>三十功名尘与土,八千里路云和月。<BR>莫等闲、白了少年头,空悲切。 <BR>靖康耻,犹未雪;臣子恨,何时灭。<BR>驾长车踏破、贺兰山缺。<BR>壮志饥餐胡虏肉,笑谈渴饮匈奴血。<BR>待从头、收拾旧山河。朝天阙。 <BR>飞扬教育论坛<BR></FONT></DIV></TD></TR></TBODY></TABLE>

 12、给图片加特殊效果代码:
 
 
 
 
 二、常用的作帖标签代码:

1)贴图:<img src="图片地址">
2)加入连接:<a href="所要连接的相关地址">图或字</a>
3)在新窗口打开连接:<a href="相关地址" target="_blank">图或字</a>
4)移动字体(走马灯):<marquee>图或字</marquee>
5)字体加粗:<b>写上你想写的字</b>
6)字体斜体:<i>写上你想写的字</i>
7)字体下划线: <u>写上你想写的字</u>
8)字体删除线: <s>写上你想写的字</s>
9)字体加大: <big>写上你想写的字</big>
10)字体控制大小:<h1>写上你想写的字</h1> (其中字体大小可从h1-h5,h1最大,h5最小)
11)更改字体颜色:<font color="#value">写上你想写的字</font>(其中value值见颜色表)
12)消除连接的下划线:<a href="相关地址" style="text-decoration:none">写上你想写的字</a>
13)贴音乐:<embed src="音乐地址" 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)固定帖子背景不随滚动条滚动:<body background="背景图片地址" body  bgproperties=fixed>
21)定制帖子背景颜色:<body bgcolor="#颜色码">见颜色表
22)帖子背景音乐:<bgsound="背景音乐地址" loop=infinite>
23)贴网页:<iframe src="网页地址" width="宽度" height="高度"></iframe> 
 
 
 
 
三、图片变幻演示代码:
 
<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=音乐地址 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>
 
 
四、画面变色代码:
 
 
<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"//
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=纸飞机.swf width=600 height=500 type=application/x-shockwave-flash quality="high" wmode="transparent"第一个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] 歌词同步音画制作:DLLC1234
[00:10.00] 《 十五的月亮 》
[00:16.30] 十五的月亮,
[00:21.00] 照在家乡照在边关。
[00:25.00] 宁静的夜晚,
[00:27.00] 你也思念我也思念。
[00:33.00] 我守在婴儿的摇篮边,
[00:36.00] 你巡逻在祖国的边防线;
[00:41.00] 我在家乡耕耘着农田,
[00:44.00] 你在边疆站岗值班。
[00:48.00] 啊!丰收果里有你的甘甜,
[00:53.00] 也有我的甘甜;
[00:57.00] 军功章呵有你的一半,
[01:01.00] 也有我的一半。
[01:06.00] 歌词同步音画制作:DLLC1234
[01:21.00] 十五的月亮,
[01:25.00] 照在家乡照在边关。
[01:29.00] 宁静的夜晚,
[01:31.00] 你也思念我也思念。
[01:37.00] 我孝敬父母任劳任怨,
[01:41.00] 你献身祖国不惜流血汗;
[01:45.00] 我肩负着全家的重任,
[01:48.00] 你在保卫国家安全。
[01:53.00] 啊!祖国昌盛有你的贡献,
[01:57.00] 也有我的贡献;
[02:01.00] 万家团圆是你的心愿,
[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"第一个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"第一个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"第一个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]别把自己放得太遥远
[00:09.81]DLLC1234制作
[00:24.70]别把自己放得太遥远
[00:31.08]别让简单的事太费解
[00:36.89]很多事不值得总放在心间
[00:43.35]没有人可以对你指指点点
[00:49.63]哪一个人没一点缺陷
[00:55.94]哪一个人是美仑美绝
[01:02.28]某一天迷惘地以为被湮灭
[01:08.59]低头看自己还活在这世间
[01:15.21]别想得太多
[01:21.34]看开一点一点
[01:27.93]谁不是千辛万苦才得到一些
[01:33.70]是理解也好
[01:36.90]是误会也好
[01:40.58]都不及自己对自己的感觉
[01:46.87]别想得太难
[01:52.94]简单一点一点
[01:59.70]不要去太过在乎那别人的脸
[02:05.28]是快乐也好
[02:08.35]是难过也好
[02:12.04]经历后岁月还是一样流泻
[02:18.08]DLLC1234制作
[02:43.00]
[02:43.71]哪一个人没一点缺陷
[02:49.75]哪一个人是美仑美绝
[02:56.13]某一天迷惘地以为被湮灭
[03:02.33]低头看自己还活在这世间
[03:08.93]别想得太多
[03:14.97]看开一点一点
[03:21.52]谁不是千辛万苦才得到一些
[03:27.38]是理解也好
[03:30.52]是误会也好
[03:34.29]都不及自己对自己的感觉
[03:40.46]别想得太难
[03:46.54]简单一点一点
[03:52.93]不要去太过在乎那别人的脸
[03:58.99]是快乐也好
[04:02.05]是难过也好
[04:05.69]经历后岁月还是一样流泻
[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("歌曲载入中,请耐心等待...","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>

 
 
六、简单发帖代码(套装)
 
<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"第一个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>
 
-----------------插入音乐---------------------
<embed width="1" height="1" type="application/x-mplayer2" volume="0" playcount="0" autostart="TRUE" showgotobar="0" showstatusbar="0" showdisplay="0" filename="音乐地址" autoplay="false" loop="true"></embed>
</body>
</TD></TR></TBODY></TABLE></DIV>
 
 
 
七、发空间帖方法:
 
 发全屏帖方法之一
<DIV style="LEFT: -210px; WIDTH: 1000px; POSITION: relative; TOP: 150px"><IFRAME marginWidth=0 marginHeight=0 src="网页地址" frameBorder=0 width=1000 scrolling=no height=网页高度></IFRAME></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>

发全屏帖方法之二
<DIV align=center><A href="网页地址" target=_blank><FONT face=隶书 color=#000000 size=6>点击欣赏全屏</FONT></A><BR>
<DIV style="LEFT: -210px; POSITION: relative; TOP: 150px"><IFRAME marginWidth=0 marginHeight=0 src="网页地址" frameBorder=0 width=1000 scrolling=no height=网页高度></IFRAME></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>

发全屏帖方法之三
<DIV align=center><A href="网页地址" target=_blank><FONT face=隶书 color=#000000 size=6>点击欣赏全屏</FONT></A><BR>
< P></P>
<DIV style="LEFT: -210px; POSITION: relative; TOP: 120px">
<OBJECT id=data height=网页高度 width=1000 data=网页地址></OBJECT></DIV>
<DIV></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>

发全屏帖方法之四
<DIV style="LEFT: -210px; POSITION: relative; TOP: 100px" twffan="done"><IFRAME marginWidth=0 marginHeight=0 src="网页地址" frameBorder=0 width=1000 scrolling=no height=网页高度></IFRAME></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>



    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约