PDA

View Full Version : Tổng hợp BBcode cho PhpBB



hau_ooo
17-09-2009, 03:59 PM
1) Link Button New Window BBCode

Hiệu ứng tạo nút bấm khi chèn link

BBcode :


{TEXT},{URL}


HTML


<input class="button2 btnlite" type="button" value="{TEXT}" onclick="window.open('{URL}', '_blank')" title="{URL}" />


Hướng dẫn :


Link2 Button: Linktext,URL

2) YouTube Video BBCode

BBCode:

{TEXT}watch?v={TEXT1}

HTMl


<object width="425" height="344"><param name="movie" value="{TEXT}v/{TEXT1}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="{TEXT}v/{TEXT1}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>


Hướng dẫn


YouTube: Link to YouTube Video



3) Download Button BBCode

BBCode:

{URL}

HTML for Prosilver:


<table><tr><td><a href="{URL}"><img src="/images/download.png"></a></td><td width=100%><dl class="codebox"><dt>Download Link: <a href="#" onclick="selectCode(this); return false;">Select</a></dt><dd><code>{URL}</code></dd></dl></td></tr></table>

HTML for Subsilver2:


<table><tr><td><a href="{URL}"><img src="/images/download.png"></a></td><td width=100%><div class="codetitle"><b>Download Link:</b></div><div class="codecontent">{URL}</div></td></tr></table>

Hướng dẫn


Download Button: {URL}

File : http://www.phpbb3bbcodes.com/images/clear.gifhttp://i122.photobucket.com/albums/o247/ktk2a/download.png


http://upanh.com/uploads/17-Sep-2009/z1f8c2g5sqy0ghat7mis.png

Còn tiếp .....

hau_ooo
26-09-2009, 11:11 AM
- BBCode Chữ 7 MÀU

Cách sử dụng thẻ BBCode:




{TEXT}

Mã HTML thay thế:



<script language="JavaScript">
<!-- Hide the script from old browsers --
function MakeArray(n){
this.length=n;
for(var i=1; i<=n; i++) this[i]=i-1;
return this
}

hex=new MakeArray(16);
hex[11]="A"; hex[12]="B"; hex[13]="C"; hex[14]="D";
hex[15]="E"; hex[16]="F";

function ToHex(x){ // Changes a int to hex (in the range 0 to 255)
var high=x/16;
var s=high+""; //1
s=s.substring(0,2); //2 the combination of these = trunc funct.
high=parseInt(s,10); //3
var left=hex[high+1]; // left part of the hex-value
var low=x-high*16; // calculate the rest of the values
s=low+""; //1
s=s.substring(0,2); //2 the combination of these = trunc funct.
low=parseInt(s,10); //3
var right=hex[low+1]; // right part of the hex-value
var string=left+""+right; // add the high and low together
return string;
}

function fadeout(text){
text=text.substring(3,text.length-4);
// gets rid of the HTML-comment-tags
color_d1=255; // any value in 'begin' 0 to 255
mul=color_d1/text.length;
var j=1;
for(i=0;i<text.length;i++){
color_d1=255*Math.sin(i/(text.length/3));
// some other things you can try>>
// "=255-mul*i" to fade out, "=mul*i" to fade in,
// or try "255*Math.sin(i/(text.length/3))"
color_h1=ToHex(color_d1);
color_d2=mul*i;
color_h2=ToHex(color_d2);
color_d3=mul*(text.length-i);
color_h3=ToHex(color_d3);

j = i;

if (text.substring(i,i+1) == '&')
{
for (j = i+1; j < text.length; j++)
{
if (text.substring(j,j+1) == ';') { break; }
}
if (j == text.length) { j = i; }
}

if (text.substring(i,i+1) == '<')
{
for (j = i+1; j < text.length; j++)
{
if (text.substring(j,j+1) == '>') { break; }
}
if (j == text.length) { j = i; }
}

document.write("<FONT COLOR='#"+color_h3+color_h1+color_h2+"' >"+
text.substring(i,j+1)+'</FONT>');
i = j;
}
}
// --End Hiding Here -->
</script>
<center>
<font size="5"><strong><script language="JavaScript"><!--
{fadeout("-->{TEXT}<!__");}
//--></script></font></strong></center>

Nội dung hướng dẫn:



{TEXT}



Thẻ tra từ điển tại Vdict.com

Cách sử dụng trong bài viết:
Code:

từ khóa muốn tra cứu

Mã BBCode:
Code:

{TEXT}

Mã HTML thay thế:
Code:

<a href="http://vdict.com/{TEXT},{NUMBER},0.html">{TEXT}</a>

Chú ý: số_ID_phân_biệt_loại_từ_điển có thể sử dụng bao gồm:

0: Tra trong tất cả các loại từ điển hiện có tại Vdict.
1: Tra với từ điển Anh - Việt tại Vdict.
2: Tra với từ điển Việt - Anh tại Vdict.
3: Tra với từ điển Việt - Việt tại Vdict.
4: Tra với từ điển Việt - Pháp tại Vdict.
5: Tra với từ điển Pháp - Việt tại Vdict.
6: Tra với từ điển tin học (FOLDOC) tại Vdict.
7: Tra với từ điển Anh - Anh (Worldnet) tại Vdict.
8: Tra với từ điển Trung - Việt tại Vdict.
__________________

bboy_nonoyes
24-11-2010, 03:01 PM
Đang cần! Thanks for share!!!