2008-09-20 13:53:43

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=strezzpc]Taruh dibagian C Jangan lupa fungsi Tooltip dan Fungsi getElementsByClassName[/quote] [b]-edited-[/b] function getelementbyclassname yg ini bkn: [spoiler]function getElementsByClassName(strClass, strTag, objContElm) { strTag = strTag || "*"; objContElm = objContElm || document; var objColl = objContElm.getElementsByTagName(strTag); if (!objColl.length && strTag == "*" && objContElm.all) objColl = objContElm.all; var arr = new Array(); var delim = strClass.indexOf('|') != -1 ? '|' : ' '; var arrClass = strClass.split(delim); for (var i = 0, j = objColl.length; i < j; i++) { var arrObjClass = objColl[i].className.split(' '); if (delim == ' ' && arrClass.length > arrObjClass.length) continue; var c = 0; comparisonLoop: for (var k = 0, l = arrObjClass.length; k < l; k++) { for (var m = 0, n = arrClass.length; m < n; m++) { if (arrClass[m] == arrObjClass[k]) c++; if (( delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length)) { arr.push(objColl[i]); break comparisonLoop; } } } } return arr; }[/spoiler] & tooltips'a yg ini: [spoiler]<">[/spoiler] :paranoid:

Last edited by odloc (2008-09-20 13:57:18)

Board footer

© 2024 F Talk

Current time is 08:51

[ 12 queries - 0.225 second ]
Privacy Policy