|
|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | |
|
|
|
8 พฤษภาคม 2554
|
|
|
|
| |
โดย: fonrin 9 พฤษภาคม 2554 7:05:05 น. |
|
|
|
| |
โดย: fonrin 10 พฤษภาคม 2554 5:10:00 น. |
|
|
|
| |
โดย: fonrin 10 พฤษภาคม 2554 5:23:13 น. |
|
|
|
| |
โดย: fonrin 11 พฤษภาคม 2554 6:04:51 น. |
|
|
|
| |
โดย: phaclam 24 มิถุนายน 2554 21:09:13 น. |
|
|
|
| |
โดย: fonrin 22 กรกฎาคม 2554 0:56:49 น. |
|
|
|
| |
โดย: Gopz 13 ตุลาคม 2554 23:22:02 น. |
|
|
|
| |
โดย: aomzon (aomzon ) 20 ตุลาคม 2554 7:35:22 น. |
|
|
|
| |
โดย: aeawit (ratone ) 13 พฤศจิกายน 2554 7:27:31 น. |
|
|
|
| |
โดย: fonrin 10 กุมภาพันธ์ 2558 8:00:56 น. |
|
|
|
| |
|
|
ตัวเล็ก-ตากลม |
|
|
|
Pic=new Array("http://i11.photobucket.com/albums/a171/merrymod/anibfly13.gif",
"http://i11.photobucket.com/albums/a171/merrymod/anibfly12.gif",
"http://i11.photobucket.com/albums/a171/merrymod/anibfly11.gif")
MaxSpeed=4;
MinSpeed=2;
/************************ Nothing needs altering below ************************/
load = new Array()
for(i=0; i < Pic.length; i++)
{
load[i] = new Image();
load[i].src = Pic[i];
}
n=Pic.length;
n6=(document.getElementById&&!document.all);
ns=(document.layers);
ie=(document.all);
d=(ns||ie)?'document.':'document.getElementById("';
a=(ns||n6)?'':'all.';
n6r=(n6)?'")':'';
s=(ns)?'':'.style';
if (ns){
for (i=0; i < n; i++)
document.write("");
}
if (ie||n6){
for (i=0; i < n; i++)
document.write("");
}
VB=0;
HB=0;
R=new Array();
PB=new Array();
RD=new Array();
Y=new Array();
X=new Array();
D=new Array();
SP=new Array();
BY=new Array();
BX=new Array();
for (i=0; i < n; i++){
Y[i]=10;
X[i]=10;
D[i]=Math.floor(Math.random()*70+10);
SP[i]=Math.floor(Math.random()*MaxSpeed+MinSpeed);
}
function Curve(){
plusMinus=new Array(1,-1,2,-2,3,-3,0,1,-1,0,5,-5)
for (i=0; i < n; i++){
R[i]=Math.floor(Math.random()*plusMinus.length);
RD[i]=plusMinus[R[i]];
}
setTimeout('Curve()',1500);
}
function MoveRandom(){
var H=(ns||n6)?window.innerHeight:document.body.clientHeight;
var W=(ns||n6)?window.innerWidth:document.body.clientWidth;
var YS=(ns||n6)?window.pageYOffset:document.body.scrollTop;
var XS=(ns||n6)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < n; i++){
BY[i]=-load[i].height;
BX[i]=-load[i].width;
PB[i]=D[i]+=RD[i];
y = SP[i]*Math.sin(PB[i]*Math.PI/180);
x = SP[i]*Math.cos(PB[i]*Math.PI/180);
if (D[i] < 0) D[i]+=360;
Y[i]+=y;
X[i]+=x;
VB=180-D[i];
HB=0-D[i];
//Corner rebounds! not necessary but looks nice.
if ((Y[i] < 1) && (X[i] < 1)) {Y[i]=1;X[i]=1;D[i]=45;}
if ((Y[i] < 1) && (X[i] > W+BX[i])) {Y[i]=1;X[i]=W+BX[i];D[i]=135;}
if ((Y[i] > H+BY[i]) && (X[i] < 1)) {Y[i]=H+BY[i];X[i]=1;D[i]=315;}
if ((Y[i] > H+BY[i]) && (X[i] > W+BX[i])) {Y[i]=H+BY[i];X[i]=W+BX[i];D[i]=225;}
//Edge rebounds!
if (Y[i] < 1) {Y[i]=1;D[i]=HB;}
if (Y[i] > H+BY[i]) {Y[i]=H+BY[i];D[i]=HB;}
if (X[i] < 1) {X[i]=1;D[i]=VB;}
if (X[i] > W+BX[i]) {X[i]=W+BX[i];D[i]=VB;}
var temp=eval(d+a+"pics"+i+n6r+s);
temp.top=Y[i]+YS;
temp.left=X[i]+XS;
}
setTimeout('MoveRandom()',70);
}
Curve();
MoveRandom();
//-->
|
|
|
|