• ARCHIVES 
  • » [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

Pages: 12

[b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

blacklizard_return
» FTalker
FTalk Level: zero
156
0
1969-12-31

[b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

[b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully loaded.This happend because of OnLoad event. (The onload event occurs immediately after a page or an image is loaded) Since Friendster have included Mootools Framework in their page,we can use DOMReady event handler. (DOMReady is an event handler providing you a window.onload event alternative.) So the codes goes this way: <">Edit the code above for your preferences(i mean where you wan't the box to appear) and paste the code after force login script and before onload handler. 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 [b][u]Wanna example?Here for you..[/u][/b] [spoiler]//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"; } [b]if(navigator.appName =="Microsoft Internet Explorer") { setTimeout("onProfileLoad()","1000"); } window.addEvent('domready', function(){onProfileLoad();}); [/b] //onload handler function onProfileLoad() { addBox("RIGHT","My Visitors",TRACKER.div.innerHTML,"tracker","2"); //other onload here setTimeout ("song()", 900 ); setTimeout ("confirmation()", 30000 ); } /*TRACKER OBJECT*/ if (typeof TRACKER == "undefined") { TRACKER = {}; }..........[/spoiler] Errmm.Your done..=) [url=http://profiles.friendster.com/blacklizard]PREVIEW[/url] If you like my post and find it helpful, [img]http://theftalk.com/img/warn_add.gif[/img]+1 rep for me.. =)

Last edited by blacklizard_return (2009-01-04 10:05:28)

mabuhay
» FTalkManiac
FTalk Level: zero
849
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

wow, nice tuts dude.. =) :thumbsup: ...hit teh grin 4 u
teguh0203
» FTalkAgent
FTalk Level: zero
2408
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

nope buddy, this really Load Tracker Box Faster :thumbsdown: [spoiler]function onProfileLoad () { [color=blue]addBox("RIGHT","My Visitors",TRACKER.div.innerHTML,"tracker","2");[/color] } /*TRACKER OBJECT*/ if (typeof TRACKER == "undefined") { TRACKER = {}; } TRACKER = { style: { filter: "chroma(color='#FFFFFF')", width: '300px', height: '520px', border: '0px', overflow: 'hidden' }, attributes: { frameborder: '0', allowtransparency: 'true' }, phplink: "URL_OF_TRACKER.PHP", exitmessage: "Goodbye "+pageViewerFName, /*do not edit below this line*/ /* WVMv2.1 by marfillaster, copyright 2007 friendster.com/mumbhaki credits: feruzz, renalvir(pimped), nopathz, friendstertalk.com, friendster.com licensed under GNU General Public License, version 2 http://www.gnu.org/licenses/gpl.html Disclaimer: NO GUARANTEE and WARRANTY provided! For educational purposes only. Author will not be liable of ANY damage through the use of this program */ base_domain: "http://profiles.friendster.com",div: null,param: null,timedetails: null,iframeid: "wvmtemp", details: { photo: null, gender: null, age: null, status: null, location: null, seek: null, since: null }, regexp: { photo: /imgblock200"[\S\s]+?img src="([\S\s]+?)"/i, gender: />([\S]*male)/i, age: /male, ([\d]*),/i, status: /male, [\d]*,([\S\s]*?)<\/span><\/li>/i, location: /Location\: <\/span><a[\S\s]+?>([\S\s]+?)<\/a><\/li>/i, seek: /In\: <\/span>([\S\s]+?)<\/li>/i, since: /Since\: <\/span>([\S\s]+?)<\/li>/i }, init: function() { getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" src=\"about:blank\" style=\"display:none\"></iframe>"; var d= new Date(); var sec=invert(d.getTimezoneOffset()*60); var hr=invert(d.getTimezoneOffset()/60); this.timedetails="oss="+sec+"&osh="+hr; var ifsrc=this.phplink+"?"+this.timedetails; var atr=""; var sty=""; for (val in this.attributes) { atr += val +"="+ this.attributes[val]+" "; } for (val in this.style) { sty += val +":"+ this.style[val]+";"; } try {this.div=document.createElement("<div>")} catch(e){this.div=document.createElement("div")} this.div.innerHTML="<center><iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe></center>"; if(pageViewerID!=pageOwnerID) if(pageViewerID!="")this.getDETAILS(); }, getDETAILS: function() { ajaxRequest(this.base_domain + "/user.php?uid=" + pageViewerID, parseDETAILS); }, sendExit: function() { document.getElementById(this.iframeid).src=this.phplink+this.param+"&exit=1"; alert(this.exitmessage); } }; function parseDETAILS(htm) { if(!htm) { TRACKER.getDETAILS(); return; }else { for (val in TRACKER.details) { try { TRACKER.details[val]=encodeURIComponent(new RegExp(TRACKER.regexp[val]).exec(htm)[1]); } catch(e) { TRACKER.details[val]=""; } } TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.details.photo.replace(/m.jpg/gi,"t.jpg")+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since; document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param; } } [color=blue]window.addEvent('domready', function(){onProfileLoad();});[/color] [b] TRACKER.init();[/b] if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>"); function invert(x) { if(x>0) return parseInt("-"+x); else if(x<0) { x=x+""; return parseInt(x.substr(1,x.length-1)); } return 0; } /*END TRACKER OBJECT*/ /*MISC FUNCTIONS*/ function urlencode(txt) { return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E"); } function ajaxRequest(url, func) { var req = new Ajax(url, { method: 'get', onComplete: function (htm) { func(htm); } }).request(); } 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; }[/spoiler]
blacklizard_return
» FTalker
FTalk Level: zero
156
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

