22 thg 2, 2011

Những đoạn CODE hay .....

0 nhận xét
Thất Tình.Biz | Phần mềm | Tin tức | Thủ Thuật | Phim | Game|Teen Sock| Scandan

1 . Không Cho Click Chuột Phải ...
Trích:
<SCRIPT language=JavaScript1.1>
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert('Chuc Mot Ngay Vui ve - Gui Wedsite Cho Ban Be Cua Minh Nha !');
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</SCRIPT>
2 . CODE Làm Thanh Tiêu Đề Web Chạy Trên Task Manager Khi Đóng Mở Web ..
Trích:
<script language=javascript >
title_tmp1=document.title
if (title_tmp1.indexOf(">>")!=-1){
title_tmp2=title_tmp1.split(">>");
title_last="*~*"+title_tmp2[1];
title_last=title_last + "*~*" + title_tmp2[2];
}else{
if (title_tmp1.indexOf("*~*")!=-1){
title_tmp2=title_tmp1.split("*~*");
title_last="*~*"+title_tmp2[1];
if (title_last=="*~*"){title_last="*~*"};
if (title_last=="*~*"){title_last="*~*"};
}
else { title_last=" www.mait.vn"}
}
title_new=""+title_last+""
step=0
function flash_title()
{
step++
if (step==8) {step=1}
if (step==1) {document.title='[----*'+title_new+'*----]'}
if (step==2) {document.title='[---*-'+title_new+'-*---]'}
if (step==3) {document.title='[--*--'+title_new+'--*--]'}
if (step==4) {document.title='[-*---'+title_new+'---*-]'}
if (step==5) {document.title='[--*--'+title_new+'--*--]'}
if (step==6) {document.title='[---*-'+title_new+'-*---]'}
if (step==7) {document.title='[----*'+title_new+'*----]'}
setTimeout("flash_title()",180);
}
flash_title()
</script>
3/ BB code Marquee : chữ chạy
+ Title : New BB code Marquee
+ Tag : Marquee
+ Replacement :
Trích:
<marquee scrollamount="3">{param}</marquee>
+ Button Image : images/bbcode/marquee.gif
Các mục khác để nguyên & Save lại.
4/ BB Code glow : chữ đậm
+ Title : Chử đậm
+ Tag : glow
+ Replacement :
Trích:
<table style="filter:glow(color={plum}, strength={option})">{param}</table>
+ Button Image : images/bbcode/glow.gif
Các mục khác để nguyên & Save lại.
5/ BB Code Shadow : chữ mờ ảo
+ Title :Chử mờ ảo
+ Tag : shadow
+ Replacement :
Trích:
<table style="filter:shadow(color={option}, direction=225)">{param}</table>
Button Image : images/bbcode/shadow.gif
Các mục khác để nguyên & Save lại.
6/ BB Code post nhạc media : play tất cả các đuôi nhạc
+ Title: Play nhạc
+ Tag : music
+ Replacement :
Trích:
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<param name="Filename" value="{param}">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowStatusBar" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<param name="AudioStream" value="-1">
<param name="AutoStart" value="-1">
<param name="AnimationAtStart" value="-1">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="4">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="false">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="5">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowAudioControls" value="-1">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="-180">
<param name="WindowlessVideo" value="0">
<EMBED Name="Mediaplayer" file={param}
src={param}
ShowControls=1
ShowDisplay=0
ShowStatusBar=1
width=320
height=320> </embed></OBJECT>
Button Image : images/bbcode/media.gif
Các mục khác để nguyên & Save lại.
7/ BB Code post flash : dùng post file flash .swf
+ Title : Code nhạc Flash
+ Tag : flash
+ Replacement :
Trích:
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
WIDTH="500" HEIGHT="300" id="{param}" ALIGN="">
<PARAM NAME=movie VALUE="{param}"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="{param}" quality=high bgcolor=#FFFFFF WIDTH="400" HEIGHT="250" NAME="{param}" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
Button Image : images/bbcode/flash.gif
Các mục khác để nguyên & Save lại.
8/ YouTube Video : post link các files trên site youtube.com
+ Title : Code nhạc chạy trên Youtube
+ Tag : youtube
+ Replacement :
Trích:
<table cellpadding="6" cellspacing="1" border="0" style="width:auto;margin:10px 0;">
<thead>
<tr>
<td colspan="2" style="text-align:center">
<a href="http://www.youtube.com/watch?v={param}" title="View this video at YouTube in a new window or tab" target="_blank">YouTube Video</a>
</td>
</tr>
</thead>
<tbody>
<tr>
<td align="center">
<object width="425" height="340" type="application/x-shockwave-flash" data="http://www.youtube.com/v/{param}">
<param name="movie" value="http://www.youtube.com/v/{param}" />
<param name="wmode" value="transparent" />
<em><strong>ERROR:</strong> If you can see this, then <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em>
</object>
</td>
</tr>
</tbody>
</table>
Button Image : images/bbcode/youtube.gif
Các mục khác để nguyên & Save lại.
9/ Google Video : dùng để post các files trên site video.google.com
+ Title : Code Goole Video
+ Tag : gvideo
+ Replacement :
Trích:
<table cellpadding="6" cellspacing="1" border="0" style="width:auto;margin:10px 0;">
<thead>
<tr>
<td colspan="2" style="text-align:center">
<a href="http://video.google.com/videoplay?docid={param}" title="View this video at Google Video in a new window or tab" target="_blank">Google Video</a>
</td>
</tr>
</thead>
<tbody>
<tr>
<td align="center">
<object width="400" height="326" type="application/x-shockwave-flash" data="http://video.google.com/googleplayer.swf?docId={param}">
<param name="movie" value="http://video.google.com/googleplayer.swf?docId={param}" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="quality" value="best" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="salign" value="TL" />
<param name="FlashVars" value="playerMode=embedded" />
<em><strong>ERROR:</strong> If you can see this, then <a href="http://video.google.com/">Google Video</a> is down or you don't have Flash installed.</em>
</object>
</td>
</tr>
</tbody>
</table>
Button Image : images/bbcode/google.gif
Các mục khác để nguyên & Save lại.
 

0 nhận xét:

Đăng nhận xét