Pages: 123456..6

  2007-12-29 14:04:56

☻KaNaLiTnUk☻
» Banned
FTalk Level: zero
45
0
1969-12-31

Re: Ini adalah code untuk menampilkan windows baru seperti Welcome alert. Tetapi ini fungsinya beda, ini adalah [b]Auto Friend Scanners[/b]. Jika ada Viewer yang belum jadi friend kamu di FS. akan keluar

:arrow: [b] MENGGABUNGKAN JS FRIEND SCANNER DENGAN JS ADDBOX (TANPA WVM)[/b] Ini script jadinya (lihat yg bagian tebal OK dan ini juga merupakan hasil pemilahan dari script asli Friend Scanner) :) [quote]//onload handler function onProfileLoad() { //addboxes here } [b]/*FRIEND SCANNER*/ if (typeof FRIENDSCAN == "undefined") { FRIENDSCAN = {}; } FRIENDSCAN = { init: function() { var emailAdd = "EMAIL FS"; 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\s]*?authcode=([\S\s]+?)">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="+encodeURI(emailAdd)+"&lastname="; } } } };[/b] if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; [b]FRIENDSCAN.init();};[/b] function addBox (type,head,htm,id,sibling) { //by marfillaster //type "LEFT" | "RIGHT" //head header string //htm innerHTML string //id css_id string //sibling css_id_insertbefore string | null /* Available default Siblings LEFT 0 = controlpanel 1 = photos 13 = blogs 12 = reviews 6 = moreabout 18 = publiccomments 10 = scrapbook RIGHT 15 = meettrail 2 = friends 14 = googleads 7 = fan 8 = groups null - appends to last */ try { var li=document.createElement("li"); } catch(e) { var li=document.createElement("<li>"); } if(type=="LEFT") { var ul=document.getElementById("0").parentNode.parentNode; htm="<div class='boxcontent'>"+htm+"</div>"; } else var ul=document.getElementById("2").parentNode.parentNode; li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+ "<h2>"+head+"</h2>"+ "<div id='content_"+id+"'>"+ htm+ "</div>"+ "</div>"; if(sibling==null) ul.appendChild(li); else { sibling=document.getElementById(sibling).parentNode; ul.insertBefore(li,sibling); } }[/quote] Happy tweaking member FTI'ers semua :thumbsup:

Last edited by ☻KaNaLiTnUk☻ (2007-12-29 14:06:10)

Pages: 123456..6

Board footer

© 2024 F Talk

Current time is 00:12

[ 12 queries - 0.049 second ]
Privacy Policy