sitenize kalp eklemey nedersiniz

buzlukent

Üye
Katılım
12 Tem 2006
Mesajlar
4
Tepkime puanı
0
Puanları
0
<script language="JavaScript">
<!-- Multi Random Movement Script by [email protected]

P=new Image();
P.src="http://www.benimsayfam.com/ekart/images/yagmur/kalp2.gif"; file://Pre-load your image here!
Pic="http://www.benimsayfam.com/ekart/images/yagmur/kalp3.gif"; file://Type your image name here!
amount=8; file://Amount of images, not less than 2!
BY=-20; file://Your image height!
BX=-20; file://Your image width!
S=2; file://speed!

/************************ Nothing needs altering below ************************/
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=10;X=10;D=Math.floor(Math.random()*80+10);SP=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=Math.floor(Math.random()*plusMinus.length);
RD=plusMinus[R];
}
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=D+=RD;
y = SP*Math.sin(PB*Math.PI/180);
x = SP*Math.cos(PB*Math.PI/180);
if (D < 0) D+=360;
Y+=y;
X+=x;
VB=180-D;
HB=0-D;
file://Corner rebounds! not necessary but looks nice.
if ((Y < 1) && (X < 1)) {Y=1;X=1;D=45;}
if ((Y < 1) && (X > W+BX)) {Y=1;X=W+BX;D=135;}
if ((Y > H+BY) && (X < 1)) {Y=H+BY;X=1;D=315;}
if ((Y > H+BY) && (X > W+BX)) {Y=H+BY;X=W+BX;D=225;}
file://Edge rebounds!
if (Y < 1) {Y=1;D=HB;}
if (Y > H+BY) {Y=H+BY;D=HB;}
if (X < 1) {X=1;D=VB;}
if (X > W+BX) {X=W+BX;D=VB;}
var layer=(document.layers)?document.layers['netscape'+i]:explorer.style;
layer.top=Y+YS;
layer.left=X+XS;
}
}
function sTaRt(){Curve();MoveRandom()}
if (document.all||document.layers){sTaRt()}
file://-->
</script>
<p></p>


edit: mail adreslerinizi mesaj içinde yazmayınız...

profilinizde yazabileceğiniz bir alan var...
 

RoJhaT

Paylaşımcı
Katılım
6 Haz 2006
Mesajlar
298
Tepkime puanı
2
Puanları
0
eğer bi sitem olsaydı kesinlikle eklerdim :D
 

SeNoL

MUEYABYA
Katılım
16 Kas 2006
Mesajlar
4,867
Tepkime puanı
224
Puanları
0
Yaş
42
Konum
Kocaeli
S.A
evet bende calıştıramadım...
 
Üst