2008-11-10 12:16:16

freedoom07
» FTalker
FTalk Level: zero
175
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

:arrow: [b]pashya[/b] [spoiler]/* TESTIMONIALS EVEN ROW */ .commonbox .evenrow { background-color:transparent; background-image: url(http://i283.photobucket.com/albums/kk289/fahronim/kertas.jpg); }[/spoiler] d tambah d bagian itu bang... maap y kalo salah. :arrow: [b]ipang[/b] dah ada Script na Shake Image lom ? kalo blom ada ini script nya [spoiler]/**************************************** Shake image script (onMouseover)- © Dynamic Drive (www.dynamicdrive.com) For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com *****************************************/ //configure shake degree (where larger # equals greater shake) var rector=3 ///////DONE EDITTING/////////// var stopit=0 var a=1 function initshake(which){ stopit=0 shake=which shake.style.left=0 shake.style.top=0 } function rattleimage(){ if ((!document.all&&!document.getElementById)||stopit==1) return if (a==1){ shake.style.top=parseInt(shake.style.top)+rector } else if (a==2){ shake.style.left=parseInt(shake.style.left)+rector } else if (a==3){ shake.style.top=parseInt(shake.style.top)-rector } else{ shake.style.left=parseInt(shake.style.left)-rector } if (a<4) a++ else a=1 setTimeout("rattleimage()",50) } function stoprattle(which){ stopit=1 which.style.left=0 which.style.top=0 } function shakedapic(boxid,kelipatan){ /* IMAGES SHAKER by nopathz : */ var img2shake=document.getElementById("content_"+boxid).getElementsByTagName("img"); if (kelipatan==null) kelipatan=1; for (i=0;i<img2shake.length;i=i+kelipatan) { getsrc=img2shake[i].getAttribute("src"); dosrc=document.getElementById("content_"+boxid).getElementsByTagName("a")[i]; img2shake[i].parentNode.innerHTML="<img src='"+getsrc+"' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'>"; } } divpicutama=getElementByClassName("imgblock200")[0]; apicutama=divpicutama.getElementsByTagName("a")[0]; srcpicutama=divpicutama.getElementsByTagName("img")[0].getAttribute("src"); apicutama.innerHTML="<img src='"+srcpicutama+"' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'>"; function getElementByClassName(sClass) { var elm = []; var els = document.getElementsByTagName("*") || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className))elm.push(els[j]); } return elm; }[/spoiler] :thumbsup: Taruh d bagian C kamu lalu [spoiler]shakedapic("[b]2[/b]"); // [b]untuk friend[/b] shakedapic("[b]7[/b]"); // [b]untuk fan[/b] shakedapic("[b]8[/b]"); // [b]untuk group[/b][/spoiler] :thumbsup: taruh d bagian B :arrow: [b]all[/b] bro tanya cara mempercepat loading JS gmn bro ?

Last edited by freedoom07 (2008-11-10 12:36:52)

Board footer

© 2024 F Talk

Current time is 05:17

[ 12 queries - 0.238 second ]
Privacy Policy