Pages

TEST120

玩樂家專門優質分享好文章!

[語法特效]多種語法框-有複製鈕、無名小站適用等


附有複製鈕的語法框


(只限IE)

預覽




 取得它們吧~~



<script><!--

function MM_goToURL() { //v3.0

var i, args=MM_goToURL.arguments; document.MM_returnValue = false;

for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");

}

function JM_cc(ob){

var obj=MM_findObj(ob); if (obj) {

obj.select();js=obj.createTextRange();js.execCommand("Copy");}

}

function MM_findObj(n, d) { //v4.0

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

if(!x && document.getElementById) x=document.getElementById(n); return x;}

--></script>

<center>

<textarea cols="30" name="txt2" rows="12">

要複製的語法貼這裡~~~~

</textarea><input onClick="JM_cc('txt2')" type=button value=COPY複製 >

</center>



---------------------------------------------------------------------


一般語法框(具有捲動功能)

預覽



 取得它們吧~~





<textarea onfocus="this.select()" onmouseover="this.focus();"
style="overflow: hidden; width: 50px; height: 13px; font-style:normal; border:
1px solid #
邊框顏色 ; font-size:7pt; font-family:Verdana;
color:#
字的顏色; background-color:#背景顏色"
name="g">
要複製的語法貼這裡~~~~
</textarea>






 



---------------------------------------------------------------------

無名小站語法框

無名小站因為一大堆限制,所以只能用框框當作語法框了


預覽

要複製的語法貼這裡~~~~

 取得它們吧~~

<table
cellspacing="1" cellpadding="1" width="200" border="1">

<td><font color="#0066ff">要複製的語法貼這裡~~~~</font></td>



---------------------------------------------------------------------


2 則留言 :