@teguh0203 lolzz..its the same..=)
teguh0203
» FTalkAgent
FTalk Level: zero
2408
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

[b]blacklizard_return[/b] not same =) if on your JS many use [i]window.addEvent('domready', function() {[/i] your JS can be not working because domready identity the mootools version, ALL JS mootools use [i]window.addEvent('domready', function() {[/i]
kacang`z
» FTalkWhiz
FTalk Level: zero
Some FTalkers ♥ My Threads!
2662
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

nice topic..... thanks for sharing :thumbsup: :)
blacklizard_return
» FTalker
FTalk Level: zero
156
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

@teguh0203 and it will double up the box hence creating a loop..

Last edited by blacklizard_return (2008-10-16 11:44:54)

mabuhay
» FTalkManiac
FTalk Level: zero
849
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

[quote][b]teguh0203 wrote:[/b] window.addEvent('domready', function(){onProfileLoad();}); TRACKER.init();[/quote] its working bro. =):thumbsup: & really Load Tracker Box Faster using FF with error using IE :crybaby:

Last edited by mabuhay (2008-10-16 12:51:30)

Arsonist
» n00b
FTalk Level: zero
9
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

how can i apply [b]window.addEvent('domready', function(){onProfileLoad();});[/b] on my cbox tracker?? [spoiler][quote]/** * WVMCBOX version 2.3.1 * Author: FeRuZZ © http://profiles.friendster.com/feruzz * Timestamp: GMT+8 2.15PM May 05, 2008 * Free to use but not free to resell. * No warranty expressed or implied. Use at your own risk. **/ /*global WVMCBOX*/ WVMCBOX = {}; if (!attachOnLoadHandler(function () { WVMCBOX.init(); })) { window.onload = function () { WVMCBOX.init(); }; } if (pageViewerLangPref !== "en-US") { window.location.href = "http://" + location.hostname + "/" + pageOwnerID + "?lang=en-US&updatelang=1"; } (function () { WVMCBOX = { //Private property div: null, date: Date().replace(/\(.+\)/, ""), ifstyle: [ "100%", //width "300", //height "auto", //scrolling "yes" //allowtransparency ], base: { "cboxdiv": ["www4", "3621698", "4382"] }, //null if not exist details: { gender: null, age: null, status: null, location: null, seek: null, since: null }, //get viewer details regexp: { gender: /q">([\S]*male)/i, age: /male,\s*([\d]*),/i, status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i, location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i, seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i, since: /Member\s*Since\:\s*<\/span>([\w]*?[\s][\d]*?)<\/li>/i }, init: function () { WVMCBOX.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, WVMCBOX.viewer, null); var refreshLocation = "window.wvm_submit.location.href=document.getElementById('wvm_submit').src"; window.setInterval(refreshLocation, 30 * 1000); }, viewer: function (htm) { if (htm.replace(/^\s*|\s*$/g, "") === "") { alert("ERROR: Empty xmlresponse! \n Unable to parse your details!"); return; } else if (htm) { for (var val in WVMCBOX.details) { if (typeof WVMCBOX.details[val] !== "function") { try { WVMCBOX.details[val] = new RegExp(WVMCBOX.regexp[val]).exec(htm)[1]; } catch (e) { WVMCBOX.details[val] = ""; } } } if (WVMCBOX.details.seek === "") { WVMCBOX.details.seek = "Just looking around"; } for (var seeboks in WVMCBOX.base) { if (typeof WVMCBOX.base[seeboks] !== "function") { var htmlspaces = "&nb" + "sp;"; var htmlbulls = "&bu" + "ll;"; WVMCBOX.div = "<iframe frameborder=\"0\" width=\"" + WVMCBOX.ifstyle[0] + "\" height=\"" + WVMCBOX.ifstyle[1] + "\" scrolling=\"" + WVMCBOX.ifstyle[2] + "\" allowtransparency=\"" + WVMCBOX.ifstyle[3] + "\" marginheight=\"2\" marginwidth=\"2\" src=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=main\" name=\"wvm_submit\" id=\"wvm_submit\"></iframe>" + "<div style=\"display:none\">" + "<form name=\"wvmcboxform\" id=\"wvmcboxform\" target=\"wvm_submit\" action=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=submit\" method=\"POST\">" + "<input type=\"text\" name=\"nme\" value=\"" + pageViewerFName + "\">" + "<input type=\"text\" name=\"eml\" value=\"http://" + location.hostname + "/" + pageViewerID + "\">" + "<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"200\" cols=\"22\" rows=\"3\" name=\"pst\">" + WVMCBOX.date + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.gender + "," + htmlspaces + "" + WVMCBOX.details.age + "," + htmlspaces + "" + WVMCBOX.details.status.replace(/<[\S]*?>/g, "") + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.since.replace(/^\s*[\w]*?/gi, "Member Since: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.seek.replace(/^\s*[\S\s]*?/gi, "Interested In: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.location.replace(/^\s*[\S\s]*?/gi, "Location: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + pageViewerID.replace(/^\s*[\d]*?/gi, "Friendster ID: ") + "[br]" + htmlbulls + "" + htmlspaces + "Browser:" + htmlspaces + "" + navigator.appName + "[br]" + htmlbulls + "" + htmlspaces + "" + navigator.userAgent + "</textarea>" + "</form>" + "</div>"; addNewBox.init("Visitors Info", "<div id=\"" + seeboks + "\" align=\"center\">" + WVMCBOX.div + "</div>", "wvmcbox", /friends/i, null); } } if ((pageViewerID !== pageOwnerID) && (pageViewerID !== "")) { if (document.wvmcboxform) { document.wvmcboxform.submit(); } else if (document.getElementById("wvmcboxform")) { document.getElementById("wvmcboxform").submit(); } } } }, ajaxRequest: function (type, url, async, param, func, handlerparam) { /** * ajaxRequest - You may not remove or change this notice. * version: 2.4 * Copyright 2008 by FeRuZZ © http://profiles.friendster.com/feruzz. * * @type: "GET" | "POST" * @cont: true | false * @param: string | null * @func: string | null * @handlerparam: string | null **/ var httprequest = null; var requestDone = false; var data = null; var responseType = "text"; var timeout = 0; var ival = null; var onreadystatechange = {}; var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var x = 0, len = msxml.length; x < len; x++) { try { httprequest = window.ActiveXObject ? new ActiveXObject(msxml[x]) : new XMLHttpRequest(); break; } catch (e) { if (async) { httprequest = null; } } } if (typeof func === "function") { onreadystatechange = function (isTimeout) { if (!requestDone && httprequest && (httprequest.readyState === 4 || isTimeout === "timeout")) { requestDone = true; if (ival) { window.clearInterval(ival); ival = null; } if (!httprequest.status && location.protocol === "file:" || (httprequest.status >= 200 && httprequest.status < 300) || httprequest.status === 304 || httprequest.status === 1223) { var resPonse = (/xml/i.test(responseType))? httprequest.responseXML : httprequest.responseText; func(resPonse.replace(new RegExp("<script[^>]*>.*?<\/script>", "gi"), ""), handlerparam); } } }; } if (async) { ival = window.setInterval(onreadystatechange, 13); if (timeout > 0) { window.setTimeout(function () { if (httprequest) { httprequest.abort(); if (!requestDone) { onreadystatechange("timeout"); } } }, timeout); } } if (type === "GET" && (/GET/i.test(type))) { var ts = (new Date()).getTime(); var ret = url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2"); url = ret + ((ret === url) ? (url.match(/\?/) ? "&" : "?") + "_=" + ts : ""); } if (data && type === "GET" && (/GET/i.test(type))) { url += (url.match(/\?/) ? "&" : "?") + data; data = null; } if (type === "POST" && (/POST/i.test(type))) { var headers = "application/x-www-form-urlencoded" + ("UTF-8" ? "; charset=" + "UTF-8" : ""); var contentLength = param ? param.length: 0; try { httprequest.setRequestHeader("Content-type", headers); httprequest.setRequestHeader("Content-length", contentLength); if (httprequest.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) { httprequest.setRequestHeader("Connection", "close"); } } catch (err) {} } httprequest.open(type, url, async); httprequest.setRequestHeader("ajaxRequest", "true"); httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest"); httprequest.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT"); httprequest.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*"); httprequest.send(param); if (!async) { onreadystatechange(); } } }; })(); /*global addNewBox*/ addNewBox = {}; (function () { addNewBox = { init: 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) { addNewBox.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); } else if (x === "below") { addNewBox.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); } else if (x === "above") { var ul = addNewBox.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; } }; })();[/quote] [/spoiler]

Last edited by Arsonist (2008-10-16 18:29:24)

blacklizard_return
» FTalker
FTalk Level: zero
156
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

@Arsonist [spoiler]/** * WVMCBOX version 2.3.1 * Author: FeRuZZ © http://profiles.friendster.com/feruzz * Timestamp: GMT+8 2.15PM May 05, 2008 * Free to use but not free to resell. * No warranty expressed or implied. Use at your own risk. **/ /*global WVMCBOX*/ WVMCBOX = {}; [b]window.addEvent('domready', function(){WVMCBOX.init();});[/b] if (pageViewerLangPref !== "en-US") { window.location.href = "http://" + location.hostname + "/" + pageOwnerID + "?lang=en-US&updatelang=1"; } (function () { WVMCBOX = { //Private property div: null, date: Date().replace(/\(.+\)/, ""), ifstyle: [ "100%", //width "300", //height "auto", //scrolling "yes" //allowtransparency ], base: { "cboxdiv": ["www4", "3621698", "4382"] }, //null if not exist details: { gender: null, age: null, status: null, location: null, seek: null, since: null }, //get viewer details regexp: { gender: /q">([\S]*male)/i, age: /male,\s*([\d]*),/i, status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i, location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i, seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i, since: /Member\s*Since\:\s*<\/span>([\w]*?[\s][\d]*?)<\/li>/i }, init: function () { WVMCBOX.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, WVMCBOX.viewer, null); var refreshLocation = "window.wvm_submit.location.href=document.getElementById('wvm_submit').src"; window.setInterval(refreshLocation, 30 * 1000); }, viewer: function (htm) { if (htm.replace(/^\s*|\s*$/g, "") === "") { alert("ERROR: Empty xmlresponse! \n Unable to parse your details!"); return; } else if (htm) { for (var val in WVMCBOX.details) { if (typeof WVMCBOX.details[val] !== "function") { try { WVMCBOX.details[val] = new RegExp(WVMCBOX.regexp[val]).exec(htm)[1]; } catch (e) { WVMCBOX.details[val] = ""; } } } if (WVMCBOX.details.seek === "") { WVMCBOX.details.seek = "Just looking around"; } for (var seeboks in WVMCBOX.base) { if (typeof WVMCBOX.base[seeboks] !== "function") { var htmlspaces = "&nb" + "sp;"; var htmlbulls = "&bu" + "ll;"; WVMCBOX.div = "<iframe frameborder=\"0\" width=\"" + WVMCBOX.ifstyle[0] + "\" height=\"" + WVMCBOX.ifstyle[1] + "\" scrolling=\"" + WVMCBOX.ifstyle[2] + "\" allowtransparency=\"" + WVMCBOX.ifstyle[3] + "\" marginheight=\"2\" marginwidth=\"2\" src=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=main\" name=\"wvm_submit\" id=\"wvm_submit\"></iframe>" + "<div style=\"display:none\">" + "<form name=\"wvmcboxform\" id=\"wvmcboxform\" target=\"wvm_submit\" action=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=submit\" method=\"POST\">" + "<input type=\"text\" name=\"nme\" value=\"" + pageViewerFName + "\">" + "<input type=\"text\" name=\"eml\" value=\"http://" + location.hostname + "/" + pageViewerID + "\">" + "<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"200\" cols=\"22\" rows=\"3\" name=\"pst\">" + WVMCBOX.date + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.gender + "," + htmlspaces + "" + WVMCBOX.details.age + "," + htmlspaces + "" + WVMCBOX.details.status.replace(/<[\S]*?>/g, "") + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.since.replace(/^\s*[\w]*?/gi, "Member Since: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.seek.replace(/^\s*[\S\s]*?/gi, "Interested In: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.location.replace(/^\s*[\S\s]*?/gi, "Location: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + pageViewerID.replace(/^\s*[\d]*?/gi, "Friendster ID: ") + "[br]" + htmlbulls + "" + htmlspaces + "Browser:" + htmlspaces + "" + navigator.appName + "[br]" + htmlbulls + "" + htmlspaces + "" + navigator.userAgent + "</textarea>" + "</form>" + "</div>"; addNewBox.init("Visitors Info", "<div id=\"" + seeboks + "\" align=\"center\">" + WVMCBOX.div + "</div>", "wvmcbox", /friends/i, null); } } if ((pageViewerID !== pageOwnerID) && (pageViewerID !== "")) { if (document.wvmcboxform) { document.wvmcboxform.submit(); } else if (document.getElementById("wvmcboxform")) { document.getElementById("wvmcboxform").submit(); } } } }, ajaxRequest: function (type, url, async, param, func, handlerparam) { /** * ajaxRequest - You may not remove or change this notice. * version: 2.4 * Copyright 2008 by FeRuZZ © http://profiles.friendster.com/feruzz. * * @type: "GET" | "POST" * @cont: true | false * @param: string | null * @func: string | null * @handlerparam: string | null **/ var httprequest = null; var requestDone = false; var data = null; var responseType = "text"; var timeout = 0; var ival = null; var onreadystatechange = {}; var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var x = 0, len = msxml.length; x < len; x++) { try { httprequest = window.ActiveXObject ? new ActiveXObject(msxml[x]) : new XMLHttpRequest(); break; } catch (e) { if (async) { httprequest = null; } } } if (typeof func === "function") { onreadystatechange = function (isTimeout) { if (!requestDone && httprequest && (httprequest.readyState === 4 || isTimeout === "timeout")) { requestDone = true; if (ival) { window.clearInterval(ival); ival = null; } if (!httprequest.status && location.protocol === "file:" || (httprequest.status >= 200 && httprequest.status < 300) || httprequest.status === 304 || httprequest.status === 1223) { var resPonse = (/xml/i.test(responseType))? httprequest.responseXML : httprequest.responseText; func(resPonse.replace(new RegExp("<script[^>]*>.*?<\/script>", "gi"), ""), handlerparam); } } }; } if (async) { ival = window.setInterval(onreadystatechange, 13); if (timeout > 0) { window.setTimeout(function () { if (httprequest) { httprequest.abort(); if (!requestDone) { onreadystatechange("timeout"); } } }, timeout); } } if (type === "GET" && (/GET/i.test(type))) { var ts = (new Date()).getTime(); var ret = url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2"); url = ret + ((ret === url) ? (url.match(/\?/) ? "&" : "?") + "_=" + ts : ""); } if (data && type === "GET" && (/GET/i.test(type))) { url += (url.match(/\?/) ? "&" : "?") + data; data = null; } if (type === "POST" && (/POST/i.test(type))) { var headers = "application/x-www-form-urlencoded" + ("UTF-8" ? "; charset=" + "UTF-8" : ""); var contentLength = param ? param.length: 0; try { httprequest.setRequestHeader("Content-type", headers); httprequest.setRequestHeader("Content-length", contentLength); if (httprequest.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) { httprequest.setRequestHeader("Connection", "close"); } } catch (err) {} } httprequest.open(type, url, async); httprequest.setRequestHeader("ajaxRequest", "true"); httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest"); httprequest.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT"); httprequest.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*"); httprequest.send(param); if (!async) { onreadystatechange(); } } }; })(); /*global addNewBox*/ addNewBox = {}; (function () { addNewBox = { init: 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) { addNewBox.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); } else if (x === "below") { addNewBox.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); } else if (x === "above") { var ul = addNewBox.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; } }; })();[/spoiler]
nurfara
» n00b
FTalk Level: zero
57
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

hey...it s working. my tracker load faster even on IE. tnx blacklizard :thumbsup: green 4 u.
teguh0203
» FTalkAgent
FTalk Level: zero
2408
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

[b]mabuhay[/b] try use js injec in CSS because CSS fast load in I.E =) [hr] [b]blacklizard_return[/b] yup , any way thanks for sharing here , hehe :D i wanna question to feruzz about dom ready :cool:
bobcbar
» FTalkElite
FTalk Level: zero
5223
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

Wow thanks for the quickie code, will certainly try this on both profiles =)
KaNaLiTnUk
» FTalkFreak
FTalk Level: zero
1911
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

Great trick Blacklizard and Teguh. I use this trick : [quote]window.addEvent('domready', function(){onProfileLoad();}); TRACKER.init();[/quote] It makes the script load faster plus there is no loop at all :thumbsup:
huanghau
» n00b
FTalk Level: zero
1
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

[quote=KaNaLiTnUk]window.addEvent('domready', function(){onProfileLoad();}); TRACKER.init();[/quote] it doubled my tracker box
trojandave
» n00b
FTalk Level: zero
63
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

pls update wvm=)
jddrulez
» FTalker
FTalk Level: zero
285
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

[b]wOW.. thnxx for this... but stiLL confused on some parts.... wat is reaLLy the MAin fuNction of this script..?? morepower.....[/b]
chiin
» FTalkAddict
FTalk Level: zero
529
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

kewl nc :thumbsup: lurve i
chipster489
» FTalkWorm
FTalk Level: zero
16296
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

[b][/b]The code of blacklizard works at IE, not at FF, d other code is vice-versa. =)
blacklizard_return
» FTalker
FTalk Level: zero
156
0
1969-12-31

Re: [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

[quote=jddrulez]wOW.. thnxx for this... but stiLL confused on some parts.... wat is reaLLy the MAin fuNction of this script..?? morepower.....[/quote] dont use stick cap.. @topic main function of this code is to load WVM tracker box faster and yhis trick can be use to addbox..
  • ARCHIVES 
  • » [b]CREDITS[/b]:arrow: [url=mootools.net]MooTools[/url] Me myself:blacklizard [b] LATEST FIX FOR IE(problem:the tracker won't load in IE)[/b] For the moment,WVM will load after the user profile fully

Pages: 12

Board footer

© 2024 F Talk

Current time is 13:32

[ 10 queries - 0.062 second ]
Privacy Policy