Group Blog
 
 
กุมภาพันธ์ 2553
 
 123456
78910111213
14151617181920
21222324252627
28 
 
17 กุมภาพันธ์ 2553
 
All Blogs
 

โค้ดน่าสนใจ(ของล่องลอยบนหน้าจอ)

โค้ดนี้จะทำให้ไอคอนที่เราต้องการ Smiley ล่องลอยเล่นอยู่บนหน้าจอ(ไม่ใช่โค้ดของร่วงบนเฮดบล็อกนะ)


*url=ที่อยู่ของรูปๆนั้น คลิกขวาแล้วเลือก Properties ก็อปตรงช่อง address(url) มาใส่ตรงตัวหนังสือสีแดงในโค้ดค่ะ



และก้ตอนใส่ ลบ*ออกด้วยนะคะ

<*script language="JavaScript">

<*!-- fall Script Kurt Grigg - //www.btinternet.com/~kurt.grigg/javascript



var isNetscape6=false;

if (navigator.appName == "Netscape" && parseFloat(navigator.appVersion) >= 5)

isNetscape6=true;


/*

This script has been disabled for

Netscape 6 due to ugly scrollbar

activety. Could probably be fixed

with a clipped container div but

can't be bothered.

*/



if (!isNetscape6){

num=1; //Smoothness depends on image file size, the smaller the size the more you can use!

stopafter=240; //seconds!





//Pre-load images!

pics=new Array(".....URL ของรูป.....");

load=new Array();

for(i=0; i < pics.length; i++){

load[i]=new Image();

load[i].src=pics[i];

}

stopafter*=1000;

timer=null;

y=new Array();

x=new Array();

s=new Array();

s1=new Array();

s2=new Array();

if (document.layers){

for (i=0; i < num; i++){

randomleaf = pics[Math.floor(Math.random()*pics.length)];

document.write("");

}

}

if (document.all){

document.write('
');

for (i=0; i < num; i++){

randomleaf = pics[Math.floor(Math.random()*pics.length)];

document.write('');

}

document.write('
');

}

if (!document.all&&!document.layers){

for (i=0; i < num; i++){

randomleaf = pics[Math.floor(Math.random()*pics.length)];

document.write("
");

}

}

inih=(document.all)?window.document.body.clientHeight:window.innerHeight-100;

iniw=(document.all)?window.document.body.clientWidth:window.innerWidth-100;

for (i=0; i < num; i++){

y[i]=Math.round(Math.random()*inih);

x[i]=Math.round(Math.random()*iniw);

s[i]=Math.random()*5+3;

s1[i]=0;

s2[i]=Math.random()*0.1+0.05;

}

function fall(){

h=(document.all)?window.document.body.clientHeight:window.innerHeight;

w=(document.all)?window.document.body.clientWidth:window.innerWidth;

scy=(document.all)?document.body.scrollTop:window.pageYOffset;

scx=(document.all)?document.body.scrollLeft:window.pageXOffset;

for (i=0; i < num; i++){

sy=s[i]*Math.sin(90*Math.PI/180);

sx=s[i]*Math.cos(s1[i]);

y[i]+=sy;

x[i]+=sx;

if (y[i] > h){

y[i]=-60;

x[i]=Math.round(Math.random()*w);

s[i]=Math.random()*5+3;

}

s1[i]+=s2[i];

if (document.layers){

document.layers["leaf"+i].left=x[i];

document.layers["leaf"+i].top=y[i]+scy;

}

else{

document.getElementById("leaf"+i).style.left=x[i];

document.getElementById("leaf"+i).style.top=y[i]+scy;

}

}

timer=setTimeout('fall()',80);

}

fall();



function dsbl(){

for (i=0; i < num; i++){

if (document.layers)

document.layers["leaf"+i].visibility="hide";

else

document.getElementById("leaf"+i).style.visibility="hidden";

}

clearTimeout(timer);

}

setTimeout('dsbl()',stopafter);

}

//-->





 

Create Date : 17 กุมภาพันธ์ 2553
1 comments
Last Update : 17 กุมภาพันธ์ 2553 20:56:38 น.
Counter : 483 Pageviews.

 

“Our greatest glory is not in never falling,
but in rising every time we fall.”

- --- Anonymous

ความภาคภูมิใจที่ยิ่งใหญ่ที่สุด
มิใช่การที่ไม่เคยพ่ายแพ้
แต่คือการลุกขึ้นยืนหยัดในทุกครั้งที่เราล้ม

 

โดย: Elbereth 18 กุมภาพันธ์ 2553 12:48:54 น.  

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 


little clover
Location :


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

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




Ohayo! Watashi wa Little clover desu^_^
เค้าคงไม่รู้หรอก ว่าเราชอบเค้ามากแค่ไหน และก็ไม่อยากให้เค้ารู้ รวมถึงคนอื่น ที่คอยแต่เฝ้าจับผิด ไม่เป็นไรหรอกนะ ขอแค่คอยแอบชอบ คอยเฝ้าดูอยู่ห่างๆ ก็พอใจแล้ว....
ชั้นรู้ตัวว่าไม่ควรห้ามเทอแบบนั้น แต่ถ้าเทอยังสำนึกในความเปนเพื่อนของเรา เทอควรจะคิดถึงใจชั้นบ้าง ชั้นไม่อยากห้ามเทออีกแล้ว แต่ถ้าเทอสังเกตุ เทอก็จะเห็นและรู้สึกได้ถึงแววร้าวที่ชั้นสะกดกลั้นเอาไว้ข้างใน ทุกครั้งที่เทอคุยกับมัน

แจกของน่ารัก by zalim-code.com

pYzam Page Pets
FreeFlashToys Page Pets
Get your own Falling Objects at MyCuteSpace.com!
สวัดีค่ะ ขอให้มีความสุขกับการชมบล็อกนะคะ11111
loaocat
loaocat
>

Every one are LUKKY ^_^





















hits
Friends' blogs
[Add little clover's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.