2008-09-06 03:42:12

odloc
» Banned
FTalk Level: zero
1240
0
1969-12-31

Re: Bagi para member yang ingin bertanya seputar tweaking FS. Silahkan bertanya dan posting disini. Sebelum itu harap membaca dan mengikuti [url=http://theftalk.com/t23371-FORUM-RULES.html][b]FORUM

[quote=Mr Adiet]hai abng2..... gimana codenya ada kayak daun2 jatuh di profile kita......... please......[/quote] mngkin ini yg dmksd??? [spoiler][quote]//h1.ripway.com/marlon79 P=new Image(); P.src="[color=green][b]http://i191.photobucket.com/albums/z223/dj_dhey/ampundj-1.gif[/color][/b]"; //Pre-load your image here! SY=3; //Up-down speed! SX=5; //Left-right speed! LINK="#"; //Acak gambar! 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){ document.write("<marlon_it_cool...='pics' LEFT=0 TOP=0><a href="+LINK+"><img src='6786un8.gif' border=0></a></LAYER>"); } if (ie||n6){ document.write("<div id='pics' style='position:absolute;top:0px;left:0px'><a href="+LINK+"><img src="+P.src+" border=0></a></div>"); } R=0,C1=0;PB=0,Y=0,X=0,D=0,VB=0,HB=0; Y=10;X=10;D=Math.floor(Math.random()*60+10); function Curve(){ plusMinus=new Array(1,-1,2,-2,3,-3,0,1,-1,4,-4) R = plusMinus[Math.floor(Math.random()*plusMinus.length)]; } function MoveRandom(){ C1++; if (C1==50){Curve();C1=0} 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; var BY=-P.height; var BX=-P.width; PB=D+=R; y = SY*Math.sin(PB*Math.PI/180); x = SX*Math.cos(PB*Math.PI/180); if (D < 0) D+=360; Y+=y; X+=x; VB=180-D; HB=0-D; //Korner rebound, Flying picture. 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;} //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 temp=eval(d+a+"pics"+n6r+s); temp.top=Y+YS; temp.left=X+XS; setTimeout('MoveRandom()',10); } MoveRandom(); //-->[/quote] [/spoiler] atw yg ini: [spoiler][quote]//falling images var floatsrc="[color=green][b]http://rainbow.arch.scriptmania.com/scripts/bg/snow9.gif[/color][/b]" // var no = 15; var ns4up = (document.layers) ? 1 : 0; var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; var am, stx, sty; var i, doc_width = 700, doc_height = 1000; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // xp[i] = Math.random()*(doc_width-50); // yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // stx[i] = 0.02 + Math.random()/10; // sty[i] = 0.7 + Math.random(); // if (ns4up) { // if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+floatsrc+"' border=\"0\"></a></layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+floatsrc+"' border=\"0\"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+floatsrc+"' border=\"0\"></a></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+floatsrc+"' border=\"0\"></div>"); } } } function floatNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-10) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("floatNS()", 1); } function floatIE() { // I for (i = 0; i < no; ++ i) { // yp[i] += sty[i]; if (yp[i] > doc_height-10) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("floatIE()", 1); } if (ns4up) { floatNS(); } else if (ie4up) { floatIE(); }[/quote] [/spoiler] tuh yg ijo, gnti dngn gambar sesuka kmu... :thumbsup: sumber: [url]http://theftalk.com/p152766-2007-08-01-23%3A32%3A40.html#p152766[/url] [url]http://theftalk.com/p118003-2007-07-08-01%3A44%3A03.html#p118003[/url]

Last edited by odloc (2008-09-06 03:52:07)

Board footer

© 2024 F Talk

Current time is 11:27

[ 12 queries - 0.360 second ]
Privacy Policy