โค้ดแต่งบล็อก</b><br></font>
<font class='fsize18'>นานาโค๊ด -* (โค๊ดแต่งหน้าโปร์ไฟล์ จอสั่น แบ็คกาวน์ ฯลฯ )<br>
<br>
โค้ดบีจีนะ<br>
<body background="urlภาพ" bgproperties="fixed"><br>
<br>
+++++++++++++<br>
โค้ด เปลี่ยนสี Scrollbar <br>
<br>
<STYLE> <br>
BODY <br>
{SCROLLBAR-FACE-COLOR:#FFFFFF; <br>
SCROLLBAR-HIGHLIGHT-COLOR:#000000 ; <br>
SCROLLBAR-SHADOW-COLOR:#000000 ; <br>
SCROLLBAR-3DLIGHT-COLOR:#000000 ; <br>
SCROLLBAR-ARROW-COLOR:#000000 ; <br>
SCROLLBAR-TRACK-COLOR:#000000 ; <br>
SCROLLBAR-DARKSHADOW-COLOR:#000000 } <br>
</STYLE> <br>
<br>
** ในที่นี้เซ็ทไว้เป็นสี ขาว กับ ดำ <br>
สามารถเปลี่ยนสีได้ตามใจชอบ โดยการเข้าไปเลือกสีได้ในเว็บ <br>
www.todayload.com/skin/color.htm <br>
แล้วก๊อปรหัสสีที่ต้องการมาใส่แทนที่ <br>
<br>
<br>
*ข้อควรระวัง .. ห้ามลืมเครื่องหมาย # หน้ารหัสสีเด็ดขาดนะ!!<br>
<br>
+++++++++++++<br>
<br>
<br>
โค๊ด ชี้ลิ้งแล้วกลับด้าน<br>
<br>
<meta http-equiv="Content-Language" content="th"> <br>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <br>
<meta name="ProgId" content="FrontPage.Editor.Document"> <br>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <br>
<STYLE ty<html dir="rtl"> pe=text/css> <br>
A:link { color: #โค๊ดสี; text-decoration:none} <br>
A:visited {color: #โค๊ดสี; text-decoration: none} <br>
A:hover {color: #โค๊ดสี; text-decoration: underline} <br>
</STYLE> <br>
<STYLE TYPE="TEXT/CSS"><!-- <br>
a:link { color: #โค๊ดสี; text-decoration: none} <br>
a:visited { color: #โค๊ดสี; text-decoration: none} <br>
a:active { color: #โค๊ดสี; text-decoration: none} <br>
a:hover { color: #โค๊ดสี; text-decoration: none;FILTER:fliph; HEIGHT:0} <br>
//--></STYLE><br>
<br>
++++++++++++++<br>
<br>
status bar นะ<br>
<br>
<SCRIPT><br>
<!-- Hide from old browsers<br>
message = "ข้อฟาม^" +<br>
"ข้อฟาม^" +<br>
"ข้อฟาม^" +<br>
"ข้อฟาม^" +<br>
"ข้อฟาม^"<br>
scrollSpeed = 50<br>
lineDelay = 1500<br>
txt = ""<br>
function scrollText(pos) {<br>
if (message.charAt(pos) != '^') {<br>
txt = txt + message.charAt(pos)<br>
status = txt<br>
pauze = scrollSpeed<br>
} else {<br>
pauze = lineDelay<br>
txt = ""<br>
if (pos == message.length-1) pos = -1<br>
}<br>
pos++<br>
setTimeout("scrollText('"+pos+"')",pauze)<br>
}<br>
// Unhide --><br>
scrollText(0)<br>
</SCRIPT><br>
<br>
+++++++++++<br>
<br>
คลิ๊กขวา(แค่รูป) มีป๊อปอัพ มาด่า<br>
<br>
<script language="JavaScript1.2"> var clickmessage="ข้อฟาม" function disableclick(E) { if (document.all) { if (event.button==2||event.button==3) { if (event.srcElement.tagName=="IMG"){ alert(clickmessage); return false; } } } else if (document.layers) { if (e.which == 3) { alert(clickmessage); return false; } } else if (document.getElementById){ if (e.which==3&&e.target.tagName=="IMG"){ alert(clickmessage) return false } } } function associateimages(){ for(i=0;i<document.images.length;i++) document.images.onmousedown=disableclick; } if (document.all||document.getElementById) document.onmousedown=disableclick else if (document.layers) associateimages() </script> <br>
<br>
++++++++++++++<br>
<br>
โค้ดทำเมาส์เป็นรูปการ์ตูนจ๋วย ๆ<br>
<br>
<style type="text/css">p {align=justify}<br>
body {cursor: url(<a href='http://www.boomspeed.com/blueicee/Animation77.ani' target='www.boomspeed.com/blueicee/Animation77.ani'>http://www.boomspeed.com/blueicee/Animation77.ani</a>);}<br>
a {cursor: url(<a href='http://www.boomspeed.com/blueicee/Animation77.ani);}</style>' target='www.boomspeed.com/blueicee/Animation77.ani);}</style>'>http://www.boomspeed.com/blueicee/Animation77.ani);}</style></a>;;;<br>
<br>
ให้เปลี่ยนตัวเลขตรง 77 ให้เหมือนกัน ตั้งแต่ 1-... ไม่จำกัดนะค่ะ<br>
<br>
++++++++++<br>
<br>
โค๊ด scroll bar สลับสี 2 สี<br>
<br>
<script language="JavaScript"><br>
function go1(){<br>
document.body.style.scrollbarBaseColor="ใส่รหัสสีครับ"; // ใส่สีของ SCROLLBAR สีที่ 1<br>
setTimeout('clr2()', 500)<br>
}<br>
function clr2(){<br>
document.body.style.scrollbarBaseColor="ใส่รหัสสีครับ" // ใส่สีของ SCROLLBAR สีที่ 2<br>
setTimeout('go1()', 500)<br>
}<br>
</script><br>
<script language="JavaScript"><br>
go1()<br>
</script><br>
<br>
+++++++++++<br>
<br>
ห้ามคลิกขวาแบบมีข้อความเตือน<br>
<br>
<script LANGUAGE="JavaScript"> <br>
<br>
function click() { <br>
if (event.button==2) { <br>
alert('ข้อความ'); <br>
} <br>
} <br>
document.onmousedown=click <br>
// --> <br>
<br>
</script> <br>
<br>
+++++++++<br>
<br>
เมาส์เปนลูกศรหมุน ๆ<br>
<br>
<script><br>
<!--<br>
var cursors = new Array("e-resize","ne-resize","n-resize","se-resize")<br>
var cursorsIndex = 0<br>
var rotationSpeed = 10 <br>
var direction = 1<br>
if (direction) cursors.reverse()<br>
function rotateCursor(){<br>
document.body.style.cursor=cursors<br>
cursorsIndex++<br>
if (cursorsIndex==cursors.length) cursorsIndex=0<br>
setTimeout("rotateCursor()",rotationSpeed)<br>
}<br>
window.onload=rotateCursor<br>
//--><br>
</script><br>
<br>
+++++++++++++<br>
<br>
ชี้รุปแล้วรุปจะชัดขึ้นอ่ะ<br>
<br>
<script language="JavaScript1.2"><br>
<!--<br>
function high(pStr){<br>
pObj=pStr<br>
highlighting=setInterval("highlightit(pObj)",50)<br>
}<br>
function low(pStr){<br>
pObj=pStr<br>
highlighting=setInterval("lowlightit(pObj)",50)<br>
}<br>
<br>
function highlightit(cur2){<br>
if (cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=5<br>
else if (window.highlighting) clearInterval(highlighting)<br>
<br>
}<br>
function lowlightit(cur2){<br>
if (cur2.filters.alpha.opacity>40) cur2.filters.alpha.opacity-=5<br>
else if (window.highlighting) clearInterval(highlighting)<br>
else cur2.filters.alpha.opacity=40<br>
}<br>
// --><br>
</script><br>
<br>
<img src="Url รูป" border=0 style="filter:alpha(opacity=40)" onMouseover="high(this)" onMouseout="low(this)"></a><br>
<br>
<br>
+++++++++++<br>
ลิ้งค์ไดเพื่อนบ้าน<br>
<br>
<center> <br>
<FORM> <br>
<SELECT style="BACKGROUND:สีพื้น; COLOR: สีอักษร" <br>
onchange=top.location.href=this.form.menu.options.value NAME="menu" size=1> <br>
<OPTION SELECTED>::D i A r Y . .fRiEnD::<br>
<OPTION VALUE="Url ไดอารี่ของเพื่อน">ชื่อเพื่อนนะค๊า<br>
<OPTION VALUE="Url ไดอารี่ของเพื่อน">ชื่อเพื่อนนะค๊า<br>
<OPTION VALUE="Url ไดอารี่ของเพื่อน">ชื่อเพื่อนนะค๊า<br>
</SELECT> <br>
</FORM> <br>
</center><br>
++++++++++++++++++++<br>
ข้อความวิ่งในกล่องเล็กๆ<br>
<br>
<form name=form1><input type="text" name="scrollbox" size="25" style="font-family: MS Sans Serif; color: red; font-size: 8pt"><br>
<script language="JavaScript"> <br>
var count = 0;<br>
var text = "ข้อความ";<br>
scroll();<br>
function scroll () {<br>
var myText = text.substring (count, text.length) + text.substring (0, count);<br>
document.form1.scrollbox.value = myText;<br>
if (count < text.length) count ++;<br>
else count = 0;<br>
setTimeout ("scroll()", 333);}<br>
</script><br>
<br>
++++++++<br>
ชี้รุปแล้วรุปจะชัดขึ้นอ่ะ<br>
<br>
<script language="JavaScript1.2"><br>
<!--<br>
function high(pStr){<br>
pObj=pStr<br>
highlighting=setInterval("highlightit(pObj)",50)<br>
}<br>
function low(pStr){<br>
pObj=pStr<br>
highlighting=setInterval("lowlightit(pObj)",50)<br>
}<br>
<br>
function highlightit(cur2){<br>
if (cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=5<br>
else if (window.highlighting) clearInterval(highlighting)<br>
<br>
}<br>
function lowlightit(cur2){<br>
if (cur2.filters.alpha.opacity>40) cur2.filters.alpha.opacity-=5<br>
else if (window.highlighting) clearInterval(highlighting)<br>
else cur2.filters.alpha.opacity=40<br>
}<br>
// --><br>
</script><br>
<br>
<img src="Url รูป" border=0 style="filter:alpha(opacity=40)" onMouseover="high(this)" onMouseout="low(this)"></a><br>
<br>
++++++++<br>
หยุดเมาส์แล้วมีข้อความขึ้น<br>
<br>
<body ONLOAD="hyperlinks(this.checked)" title="ข้อความที่ให้ขึ้น"><br>
+++++++++++++<br>
โคดลิงค์เมล์<br>
<br>
<center><a href=mailto:ชื่อเมล์><fontcolor ff1166><b>ชื่อที่แสดง <br>
</b></a></center> <br>
<br>
++++++++<br>
โคดกดแร้วมีข้อความเด้งออกมา<br>
<br>
<center> <br>
<FORM> <br>
<INPUT TYPE="button" VALUE="ข้อความบนปุ่ม" onClick='alert("ข้อความที่เด้ง")'> <br>
</FORM> <br>
<br>
++++++<br>
โค๊ดต้อนรับ <br>
<script language="JavaScript"> <br>
function loadalert () <br>
{alert(" ข้อความ ") <br>
} <br>
loadalert() <br>
</script> <br>
<br>
โค๊ดบอกลา<br>
<Script Language="VBScript"><br>
Sub Window_onUnLoad()<br>
alert("ข้อความ")<br>
End Sub<br>
</Script><br>
<br>
++++++++<br>
รูปเลื่อนขึ้นลงอยู่ทางซ้ายมือของจอ <br>
<br>
-----<br>
<br>
<p align="left"> <br>
<div id="point1" STYLE="position:absolute;visibility:visible;"> <br>
<img src="Urlรูป"> <br>
</div> <br>
<SCRIPT LANGUAGE="JavaScript"> <br>
<!-- Begin <br>
var xPos = 20; <br>
var step = 1; <br>
var delay = 30; <br>
var yPos = 0; <br>
var height = 0; <br>
var offset = 0; <br>
var yon = 0; <br>
var name = navigator.appName; <br>
if (name == "Microsoft Internet Explorer") { <br>
yPos = document.body.clientHeight; <br>
point1.style.top = yPos; <br>
} <br>
else { <br>
yPos = window.innerHeight; <br>
document.point1.pageY = yPos; <br>
document.point1.visibility = "hidden"; <br>
} <br>
function changePos() { <br>
if (yon == 0) { <br>
yPos = yPos - step; <br>
} <br>
else { <br>
yPos = yPos + step; <br>
} <br>
if (name == "Microsoft Internet Explorer") { <br>
height = document.body.clientHeight; <br>
offset = point1.offsetHeight; <br>
} <br>
else { <br>
height = window.innerHeight; <br>
offset = document.point1.clip.height; <br>
} <br>
if (yPos < 0) { <br>
yon = 1; <br>
yPos = 0; <br>
} <br>
if (yPos >= (height - offset)) { <br>
yon = 0; <br>
yPos = (height - offset); <br>
} <br>
if (name == "Microsoft Internet Explorer") { <br>
point1.style.left = xPos; <br>
point1.style.top = yPos + document.body.scrollTop; <br>
} <br>
else { <br>
document.point1.pageX = xPos; <br>
document.point1.pageY = yPos + window.pageYOffset; <br>
} <br>
} <br>
function start() <br>
{ <br>
if (name != "Microsoft Internet Explorer") { <br>
document.point1.visibility = "visible"; <br>
} <br>
loopfunc(); <br>
} <br>
function loopfunc() <br>
{ <br>
changePos(); <br>
setTimeout('loopfunc()',delay); <br>
} <br>
start() <br>
// End --> <br>
</script><br>
<br>
+++++++<br>
โคด อักษรแบบพิมดีด<br>
<br>
<P align=center><font face="MS Sans Serif" size="2"><br>
<script language="JavaScript1.2"><br>
var message="ข้อความ"<br>
var neonbasecolor="โค๊ดสีข้อความ"<br>
var neontextcolor="red"<br>
var flashspeed=100<br>
<br>
<br>
<br>
var n=0<br>
if (document.all){<br>
document.write('<font color="'+neonbasecolor+'">')<br>
for (m=0;m<message.length;m++)<br>
document.write('<span id="neonlight">'+message.charAt(m)+'</span>')<br>
document.write('</font>')<br>
<br>
<br>
var tempref=document.all.neonlight<br>
}<br>
else<br>
document.write(message)<br>
<br>
function neon(){<br>
<br>
<br>
if (n==0){<br>
for (m=0;m<message.length;m++)<br>
tempref.style.color=neonbasecolor<br>
}<br>
<br>
<br>
tempref.style.color=neontextcolor<br>
<br>
if (n<tempref.length-1)<br>
n++<br>
else{<br>
n=0<br>
clearInterval(flashing)<br>
setTimeout("beginneon()",1500)<br>
return<br>
}<br>
}<br>
<br>
function beginneon(){<br>
if (document.all)<br>
flashing=setInterval("neon()",flashspeed)<br>
}<br>
beginneon()<br>
<br>
<br>
</script><br>
<br>
++++<br>
โค้ดข้อความตก <br>
<br>
<SCRIPT language="JavaScript"> <br>
<br>
// FallT v1.0 By Maxx Blade - <a href='http://www.maxxblade.co.uk' target='www.maxxblade.co.uk'>http://www.maxxblade.co.uk</a> <br>
///////////// Only Edit these lines //////////////// <br>
var no=5,speed=30,slider=30,fallmax=8,wind=0,fallwhat=" ข้อความ ",fallsize=10,fallfont="Tahoma"; <br>
var colours=new Array("FF008A","FD54B0","FC87C7","FCB4DB","FDD6EB","FFFFFF"); <br>
////////////////////////////////////////////////////// <br>
var o=new Array(), tog=1, dofallt=new Array(); <br>
var ns4=(document.layers)?1:0; <br>
var ie4=(document.all)?1:0; <br>
var ns6=(document.getElementById&&!document.all)?1:0; <br>
if(ie4) falllayer="document.all<'gf'+i>.style"; <br>
if(ns4) falllayer="document.layers<'gf'+i>"; <br>
if(ns6) falllayer="document.getElementById('gf'+i).style"; <br>
function winWid(){ return (ns4||ns6)?window.innerWidth:document.body.clientWidth; } <br>
function winHei(){ return (ns4||ns6)?window.innerHeight:document.body.clientHeight; } <br>
function winOfy(){ return (ns4||ns6)?window.pageYOffset:document.body.scrollTop; } <br>
function togFall(){ for(i=0;i<no;i++){ if(tog==1){ with(eval(falllayer)){ left=-500; } clearTimeout(dofallt); }else{ fallt(i); } } tog*=-1 } <br>
function newobj(q,t){ <br>
spin = parseInt(Math.random()*slider); <br>
spin = (Math.random()>0.5) ? spin : -spin; <br>
o = new Array(parseInt(Math.random()*(winWid()-slider)),-30,spin,0.02+Math.random()/10,parseInt(1+Math.random()*fallmax),0); <br>
if(t==1){ <br>
if(ns4){ document.write('<layer name="gf'+q+'" left="0" top="0" visibility="show">'+fallwhat+'</layer>'); } <br>
if(ie4||ns6){ document.write('<span id="gf'+q+'" style="POSITION: absolute; Z-INDEX: -'+q+'; VISIBILITY: visible; TOP: 0px; LEFT: 0px; font-size: '+fallsize+'px; font-family: '+fallfont+';">'+fallwhat+'</span>'); } <br>
} <br>
} <br>
function fallt(i){ <br>
if((o<1>>winHei()-(fallsize*1.5))||(o<0>>winWid()-slider-(fallsize*fallwhat.length))){ newobj(i,0); } <br>
o<1> += o<4>; <br>
o<0>+=wind; <br>
o<5> += o<3>; <br>
sizexy=Math.sin(o<5>); <br>
lay=(ie4)?sizexy:parseInt(sizexy+1); <br>
sizexy=(sizexy>0)?sizexy:0-sizexy; <br>
with(eval(falllayer)){ <br>
top = o<1>+winOfy(); <br>
left = o<0>+o<2>*Math.cos(o<5>); <br>
if(!ns4){ <br>
zIndex=lay; <br>
color=colours <br>
} <br>
} <br>
dofallt = setTimeout("fallt("+i+")", speed); <br>
} <br>
for (i = 0; i < no; i++){ newobj(i,1); fallt(i); } <br>
</SCRIPT><br>
<br>
++++++++<br>
code รูปลอยจ๊า !!<br>
<br>
<br>
<div id="point1" STYLE="position:absolute;visibility:visible;"> <br>
<img src=" URL ของรูป "> <br>
</div> <br>
<br>
<SCRIPT LANGUAGE="JavaScript"> <br>
<!-- Begin <br>
var xPos = 20; <br>
var step = 1; <br>
var delay = 30; <br>
var yPos = 0; <br>
var height = 0; <br>
var offset = 0; <br>
var yon = 0; <br>
var name = navigator.appName; <br>
if (name == "Microsoft Internet Explorer") { <br>
yPos = document.body.clientHeight; <br>
point1.style.top = yPos; <br>
} <br>
else { <br>
yPos = window.innerHeight; <br>
document.point1.pageY = yPos; <br>
document.point1.visibility = "hidden"; <br>
} <br>
function changePos() { <br>
if (yon == 0) { <br>
yPos = yPos - step; <br>
} <br>
else { <br>
yPos = yPos + step; <br>
} <br>
if (name == "Microsoft Internet Explorer") { <br>
height = document.body.clientHeight; <br>
offset = point1.offsetHeight; <br>
} <br>
else { <br>
height = window.innerHeight; <br>
offset = document.point1.clip.height; <br>
} <br>
if (yPos < 0) { <br>
yon = 1; <br>
yPos = 0; <br>
} <br>
if (yPos >= (height - offset)) { <br>
yon = 0; <br>
yPos = (height - offset); <br>
} <br>
if (name == "Microsoft Internet Explorer") { <br>
point1.style.left = xPos; <br>
point1.style.top = yPos + document.body.scrollTop; <br>
} <br>
else { <br>
document.point1.pageX = xPos; <br>
document.point1.pageY = yPos + window.pageYOffset; <br>
} <br>
} <br>
function start() <br>
{ <br>
if (name != "Microsoft Internet Explorer") { <br>
document.point1.visibility = "visible"; <br>
} <br>
loopfunc(); <br>
} <br>
function loopfunc() <br>
{ <br>
changePos(); <br>
setTimeout('loopfunc()',delay); <br>
} <br>
start() <br>
// End --> <br>
</script> <br>
<br>
+++++++<br>
ข้อความเลื่อนแบบต่างๆ (marquee) <br>
<br>
------------------------------------------<br>
<br>
เด้ง บน-ล่าง <br>
<marquee behavior="alternate" direction="down" scrollamount="ความเร็ว" width="ความกว้าง" height="ความสูง">TEXT <br>
</marquee> <br>
<br>
ธรรมดา <br>
<marquee>TEXT</marquee> <br>
<br>
เต้งไปมา ซ้าย-ขวา <br>
<marquee behavior=alternate>TEXT</marquee> <br>
<br>
ซ้าย ไป ขวา <br>
<marquee direction=right>TEXT</marquee> <br>
<br>
ขวา ไป ซ้าย <br>
<marquee direction=left>TEXT</marquee> <br>
<br>
ล่าง ขึ้น บน <br>
<marquee direction=up>TEXT</marquee> <br>
<br>
บน ลง ล่าง <br>
<marquee direction=down>TEXT</marquee> <br>
<br>
จำกัดความสูง กว้าง <br>
<marquee width=100 height 50>TEXT</marquee> <br>
<br>
มีแบ๊กกราว และ กรอบ <br>
<marquee style="color: #000000; border: dotted 1 #000000" bgcolor=#C0C0C0>TEXT</marquee> <br>
<br>
ความเร็ว <br>
<marquee scrollamount=10>TEXT</marquee> <br>
<br>
เม้าชี้แล้วจะช้าลง <br>
<MARQUEE onmouseover=this.scrollAmount=1 onmouseout=this.scrollAmount=5>TEXT</marquee> <br>
<br>
ใส่รูป <br>
<marquee><img src="IMG_1.GIF" border="0"> <img src="IMG_2.GIF" border="0"> <img src="IMG_3.GIF"> <img src="IMG_4.GIF"></marquee><br>
<br>
+++++++++<br>
ข้อความกระพริบ<br>
<br>
----------------------<br>
<br>
<head> <br>
<!--Start Code From PremPree.Com --> <br>
<br>
<!--เริ่ม-แสดงcode--> <br>
<br>
<script language="ข้อความ"> <br>
setInterval("x()",1); <br>
function x(){window.status="PremPree DHTML"} <br>
</script> <br>
<br>
<!--จบ-แสดงcode--> <br>
<!--ic:flood--> <br>
<!-- End code From PremPree.Com --> <br>
<br>
<head> <br>
<br>
++++<br>
โค้ดรุปสั่น<br>
<br>
<style> <br>
.shakeimage{position:relative}<br>
</style><br>
<br>
<script language="JavaScript1.2"> <br>
//configure shake degree (where larger # equals greater shake)<br>
var rector=3<br>
///////DONE EDITTING///////////<br>
var stopit=0<br>
var a=1<br>
function init(which){<br>
stopit=0<br>
shake=which<br>
shake.style.left=0<br>
shake.style.top=0<br>
}<br>
<br>
function rattleimage(){<br>
if ((!document.all&&!document.getElementById)||stopit==1)<br>
return<br>
if (a==1){<br>
shake.style.top=parseInt(shake.style.top)+rector<br>
}<br>
else if (a==2){<br>
shake.style.left=parseInt(shake.style.left)+rector<br>
}<br>
else if (a==3){<br>
shake.style.top=parseInt(shake.style.top)-rector<br>
}<br>
else{<br>
shake.style.left=parseInt(shake.style.left)-rector<br>
}<br>
if (a<4)<br>
a++<br>
else<br>
a=1<br>
setTimeout("rattleimage()",50)<br>
}<br>
function stoprattle(which){<br>
stopit=1<br>
which.style.left=0<br>
which.style.top=0<br>
}<br>
</script> <br>
<br>
<center><img src= "UrLรุป"class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this)"><br>
<br>
<br>
ไม่มีความเห็น