ParaSamoN
Location :
ปทุมธานี Thailand

[ดู Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed
Smember
ผู้ติดตามบล็อก : 2 คน [?]




Group Blog
 
 
เมษายน 2550
1234567
891011121314
15161718192021
22232425262728
2930 
 
28 เมษายน 2550
 
All Blogs
 
Friends' blogs
[Add ParaSamoN's blog to your web]
Links
 

 
۞ ◊ แจก Code น่าใช้มากมายPart 2◊ ۞

۞ ◊ แจก Code น่าใช้มากมายPart 2◊ ۞





นี่เป็น Part 2 ส่วน Part 1 ก็กดเลยครับ

۞ ◊ Code น่าใช้มากมายPart 1◊ ۞


ลำดับของ Code


ลำดับของ Code




Part 1 ประกอบไปด้วย


01.ใส่ background เฉพาะกลางของเนื้อหา
02.ชี้ลิ้งค์กลับด้าน
03.เปลี่ยนสีลิ้งค์ทั้งหมด
04.ตัวหนังสือห่างกันทั้งบล๊อค
05.ทำให้รูปไม่มีกรอบสีฟ้า
06.บอกว่าเคยเข้า Blog นี้มากี่ครั้งแล้ว
07.คลิก Mouse ขวา แล้วไม่มีอะไรขึ้น
08.กรอบข้อความ
09.ข้อความต้อนรับ
10.ข้อความบอกลา
11.ชี้ลิ้งค์แล้วมีกรอบ
12.ถามอายุเวลาเข้า
13.เปลี่ยน Logo Bloggang
14.ข้อความร่วงลงมา
16.ข้อความวิ่งด้านบน
17.ข้อความวิ่งไม่มีพื้นหลัง
18.ข้อความวิ่งแบบมีพื้นหลัง
19.ข้อความที่เลื่อนบนหัวบล๊อค
20.ลิ้งค์กระพริบ
21.บล็อคใส
22.กรอบปฏิทิน
23.ภาพลอยออกจากกล่องคอมเม้น
24.ข้อความตอนเมาส์นิ่ง
25.คลิกขวามี POP UP
26.STATUS BAR โหลดเปนเปอร์เซ็น
27.ภาพลอยออกจากกล่องคอมเม้น
28.ลิ้งค์จาง
29.อักษรขึ้นทีละตัว
30.ห้ามคลุมแถบดำ
31. เมาส์บวก
32.คลิ๊กเมาส์บนลิ้งค์แล้วมีALERTขึ้นมา
33.ทำฝนตกในหน้าเวป


Part 2 ประกอบไปด้วย

34.ดับเบิ้ลคลิ๊กที่พื้นหลังแล้วเปลี่ยนสี

35.ชี้เมาส์ที่ลิ้งค์แล้วพื้นหลังเปลี่ยนสี

36.ห้ามเซฟรูปภาพ

37.ถามว่าเราจะตั้งหน้านี้เป็นโฮมหรือไม่

38.ทำนายรัก

39.เปลี่ยนสีสกอล์บาร์(บางคนเรียกไอ้แถบเลื่อนข้างๆ)




- 34 - ดับเบิ้ลคลิ๊กที่พื้นหลังแล้วเปลี่ยนสี




<SCRIPT LANGUAGE="JavaScript">
<!--
//ใส่ค่ากำหนดสำหรับการระเบิดของพลุแต่ละครั้ง
var intervals=2000
var sparksOn = true;
var speed = 20;
var power = 1;

//-------------------------------
var documentWidth=documentHeight=randomx=randomy=leftcorner=topcorner=0
var ns=(document.layers);
var ie=(document.all);
var sparksAflyin = false;
var allDivs = new Array(10);
var totalSparks = 0;
//-------------------------------

function initAll(){
if(!ns && !ie){
sparksOn = false;
return;
}
setInterval("firework()",intervals)

if (ns)
document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE);
for(dNum=0; dNum<7; ++dNum){
if(ie)
allDivs[dNum]=eval('document.all.sDiv'+dNum+'.style');
else
allDivs[dNum]=eval('document.layers["sDiv'+dNum+'"]');
}
}

function firework(){
//below code detects the browser dimenions
if (ie){
documentWidth=document.body.clientWidth
documentHeight=document.body.clientHeight
leftcorner=document.body.scrollLeft
topcorner=document.body.scrollTop
}
else if (ns){
documentWidth=window.innerWidth
documentHeight=window.innerHeight
leftcorner=pageXOffset
topcorner=pageYOffset

}
//below code randomly generates a set of coordinates that fall within the dimension
randomx=leftcorner+Math.floor(Math.random()*documentWidth)
randomy=topcorner+Math.floor(Math.random()*documentHeight)


if(sparksOn){
if(!sparksAflyin){
sparksAflyin=true;
totalSparks=0;
for(var spark=0;spark<=6;spark++){
dx=Math.round(Math.random()*50);
dy=Math.round(Math.random()*50);
moveTo(spark,randomx,randomy,dx,dy);
}
}
}
}

function moveTo(i,tempx,tempy,dx,dy){
if(ie){
if(tempy+80>(document.body.offsetHeight+document.body.scrollTop))
tempy=document.body.offsetHeight+document.body.scrollTop-80;
if(tempx+80>(document.body.offsetWidth+document.body.scrollLeft))
tempx=document.body.offsetWidth+document.body.scrollLeft-80;
}
if(tempx>-50&&tempy>-50){
tempx+=dx;tempy+=dy;
allDivs[i].left=tempx;
allDivs[i].top=tempy;
dx-=power;dy-=power;
setTimeout("moveTo("+i+","+tempx+","+tempy+","+dx+","+dy+")",speed)
}
else
++totalSparks
if(totalSparks==7){
sparksAflyin=false;
totalSparks=0;
}
}
window.onload=initAll
//End-->
</script>

<style>
#sDiv0 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:Aqua;}
#sDiv1 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:red;}
#sDiv2 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:blue;}
#sDiv3 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:orange;}
#sDiv4 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:yellow;}
#sDiv5 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:lightgreen;}
#sDiv6 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:silver;}
</style>




- 35 - ชี้เมาส์ที่ลิ้งค์แล้วพื้นหลังเปลี่ยนสี



[<a href="/"
="document.bgColor='green'">Green</a>]
[<a href="/"
="document.bgColor='greem'">Bright Green</a>]
[<a href="/"
="document.bgColor='seagreen'">Sea Green</a>]
[<a href="/"
="document.bgColor='red'">Red</a>]<BR>
[<a href="/"
="document.bgColor='magenta'">Magenta</a>]
[<a href="/"
="document.bgColor='fusia'">Fusia</a>]
[<a href="/"
="document.bgColor='pink'">Pink</a>]
[<a href="/"
="document.bgColor='purple'">Purple</a>][<a href="/"
="document.bgColor='navy'">Navy</a>]
[<a href="/"
="document.bgColor='blue'">Blue</a>]
[<a href="/"
="document.bgColor='royalblue'">Royal Blue</a>]
[<a href="/"
="document.bgColor='Skyblue'">Sky Blue</a><BR>
[<a href="/"
="document.bgColor='yellow'">Yellow</a>]
[<a href="/"
="document.bgColor='brown'">Brown</a>]
[<a href="/"
="document.bgColor='almond'">Almond</a>]
[<a href="/"
="document.bgColor='white'">White</a>]<BR>
[<a href="/"
="document.bgColor='black'">Black</a>]
[<a href="/"
="document.bgColor='coral'">Coral</a>]
[<a href="/"
="document.bgColor='olivedrab'">Olive Drab</a>]
[<a href="/"
="document.bgColor='orange'">Orange</a>]





- 36 - ชี้เมาส์ที่ลิ้งค์แล้วพื้นหลังเปลี่ยนสี



<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;idocument.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>



- 37 - ถามว่าเราจะตั้งหน้านี้เป็นโฮมหรือไม่



<STYLE>
@media All
{
ie\:homepage {
BEHAVIOR: url(#default#homepage)
}

}
</STYLE>
<ie:homepage id=page>



- 38 - ทำนายรัก



<script LANGUAGE="JavaScript">
/*
By Wee Family psweesam@singnet.com.sg
Featured on Website Abstraction (//wsabstract.com)
For this and over 400+ free scripts, visit //wsabstract.com
*/

function calc() {
first = document.loveform.name1.value.toUpperCase();
firstlength = document.loveform.name1.value.length;
second = document.loveform.name2.value.toUpperCase();
secondlength = document.loveform.name2.value.length;
var LoveCount=0;

for (Count=0; Count < firstlength; Count++) {


letter1=first.substring(Count,Count+1);

if (letter1=='L') LoveCount+=2;
if (letter1=='O') LoveCount+=2;
if (letter1=='


- 39 - เปลี่ยนสีสกอล์บาร์(บางคนเรียกไอ้แถบเลื่อนข้างๆ)




<style>
BODY { scrollbar-face-color:รหัสสี;
scrollbar-shadow-color:รหัสสี;
scrollbar-highlight-color:รหัสสี;
scrollbar-3dlight-color:รหัสสี;
scrollbar-darkshadow-color:รหัสสี;
scrollbar-track-color:รหัสสี;
scrollbar-arrow-color:รหัสสี;
-->}
</style>









Create Date : 28 เมษายน 2550
Last Update : 26 พฤษภาคม 2550 2:08:44 น. 7 comments
Counter : 612 Pageviews.

 
ขอบคุณมากๆเลยค่ะ


โดย: ple IP: 203.172.175.98 วันที่: 5 พฤษภาคม 2550 เวลา:14:16:06 น.  

 
สูบเอาทิงค์ไปให้เพื่อนคนอื่นใช้
ใหเคดิด เรียบร้อยแล้วครับ

ของเค้า ดีจิงๆ


โดย: Kyo IP: 222.123.175.58 วันที่: 12 พฤษภาคม 2550 เวลา:22:02:06 น.  

 
ขอโทษนะคะ part 1 ยังไม่ได้ publich เลยค่ะ ไม่สามารถดูข้อมูลได้นะคะ ขอบคุณค่ะ
oue2515_sipa@hotmail.com


โดย: oue2515 IP: 203.209.96.172 วันที่: 26 พฤษภาคม 2550 เวลา:0:35:33 น.  

 
ขอบคุณสำหรับคำแนะนำมากๆค่า


โดย: เกตุ (ket_20005 ) วันที่: 29 พฤษภาคม 2550 เวลา:9:36:38 น.  

 
thanks ka


โดย: พี่ลูกโป่ง วันที่: 18 กรกฎาคม 2550 เวลา:0:45:51 น.  

 
ขอบคุณค่า ... ทำตามได้ง่ายดีค่ะ


โดย: piggydeejai วันที่: 11 ธันวาคม 2550 เวลา:14:34:12 น.  

 
แล้วจะนำไปศึกษาเพิ่มเติมคะ น่าสนใจมาก ขอบคุณคะ


โดย: หนึ่งคิด วันที่: 16 เมษายน 2551 เวลา:20:25:01 น.  

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 
 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.