2008-10-19 12:10:59

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

bang gmn cara nya mindahiin WVM box ke bawah nya groups box ? JS saya http://h1.ripway.com/freedoom07/Friendster/test.txt FS saya http://profiles.friendster.com/20637283 Bang saya coba JS :thumbsdown: kok muncul error box y ?? [spoiler]if (!attachOnLoadHandler(function() { FRIENDSCAN.init();})) window.onload = function() { FRIENDSCAN.init();}; if (typeof FRIENDSCAN == "undefined") { FRIENDSCAN = {}; } FRIENDSCAN = { details: { email: null }, regexp: { email: /owner><email>(\b[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}\b)<\/email>/i }, init: function() { FRIENDSCAN.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+pageOwnerID,FRIENDSCAN.fScanner,null); }, fScanner: function(htm) { if (htm.replace(/^\s*|\s*$/g,"") === "") { alert("Error: Unable to parse the email!");return; }else if (htm) { try { FRIENDSCAN.details.email = new RegExp(FRIENDSCAN.regexp.email).exec(htm)[1]; }catch(e) { FRIENDSCAN.details.email = ""; } var emailAdd = encodeURIComponent(FRIENDSCAN.details.email); var areWeFriend = "yes"; var authCode = ""; var scanner = document.getElementById("controlPanelButtons").innerHTML; var AFRconfirm = scanner.search(/Add as Friend/); if (AFRconfirm > 0) { areWeFriend = "no"; authCode = /href="[\S]*?authcode=([\da-z]+?)">Add as Friend/.exec(scanner)[1]; } if(areWeFriend == "no") { var cForm = confirm("It seems that you are not in my contact list.\n Do you want to add me as your friend?"); if (cForm == true) { document.location.href="http://www.friendster.com/addfriendrequest.php?confirm=1&authcode="+authCode+"&uid="+pageOwnerID+"&id=&email="+emailAdd+"&lastname="; } } } }, ajaxRequest: function(url,func,handler) { var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); httprequest.onreadystatechange = function() { if (httprequest.readyState == 4) { if (httprequest.status == 200) { func(httprequest.responseText,handler); } } }; httprequest.open("GET", url, true); httprequest.send(null); } };[/spoiler] apa ada yang perlu d rubah pada Script d atas ?

Last edited by freedoom07 (2008-10-19 12:28:32)

Board footer

© 2024 F Talk

Current time is 07:19

[ 12 queries - 0.232 second ]
Privacy Policy