常用作帖、发帖代码集萃

前言:以下内容是本人在长期作帖实践中收集、整理、总结而成,转帖时请不要随意改动。谢谢!------dllc1234提供一、常用作帖代码:1、定位贴图及羽化:<DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px"第1图><IMG style="FILTER: Alpha(opacity=100,style=2)" height=500 src="http://www.360doc.cn/article/地址" 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="http://www.360doc.cn/article/地址" 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、给图片加特殊效果代码:见:http://www.360doc.com/content/11/1209/16/2904667_171055838.shtml二、常用的作帖标签代码:1)贴图:<img src="http://www.360doc.cn/article/图片地址">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="http://www.360doc.cn/article/音乐地址" width="宽度" height="高度" autostart=false>14)贴flash: <embed src="http://www.360doc.cn/article/flash地址" width="宽度" height="高度">15)贴影视文件:<img dynsrc="http://www.360doc.cn/article/文件地址" 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="http://www.360doc.cn/article/网页地址" 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=5000var suu =1;var iTransNumber=0;var garTransitions = new Array(); //arrary of filter stringsgarTransitions[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="http://www.360doc.cn/article/底图地址" 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 scrollsScrollChars = 4; // chars scrolled per time periodfunction SetupTicker(){// add space to the left of the messagemsg = "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="http://www.360doc.cn/article/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=0col="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=1function 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 lwindow.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 mPosvar n1,o,len,w,per,n0,n1if(mplayer==null)returnmPos=mplayer.CurrentPositionn=-1for(i=0;i<lrc.arr.length;i++){if(mPos<lrc.arr[i].slice(0,"|")*1)breakn=i}if(n==-1)returnif(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,"|"):4o=oo("bxCaption_"+(n%2==0?"l":"r")+"_cover")len=o.time!=""?o.time*1:n1-n0per=(mPos-n0)/lenfor(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,jstr=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=-1sortIndex=0sortDir=1lrc.arr.sort(sortFoo)}lrc.getRealPos=function(obj,pos){var a=obj.path,zoom=obj.zoom,pos1=pos*zoomvar a,i,adfor(i=0;i<a.length;i++){ad=a[i]if(pos<=ad[0])continueif(pos>ad[0]&&pos<=ad[1])pos1+=(zoom*ad[2]-zoom)*(pos-ad[0])elsepos1+=(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,adif(/^\<.+\>/.test(str)){word=str.slice(">")style=str.slice(1).slice(0,">")}w=word.replace(/[^\x00-\xff]/g,"  ").length*13+2if(pos=="l"){x=60y=19}else{x=950-wy=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=1a=style.split(";")for(i=0;i<a.length;i++){if(!/(\d+):(\d+)/.test(a[i]))continueif(/(\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")>0window.isIE5=navigator.userAgent.indexOf("IE 5.0")>0String.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="".sliceString.prototype.slice=function(n1,n2){var v,b1=typeof(n1)=="number",b2=typeof(n2)=="number";if(!b1