2008-05-06 18:30:44

arcatari
» FTalkElite
FTalk Level: zero
5370
0
1969-12-31

Re: [align=justify][b]bagi member yang ingin bertanya seputar tweaking FS, silahkan bertanya dan posting disini, tapi jangan lupa,,sebelum itu tolong [url=http://theftalk.com/t2744-%5BImportant%5D-

:arrow: [b]cacoel[/b] coba bro pake kode dibawah ini... ganti tulisan yg saya tebalin di bawah ini dengan url image yg akan di pakai.. tapi saya ga tau juga... apakah kode ni masih bisa apa ga...:D [quote]// Fall v1.0 created -By MaxxBlade var fallObjects=new Array();function newObject(url,height,width){fallObjects[fallObjects.length]=new Array(url,height,width);} ///////////// EDIT THIS SECTION ////////////// var numObjs=20, waft=50, fallSpeed=5, wind=0; newObject("[b]img url here[/b]",18,16); newObject("[b]img url her[/b]e",9,9); newObject("[b]img url here[/b]",18,16); newObject("[b]img url here[/b]",9,9); ////////////////////////////////////////////// function winSize(){winWidth=(moz)?window.innerWidth-185:document.body.clientWidth-185;winHeight=(moz)?window.innerHeight:document.body.clientHeight;} function winOfy(){winOffset=(moz)?window.pageYOffset:document.body.scrollTop;} function fallObject(num,vari,nu){ objects[num]=new Array(parseInt(Math.random()*(winWidth-waft)),-30,(parseInt(Math.random()*waft))*((Math.random()>0.5)?1:-1),0.02+Math.random()/20,0,1+parseInt(Math.random()*fallSpeed),vari,fallObjects[vari][1],fallObjects[vari][2]); if(nu==1){document.write('<img id="fO'+i+'" style="position:absolute;" src="'+fallObjects[vari][0]+'">'); } } function fall(){ for(i=0;i<numObjs;i++){ var fallingObject=document.getElementById('fO'+i); if((objects[i][1]>(winHeight-(objects[i][5]+objects[i][7])))||(objects[i][0]>(winWidth-(objects[i][2]+objects[i][8])))){fallObject(i,objects[i][6],0);} objects[i][0]+=wind;objects[i][1]+=objects[i][5];objects[i][4]+=objects[i][3]; with(fallingObject.style){ top=objects[i][1]+winOffset;left=objects[i][0]+(objects[i][2]*Math.cos(objects[i][4]));} } setTimeout("fall()",31); } var objects=new Array(),winOffset=0,winHeight,winWidth,togvis,moz=(document.getElementById&&!document.all)?1:0;winSize(); for (i=0;i<numObjs;i++){fallObject(i,parseInt(Math.random()*fallObjects.length),1);} window.onscroll=winOfy;window.onresize=winSize;fall();[/quote]

Board footer

© 2024 F Talk

Current time is 11:34

[ 12 queries - 1.596 second ]
Privacy Policy