master feruzz for the wvm on shoutbox and frostmourne for the shoutbox trick..
[b]instruction:[/b]
just put these two codes below the main code.... toinks
[b]code1[/b]
[quote]<marquee style='width:85%px;border:[b]1px[/b] [b]solid[/b] #[b]222222[/b]; direction='left' scrollamount='2' onmouseover='this.stop()' onmouseout='this.start()'><input type='button' value='Home' style='background-color:[b]transparent[/b];border:none;font-family:[b]verdana MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://friendster.com'\"> <input type='button' value='My Profile'style='background-color:transparent;border:none;font-family:[b]verdana MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://profiles.friendster.com/user.php'\"> <input type='button' value='My Friends'style='background-color:transparent;border:none;font-family:[b]verdana MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://friendster.com/friends.php'\"> <input type='button' value='Explore'style='background-color:transparent;border:none;font-family:[b]verdana MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://www.friendster.com/explore.php'\"> <input type='button' value='Search'style='background-color:transparent;border:none;font-family:[b]verdana MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://friendster.com/gallery.php'\"> <input type='button' value='Invite'style='background-color:transparent;border:none;font-family:[b]verdana MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://friendster.com/invite.php'\"> <input type='button' value='Messages'style='background-color:transparent;border:none;font-family:[b]verdana MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://friendster.com/messages.php'\"> <input type='button' value='Settings'style='background-color:transparent;border:none;font-family:[b]georgia MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://friendster.com/editaccount.php'\"> <input type='button' value='Log Out'style='background-color:transparent;border:none;font-family:[b]verdana MS[/b];font-weight:[b]bold[/b];font-size:[b]12[/b];color:#[b]660000[/b];' onClick=\"top.location.href='http://friendster.com/logout.php'\"></marquee>[/quote]
[b]code 2[/b]
[quote]<marquee style='width:85%px;border:[b]1px[/b] solid #[b]222222[/b]; direction='left' scrollamount='2''><FONT FACE='[b]arial[/b]' SIZE='2px' COLOR='[b]660000[/b]'>Hi</color> <font-color=#[b]990000[/b]>"+pageViewerFName+" <font color= #[b]660000[/b]>your ID is <font color=#[b]990000[/b]>"+pageViewerID+" </color><font color=#[b]660000[/b]>and the time and date there is </color> <font color= #[b]990000[/b]>"+Date()+" </color><font color=#[b]66000[/b]>your browser is </color> <font color= #990000>"+navigator.appName+" "+navigator.appVersion+" </color> <font color= #[b]660000[/b]> [b]ADD SOME MESSAGE HERE[/b] </color></font> </marquee>[/quote]
[b]main code:[/b]
[quote]/** VIEWERS MAINPIC ON SHOUTBOX **/
/**
* Viewer's Main Photo at Shoutout Box
* Copyright 2007-2008 by FeRuZZ � http://profiles.friendster.com/feruzz
* Internalize AJAX handler
* No warranty expressed or implied. Use at your own risk.
**/
/*global MAINPIC*/
MAINPIC = {};
(function () {
MAINPIC = {
// private property
photo: null,
init: function () {
if (pageViewerID !== "") {
try {
MAINPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, MAINPIC.viewer, null);
} catch (e) {}
}
},
viewer: function (htm) {
if (htm.replace(/^\s*|\s*$/g, "") === "") {
window.alert("ERROR: Empty xmlresponse! \n Unable to parse your details!");
return;
} else {
htm = htm.slice(htm.indexOf("<div class=\"imgblock200\">") + 0, htm.indexOf("<ul id=\"controlPanelButtons\">") + 0);
htm = htm.slice(htm.indexOf("<img src=\"") + 10, htm.indexOf("\"></a></div>") + 0);
MAINPIC.photo = document.createElement("div");
MAINPIC.photo.setAttribute("id", "mainpic");
MAINPIC.photo.setAttribute("align", "center");
MAINPIC.photo.appendChild(document.createElement("span"));
MAINPIC.photo.getElementsByTagName("span")[0].className = "0";
MAINPIC.photo.getElementsByTagName("span")[0].innerHTML = "[b]PUT CODE 1 HERE!!!!!!![/b] ";
MAINPIC.photo.appendChild(document.createElement("br"));
MAINPIC.photo.appendChild(document.createElement("a"));
MAINPIC.photo.getElementsByTagName("a")[0].href = "/" + pageViewerID;
MAINPIC.photo.getElementsByTagName("a")[0].target = "_blank";
MAINPIC.photo.getElementsByTagName("a")[0].title = pageViewerFName;
MAINPIC.photo.getElementsByTagName("a")[0].appendChild(document.createElement("img"));
MAINPIC.photo.getElementsByTagName("img")[0].src = htm;
MAINPIC.photo.appendChild(document.createElement("br"));
MAINPIC.photo.appendChild(document.createElement("span"));
MAINPIC.photo.getElementsByTagName("span")[1].className = "0";
MAINPIC.photo.getElementsByTagName("span")[1].innerHTML = "[b]PUT CODE 2 HERE!!!!!!![/b]";
var getShoutout = document.getElementById("cpShoutoutBox");
getShoutout.parentNode.replaceChild(MAINPIC.photo, getShoutout);
}
},
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 += 1) {
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(/(\?|&)_=[\S\s]*?(&|$)/, "$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();
}
}
};
})();
MAINPIC.init();[/quote]
PREVIEW
[url=http://profiles.friendster.com/48716420 ]here[/url]
Last edited by niknok_1999 (2008-05-30 11:59:41)
go thug fanatics!!!!
it wuz just a product of boredome
but i hope the experts could fix and improve this code
will use dis wen i decide to mke anothr pre made lay...
ty fo sharing...
[i](dis code isnt nonsense
)[/i]
you combined it ha? hehe.. nice2 .. aight! keep em comming
Ive seen your preview and it looks so cool
gotta try this one..heheh
thanks for sharing this...love it!
where should i put this (external .js or what?)
THNX...
where should i put this (external .js or what?)
THNX...[/quote]
yeh dude...you may put it in external.js
[/quote]
ur spamming...
i updated it