
À¥µðÀÚÀÎ °øºÎ¹æ
HTML,PHP °øºÎ¹æ
ÆÁ & Å×Å© °Ô½ÃÆÇ
|
¹øÈ£ : 17 |
È¸é ¾È¿¡¼ ¾Æ¹«·¸°Ô³ª ¿òÁ÷ÀÌ´Â À̹ÌÁö~ |
ÀÛ¼ºÀÚ : À̰ÇÈ£  |
ÀÛ¼ºÀÏ : 2005-11-19 19:11:00 |
|
<head>¿Í </head> »çÀÌ¿¡ ³Ö¾îÁÖ¼¼¿ä.
<script language="JavaScript">
<!-- Multi Random Movement Script by kurt.grigg@virgin.net
P=new Image();
P.src="kissofgod.gif";
Pic="kissofgod.gif";
amount=20;
BY=-20;
BX=-20;
S=5;
ns=(document.layers)?1:0;
if (ns){
for (i=0; i < amount; i++)
document.write("<LAYER NAME='netscape"+i+"' LEFT=0 TOP=0><img src="+Pic+"></LAYER>");
}
else{
document.write("<div style='position:absolute;top:0px;left:0px'><div style='position:relative'>");
for (i=0; i < amount; i++)
{document.write("<img id='explorer' src='"+Pic+"' style='position:absolute;top:0px;left:0px'>")}
document.write("</div></div>")
}
R=new Array(),PB=new Array(),RD=new Array(),Y=new Array(),X=new Array(),D=new Array(),VB=0,HB=0,SP=new Array();;
for (i=0; i < amount; i++){Y[i]=10;X[i]=10;D[i]=Math.floor(Math.random()*80+10);SP[i]=Math.floor(Math.random()*S+3)}
function Curve(){
plusMinus=new Array(1,-1,2,-2,3,-3,0,1,-1)
for (i=0; i < amount; i++){
R[i]=Math.floor(Math.random()*plusMinus.length);
RD[i]=plusMinus[R[i]];
}
setTimeout('Curve()',1800);
}
function MoveRandom(){
T=setTimeout('MoveRandom()',10);
var H=(document.layers)?window.innerHeight:document.body.clientHeight;
var W=(document.layers)?window.innerWidth:document.body.clientWidth;
var YS=(document.layers)?window.pageYOffset:document.body.scrollTop;
var XS=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < amount; i++){
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];
if ((Y[i] < 1) && (X[i] < 1)) {Y[i]=1;X[i]=1;D[i]=45;}
if ((Y[i] < 1) && (X[i] > W+BX)) {Y[i]=1;X[i]=W+BX;D[i]=135;}
if ((Y[i] > H+BY) && (X[i] < 1)) {Y[i]=H+BY;X[i]=1;D[i]=315;}
if ((Y[i] > H+BY) && (X[i] > W+BX)) {Y[i]=H+BY;X[i]=W+BX;D[i]=225;}
if (Y[i] < 1) {Y[i]=1;D[i]=HB;}
if (Y[i] > H+BY) {Y[i]=H+BY;D[i]=HB;}
if (X[i] < 1) {X[i]=1;D[i]=VB;}
if (X[i] > W+BX) {X[i]=W+BX;D[i]=VB;}
var layer=(document.layers)?document.layers['netscape'+i]:explorer[i].style;
layer.top=Y[i]+YS;
layer.left=X[i]+XS;
}
}
function sTaRt(){Curve();MoveRandom()}
if (document.all||document.layers){sTaRt()}
//-->
</script>
kissofgod.gif (µÎ ±ºµ¥ ¸ðµÎ) ´Â »ç¿ëÇÒ ±×¸²ÀÇ °æ·Î ¹× À̸§ÀÔ´Ï´Ù.
amount=20; ¿¡¼ 20 Àº È¸é ¾È¿¡ ä¿ï ±×¸²ÀÇ ¼öÀ̱¸¿ä.
(ÃÖ¼Ò 20°³ ÀÌ»óÀ̾î¾ß ÇÕ´Ï´Ù)
BY=-20; ¿¡¼ -20 ¿¡´Â ±×¸² °¡·Î»çÀÌÁî(Çȼ¿°ª)ÀÇ À½¼ö°ªÀ» Àû¾îÁÖ½Ã¸é µË´Ï´Ù.
BX=-20; ¿¡¼ -20 ¿¡´Â ±×¸²ÀÇ ¼¼·Î»çÀÌÁî(Çȼ¿°ª)ÀÇ À½¼ö°ªÀ» Àû¾îÁÖ½Ã¸é µË´Ï´Ù.
S=5; ¿¡¼ 5 ´Â ±×¸²ÀÌ ¿òÁ÷ÀÌ´Â ¼Óµµ (Å« ¼öÀϼö·Ï ºü¸¨´Ï´Ù)
|
|
|
 |
|
|
|
 |
|