2008-09-28 21:01:49

CoWoCuPu
» FTalkElite
FTalk Level: zero
4881
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

[b]anakkemukus[/b] code utama (musti ada) dari trik ini adalah (letakkan di BAGIAN C): [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 }[/spoiler] kemudian masukkan ini ke dalam file css external : [quote].shakeimage{ position:relative; }[/quote] ------------------------------------------------------------ :arrow: PRIMARY PICTURE Masukkan script ini ke BAGIAN A atau BAGIAN C sesuai Referensi Bang Kanal : [quote]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; }[/quote] :arrow: PHOTOS, FRIENDS, FAN, GROUPS, RANDOMIZED FRIENDS untuk membuat image yang ada di photobox, friendsbox, fanbox, groupbox dan randomized friends box bergetar, masukkan kode ini terlebih dahulu ke file js external (letakkan di BAGIAN C sesuai Referensi Bang Kanal): [quote]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()'>"; } }[/quote] kemudian penulisan untuk photobox (letakkan di BAGIAN C) : [quote]shakedapic("1");[/quote] untuk friend, fan atau group, letakkan dalam onloadhandler (letakkan di BAGIAN B) [quote]shakedapic("2"); // untuk friend shakedapic("7"); // untuk fan shakedapic("8"); // untuk group[/quote] [color=red][b]jangan gunakan fungsi shakedapic("7"); atau shakedapic("8"); jika kamu tidak punya fan box atau group box ...[/b][/color]

Board footer

© 2024 F Talk

Current time is 09:18

[ 12 queries - 0.224 second ]
Privacy Policy