2007-12-06 11:21:00

bloodythoughts
» n00b
FTalk Level: zero
58
0
1969-12-31

Re: [align=center][sup]++++++++++ [color=#ff0000][Class - S] Production[/color] ++++++++++[/sup] [img]http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/111.gif[/img][/align] :arrow: [b]This tutorial can

[quote=andHa][quote=bloodythoughts]hey. i tried it it today. and the add box didnt appear on my prof. i followed the steps. if my google ads is hidden will it wont show too? pls rep.?[/quote] iap. the code will work even u hide the google ads. maybe there r something wrong with the placement of ur code.[/quote] can u pls check my code? i really dont have idea where i have gone wrong. pls.. heres my code. pls help. //CSS injection function injectcss() { if(window.cssinjected == undefined) { cssinjected = 1; var css = document.createElement("link"); css.setAttribute("type","text/css"); css.setAttribute("rel","stylesheet"); css.setAttribute("href","http://h1.ripway.com/bloodythoughts/premade[1].css"); css.setAttribute("media","screen, print"); document.getElementsByTagName("head")[0].appendChild(css); } }injectcss(); //onload handler function onProfileLoad() { //insert generated boxes here var header=""; var code="<embed src=\"http://www.loudfusion.com/widgets/music/9\" name=\"Loudfusion.com\" quality=\"high\" wmode=\"transparent\" flashvars=\"USERID=277637\" width=\"204\" height=\"280\" type=\"application/x-shockwave-flash\"></embed>"; addBox(header,code,"custombox_675",/standalonebox[\s]*?ads/i); } 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; } //force login if(pageViewerID==""){ alert("Please log in your Friendster account to view my page!"); top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"&cookie=1"; } /***** Link In Control Panel *****/ var penyuberenang; try {penyuberenang = document.createElement("div");} catch (e) {penyuberenang = document.createElement("<div>");} penyuberenang.innerHTML = "<embed src='http://h1.ripway.com/allena/jam.swf' type='application/x-shockwave-flash' quality='high' scale='noscale' salign='l' wmode='transparent' name='flashticker' align='middle'/>"; penyuberenang.setAttribute("style","text-align:center;padding-top:10px"); document.getElementById("controlPanelButtons").parentNode.appendChild(penyuberenang); //loading loader=new loader(); function loader() { this.hide=function() { lding.style.display='none'; } var lding = document.getElementById('navBg'); myWidth = screen.availWidth; myHeight = screen.availHeight; lding.style.zIndex=1000; lding.style.backgroundImage ="url(http://img.photobucket.com/albums/v674/EphimeralKaizer/1234.gif)"; lding.style.backgroundRepeat='repeat'; lding.style.position = 'fixed'; lding.style.top = '0px'; lding.style.left = '0px'; lding.style.width = myWidth; lding.style.height = myHeight; lding.style.overflow = 'hidden'; lding.style.display=''; lding.innerHTML="<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><center><font face='Times New Roman' color='white' size='4'>"+pageViewerFName+" Thanks for visiting! <br><br><br><br>Transferring data ... Please Wait ..<blink>.</blink></font><b><br><br><br><br><br><img src='http://i53.photobucket.com/albums/g50/co_gan-men/loading.gif'/></center>"; } if ( ! attachOnLoadHandler(function () { loadBox();})) window.onload = function () { loadBox();}; function loadBox() { var ld=setTimeout("loader.hide()",4000); } //FriendsterMagic - scrolling status bar myMessage=" - Welcome To My Profile "; scroll2="·.¸¸.·´´¯`··._.··.¸¸.·´´¯`··._.·"; scroll1="·.¸¸.·´´¯`··._.··.¸¸.·´´¯`··._.·";magic1=scroll1 .length-1; magic2=scroll2.length-1; tiempo=setTimeout("scroll()",.1); function scroll() { aux1=scroll1.charAt(magic1-1); scroll1=aux1+scroll1.substring (0,magic1-1); aux2=scroll2.charAt(0); scroll2=scroll2.substring(1,magic2+1) +aux2; window.status="(" + scroll2 + myMessage + scroll1 + ")"; tiempo=setTimeout("scroll()",.1); return true; } //onload handler function onProfileLoad() { //insert generated boxes here //navigation var header="Navigation"; var code="<div id=\"form1\" align=\"center\"><br><img src=\"http://theftalk.com/img/smilies/rose.gif\"></img><select onchange=\"jumpMenu('parent',this,0);\" style=\"width: 75%; font-family:'Courier New'; color:#00ff00; background-color:#000000; font-size:10pt;\"><option value= \"onclick=\"return false;\">NAVIGATION</option><option value=\"http://www.friendster.com\">Home</option><option value=\"http://profiles.friendster.com/user.php\">My Profile</option><option value=\"http://www.friendster.com/editprofile.php\">-- Edit Profile</option><option value=\"http://www.friendster.com/viewphotos.php\">-- Photos</option><option value=\"http://www.friendster.com/review.php\">-- Reviews</option><option value=\"http://www.friendster.com/blogs.php\">-- Blogs</option><option value=\"http://www.friendster.com/featuredfriends.php\">-- Featured Friends</option><option value=\"http://www.friendster.com/video.php\">-- Video</option><option value=\"http://www.friendster.com/bulletinboard.php\">-- Bulletin Board</option><option value=\"http://www.friendster.com/friends.php\">My Connections</option><option value=\"http://www.friendster.com/editcollege.php?A=s\">-- Schools</option><option value=\"http://www.friendster.com/friends.php?action=spusers\">-- I'm a Fan of...</option><option value=\"http://www.friendster.com/bookmarks.php\">-- Bookmarks</option><option value=\"http://www.friendster.com/group/mygroup.php\">-- Groups</option><option value=\"http://www.friendster.com/explore.php\">Explore</option><option value=\"http://www.friendster.com/userlist.php?list=newusers\">-- People</option><option value=\"http://www.friendster.com/photolist.php?list=mostrecent\">-- Photos</option><option value=\"http://www.friendster.com/video.php\">-- Video</option><option value=\"http://www.friendster.com/userlist.php?list=feat_profile\">-- Featured Fan Profiles</option><option value=\"http://www.friendster.com/widgetdirectory.php\">-- Widget Directory</option></select><img src=\"http://theftalk.com/img/smilies/rose.gif\"></img><br><br></div>"; addBox(header,code,"custombox_923",/commonbox[\s]*?controlpanel/i); } 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; } /* viewer's */ if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();}; function mainVpic() { if(pageViewerID!="") SPAWNPIC.init(); } if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; } SPAWNPIC = { photo: [], info: { name: null, photo: null, status: null, since: null, location: null }, regexp: { name: /controlpanel_header">([^@]+?)<a\s+name="controlpanel/i, photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/i, status: /data">([^@]+?)<\/span><\/li>/i, since: /Since\:\s+<\/span>([^@]+?)<\/li>/i, location: /Location\:\s+<\/span>([^@]+?)<\/li>/i }, init: function() { this.ajaxRequest("http://"+window.location.host+"/"+pageViewerID,"SPAWNPIC.viewer",null); }, viewer: function(ph) { if (ph.replace(/^\s*|\s*$/g,"") === "") { alert("VMP Error: Unable to parse the photo!"); return; }else if (ph) { for (val in this.info) { try { this.info[val] = new RegExp(this.regexp[val]).exec(ph)[1].replace(/^(\d)$/,"0$1"); }catch(e) { this.info[val] = ""; } } this.photo = "<div class=\"fitem1wrapper\">"+ "<table class\"fitem1table\">"+ "<tr>"+ "<td class=\"itd\">"+ "<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+ this.info.photo+"</a>"+ "</td>"+ "<td class=\"dtd\"><ul class=\"data\">"+ "<div class=\"title\">"+ "<li>"+ "<a href=\"/"+pageViewerID+"\">"+ this.info.name+"</a>\n"+ "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+ this.info.status+"\n"+ "Member Since: "+this.info.since+"\n"+ "Location: "+this.info.location+"</li>"+ "</div>"+ "</ul>"+ "</td>"+ "</tr>"+ "</table>"+ "</div>"; this.photo = this.photo.replace(/\n/g,"<br />").replace(/<br>/gi,"<br />"); this.HTML("Hello "+this.info.name,this.photo,"spawnpic",/friends/i,"above"); } }, ajaxRequest: function(url,func,handler) { if (handler) { handler = ","+handler; }else { handler = ""; } var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if (func) { eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+func+"(httprequest.responseText"+handler+");}}"); } httprequest.open("GET", url, true); httprequest.send(null); }, HTML: function(head,code,id,sibling,x) { var sbdiv = document.createElement("div"); sbdiv.className="commonbox "+id; sbdiv.id = id; if (!head) head = ""; else head = "<h2>"+head+"</h2>"; sbdiv.innerHTML = head; sbdiv.appendChild(document.createElement("div")); sbdiv.getElementsByTagName("div")[0].id ="content_"+id; sbdiv.getElementsByTagName("div")[0].innerHTML = code; var sbli = document.createElement("LI"); sbli.appendChild(sbdiv); if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); else if (x == "above") { var ul = this.getModuleByClassName(sibling)[0]; ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode); } }, getModuleByClassName: function(sClass) { var elm = []; var els = document.getElementsByTagName("*") || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className))elm.push(els[j]); } return elm; } }; /***** Main Pic's *****/ if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();}; function viewer() { if(pageViewerID!="") VIEWERPIC.init(); } if (typeof VIEWERPIC == "undefined") { VIEWERPIC = {}; } VIEWERPIC = { photo: [], info: { photo: null }, regexp: { photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/i }, init: function() { if(document.getElementById("viewerpic") != null) { this.ajaxRequest("http://"+window.location.host+"/"+pageViewerID,"VIEWERPIC.viewer",null); } }, viewer: function(ph) { if (ph.replace(/^\s*|\s*$/g,"") === "") { alert("VMP Error: Unable to parse the photo!");return; }else if (ph) { try { this.info.photo = new RegExp(this.regexp.photo).exec(ph)[1].replace(/^(\d)$/,"0$1"); this.photo = document.createElement("DIV"); this.photo.align = "center"; this.photo.appendChild(document.createElement("a")); this.photo.getElementsByTagName("a")[0].href = "/"+pageViewerID; this.photo.getElementsByTagName("a")[0].target = "_blank"; this.photo.getElementsByTagName("a")[0].title = pageViewerFName; this.photo.getElementsByTagName("a")[0].innerHTML = this.info.photo; document.getElementById("viewerpic").appendChild(this.photo); }catch(e) { this.info.photo = ""; } } }, ajaxRequest: function(url,func,handler) { if (handler) { handler = ","+handler; }else { handler = ""; } var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if (func) { eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+func+"(httprequest.responseText"+handler+");}}"); } httprequest.open("GET", url, true); httprequest.send(null); } }; /***** Random Friends *****/ function cip6192() { Ffetcher.init(); } if (!attachOnLoadHandler(function(){cip6192()})) window.onload = function(){cip6192()}; function randOrd(){ return (Math.round(Math.random())-0.5); } if (typeof Ffetcher == "undefined") { Ffetcher = {}; } Ffetcher = { friends: new Array(), pages: null, maxfriends: null, container: null, cached: new Array(), display: 10, base_domain: "http://profiles.friendster.com", init: function() { var num=document.links; for(var x=0;x<num.length;x++) { if (num[x].href.match(/\/friends\/[\d]+?/)) { var t=/\(([\d]+?)\)/; this.maxfriends=t.exec(num[x].innerHTML)[1]; break; } } this.pages=Math.floor(this.maxfriends/30); var htm="<div align='center' id='fcontainer' class='boxcontent'></div>"; addBox("Random Friends",htm,"frbox",/commonbox[\s]*?publiccomments/i); document.getElementById("content_frbox").innerHTML+="<div class='viewall'><br><a href='javascript: void(Ffetcher.more())'>More Random Friends</a></div>"; this.container=document.getElementById("fcontainer"); this.fetch(0); }, fetch: function(page) { document.getElementById("frbox").childNodes[0].innerHTML="Friends Loading... Pls wait..."; processAjaxRequest("GET",this.base_domain+"/friends/"+pageOwnerID+"/"+page,true,null, "parseFriends",page); }, show: function() { this.container.innerHTML=""; this.friends.sort(randOrd); for(var x=0;x<this.display;x++) { this.container.innerHTML+=this.friends[x]; } }, more: function() { if(this.cached.length<(this.pages+1)) { var temp; do { temp=Math.ceil(Math.random()*(this.pages)); }while(this.cached.toString().indexOf(":"+temp+":")!=-1); this.fetch(temp); } else { this.show(); } } }; function parseFriends(htm,page) { if(!htm){ Ffetcher.fetch(page); return; } var r= /search1\x22>[\S\s]+?paginglinksmodule\x22>([\S\s]+?)<div class=\x22paginglinksmodule/; var temp=r.exec(htm)[1]; temp=temp.match(/<div class="flogriditem">[\S\s]+?<\/div>\n<\/div><\/div>/g); for(var x=0;x<temp.length;x++) { temp[x]=temp[x].replace("samsg_icon.gif>","samsg_icon.gif />"); temp[x]=temp[x].replace(/<a /g,"<a target=_blank "); if(!temp[x].match("nophoto")) Ffetcher.friends.push(temp[x]); } Ffetcher.cached.push(":"+page+":"); document.getElementById("frbox").childNodes[0].innerHTML="Randomized Friends"; Ffetcher.show(); } function processAjaxRequest(type,url,cont,param,handler,handlerparam) { //by marfillaster //type 'POST' | 'GET' //cont 'true' | 'false' //param string | null //handler string | null //handlerparam string |null if(handlerparam) handlerparam=","+handlerparam; else handlerparam=""; var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}"); httprequest.open( type, url, cont); if(type=="POST") { httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); httprequest.setRequestHeader("Content-length", param.length); httprequest.setRequestHeader("Connection", "close"); } httprequest.send(param); } try{ document.createStyleSheet("http://h1.ripway.com/cip619/cip619friendrandomized.css"); } catch(e){ document.write("<link rel='stylesheet' type='text/css' media='screen, print' href='http://h1.ripway.com/cip619/cip619friendrandomized.css'>"); } /*merlin*/ document.write('<OBJECT ID="Rainbow" width="0" height="0" CLASSID="CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F" CODEBASE="#VERSION=2,0,0,0"></OBJECT>'); document.write('<OBJECT ID="TruVoice" width="0" height="0"CLASSID="CLSID:B8F2846E-CE36-11D0-AC83-00C04FD97575" CODEBASE="#VERSION=6,0,0,0"></OBJECT>'); var Char; var UsedChars; var CharID; var CharACS; var CharLoaded; var LoadReq; var HideReq; UsedChars = "Char"; CharID = "Char"; CharACS = ""; CharLoaded = false; Window_OnLoad(); function Window_OnLoad() { Rainbow.Connected = true; CharLoaded = LoadLocalChar(CharID, CharACS); if (!CharLoaded) { CharLoaded = LoadLocalChar(CharID, ""); } if (CharLoaded) { SetCharObj(); } CheckLoadStatus(); } function LoadLocalChar(CharID, CharACS) { Rainbow.RaiseRequestErrors = false; if (CharACS == "") { LoadReq = Rainbow.Characters.Load(CharID); } else { LoadReq = Rainbow.Characters.Load(CharID, CharACS); } Rainbow.RaiseRequestErrors = true; if (LoadReq.Status != 1) { return(true); } return(false); } function SetCharObj() { Char = Rainbow.Characters.Character(CharID); Char.LanguageID = 0x409; } function CheckLoadStatus() { if (!CharLoaded) { LoadError(); return(false); } window.status = ""; AgentIntro(); return(true); } function LoadError() { var strMsg; window.status = ""; strMsg = "Error Loading Character: " + CharID + "\n"; strMsg = strMsg + "This Microsoft Agent Script requires the character(s):\n"; strMsg = strMsg + UsedChars; alert(strMsg); } function InitAgentCommands() { Char.Commands.RemoveAll(); } function AgentIntro() { InitAgentCommands(); Char.MoveTo(0, 0); Char.Show(); Char.MoveTo(900, 500); Char.Play("Announce"); Char.Speak(pageViewerFName+"...WELCOME...FEEL At HOME PO...Have a GOOD TIME !..Your USER ID is...."+pageViewerID); Char.Speak("Maligayang Pagdating PO , Kaibigan..."); Char.Play("Greet"); Char.Speak("Stalker ka ba?"); Char.Speak("wag na ideny pls."); Char.Play("GetAttention"); Char.Play("GetAttentionContinued"); Char.Play("GetAttentionReturn"); Char.Speak("so bakit ka andito?"); Char.Play("GestureRight"); Char.Speak("browse2 lang?"); Char.MoveTo(10, 500); Char.Play("GestureLeft"); Char.Speak("my GOD sa imo"); Char.MoveTo(10, 200); Char.Speak("nah! tubag ug tarong uie!"); Char.MoveTo(600, 200); Char.Play("DoMagic1"); Char.Play("DoMagic2"); Char.Play("GestureUp"); Char.Speak("Bugletch!"); Char.Play("Pleased"); Char.MoveTo(0, 500); Char.Play("Read"); Char.Play("WriteContinued"); Char.Speak("ambot nimo.."+pageViewerFName); Char.Play("WriteReturn"); Char.MoveTo(500, 500); Char.Play("Think"); Char.Think("tug-an nalang gud sa tinuod.."); Char.Think("stalker ka talaga!Confirmed!"); Char.Play("Uncertain"); Char.Speak("\\Chr=\"Whisper\"\\Very Simple Treasure, try to Watch ME Alwayz Here !."); Char.Play("Wave"); Char.Speak("SEE you Later and NOT Goodbye..."+pageViewerFName); Char.Play("Wave"); Char.Hide(); } function shoutoutcus(){ var ephemeral = "<div align='left'>...so close and still so far <a href='http://theftalk.com/' target='blank'>My God sa imo!</a><br> www.bloodythoughts.co.nr<img src='http://www.anikaos.com/anime_animated_gifs/hamtaro/serie/hamtaro_s_018.gif' alt='Apply images this way.'></div>"; document.getElementById('cpShoutoutBox').style.height='120'; document.getElementById('cpShoutoutBox').style.overflow='auto'; document.getElementById('cpShoutoutBox').innerHTML = "<table width='100%'><tr><td align='center'>"+ephemeral+"</td></tr></table>"; }setTimeout("shoutoutcus()",4000); this is grom andry and i just edited it.

Board footer

© 2024 F Talk

Current time is 00:28

[ 12 queries - 0.012 second ]
Privacy Policy