You are viewing a post by balz. View all 256 posts in [b][color=RED]UPDATED.!!![/color] :) [/b] credit this to my cool friend kaleumm hehe comment him... u can see it in action [url]www.friendster.com/kaleumm[/url] [url]www.friendster.com/june211989[/ur.
            break
        case "Apr":
            res[1]=4
            break
        case "May":
            res[1]=5
            break
        case "Jun":
            res[1]=6
            break
        case "Jul":
            res[1]=7
            break
        case "Aug":
            res[1]=8
            break
        case "Sep":
            res[1]=9
            break
        case "Oct":
            res[1]=10
            break
        case "Nov":
            res[1]=11    
            break                                                                                                                    
        case "Dec":
            res[1]=12
            break    
        default:
              res[1]=1    
    }
	//alert("birthmonth: "+res[1]);
    myregexp = /birthday">[\S\s]*?selected>([\S\s]*?)</;
    match = myregexp.exec(frmtxt);
    //alert("birthday: "+match[1]);  
    res[2]=match[1];
	//alert("birthday: "+res[2]);
    myregexp = /birthyear">[\S\s]*?selected>([\S\s]*?)</;
    match = myregexp.exec(frmtxt);
    //alert("birthyear: "+match[1]);  
    res[0]=match[1];
    //alert("birthyear: "+res[0]);  
    return res;
}
function urlencode(txt) {
	return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E");
}
function displayage(yr, mon, day, unit, decimal, round)  {
	var one_day=1000*60*60*24;
	var one_month=1000*60*60*24*30;
	var one_year=1000*60*60*24*30*12;
	var today=new Date();
	var pastdate=new Date(yr, mon-1, day);
	var countunit=unit;
	var decimals=decimal;
	var rounding=round;
	finalunit=(countunit=="days")? one_day : (countunit=="months")? one_month : one_year;
	decimals=(decimals<=0)? 1 : decimals*10;
	if (unit!="years"){
		if (rounding=="rounddown") return Math.floor((today.getTime()-pastdate.getTime())/(finalunit)*decimals)/decimals;
		else return Math.ceil((today.getTime()-pastdate.getTime())/(finalunit)*decimals)/decimals;
	}
	else{
		yearspast=today.getFullYear()-yr-1;
		tail=(today.getMonth()>mon-1 || today.getMonth()==mon-1 && today.getDate()>=day)? 1 : 0;
		pastdate.setFullYear(today.getFullYear());
		pastdate2=new Date(today.getFullYear()-1, mon-1, day);
		tail=(tail==1)? tail+Math.floor((today.getTime()-pastdate.getTime())/(finalunit)*decimals)/decimals : Math.floor((today.getTime()-pastdate2.getTime())/(finalunit)*decimals)/decimals;
		return yearspast+tail;
	}
}
function addSideBar(head,htm,div_id) {
	var innerHtm=htm;
	var cont="<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
		
		"<div class='commonbox'>"+
		"<h2>"+head+"</h2>"+
		innerHtm+
		"</div>"
		
		"</div>";
	try {
		var obj=document.createElement("<li>");
	} catch(e) {
		var obj=document.createElement("li");
	}
	var x=document.getElementById("friends_2_2");
	x.parentNode.parentNode.appendChild(obj);
	obj.innerHTML=cont;
}
var content2 = "<div align='center' id='raz'>"+
"<p align='center'>"+
"<marquee style='width:460px;' onmouseover='this.stop()' onmouseout='this.start()' scrollamount='4' behavior='alternate'>"+
"<marquee style='height:100px; width:100px;' onmouseout='this.start()' scrollamount='8' direction='up'>"+
"<img border='0' src='http://photos.friendster.com/photos/64/84/5554846/874596960.jpg'width='100' height='100'>"+
"</marquee>"+
"<marquee style='height:100px; width:100px; width:100px;'  onmouseout='this.start()' scrollamount='8' direction='down'>"+
"<img border='0' src='http://photos.friendster.com/photos/64/84/5554846/886496422.jpg'width='100' height='100'>"+"</marquee>"+
"<marquee style='height:100px; width:100px;' onmouseout='this.start()' scrollamount='8' direction='up'>"+
"<img border='0' src='http://photos.friendster.com/photos/64/84/5554846/31520881157717.jpg'width='100' height='100'>"+  
"</marquee>"+
"<marquee style='height:100px; width:100px;' onmouseout='this.start()' scrollamount='8' direction='down'>"+
"<img border='0' src='http://photos.friendster.com/photos/64/84/5554846/215997813.jpg'width='100' height='100'>"+
"</marquee>"+
"<marquee style='height:100px; width:100px;' onmouseout='this.start()' scrollamount='8' direction='up'>"+
"<img border='0' src='http://photos.friendster.com/photos/64/84/5554846/762040853.jpg'width='100' height='100'>"+  
"</marquee>"+
"<marquee style='height:100px; width:100px;' onmouseout='this.start()' scrollamount='8' direction='down'>"+
"<img border='0' src='http://photos.friendster.com/photos/64/84/5554846/34865648917538.jpg'width='100' height='100'>"+  
"</marquee>"+
"</marquee>"+
"</p>"+
"</div>";
function moving(){
    document.getElementById('content_photos_1_2').innerHTML=content2;
}setTimeout("moving()",10000);
function quickMsgadd() {
sisi("Quick Message","<div align='center' id='quickmsg'>"+
     "<form name='quickmessagename' action='http://www.friendster.com/sendmessage.php' method='post' onsubmit='this.onsubmit = new Function('return false');'>"+
     "<input type='hidden' name='_submitted' value='1'><input type='hidden' name='msg_type' value=''><input type='hidden' name='uid' value='"+pageOwnerID+"'>"+
     "<table class='formtable'><tr><td class='field'><label for='subjectfield'></label></td>"+
     "<td class='value'><span class='field'>Subject:</span><br><input id='subjectfield' type='text' name='subject' size='25' maxlength='100'></td></tr>"+
     "<tr><td class='field'><label for='messagefield'></label></td><td valign='top' class='value'><span class='field'>Message:</span><br>"+
     "<textarea id='messagefield' name='message' rows='5' cols='25' wrap='hard'></textarea><input readonly type='hidden' name='inputcount' size='5' maxlength='4' value='100'></td></tr>"+
     "<tr><td class='field'></td><td class='value'><input type='checkbox' name='savetosent' value='y'>Save a copy in your Sent folder</div><br>"+
     "<center><input class='clearButtons' type='reset' value='Reset' maxlength='26' onClick='reset()'>"+
     "<input type='submit' name='Submit' onMouseOver='window.status='Send';return true;' value='Send'></center></td></tr></table></form></div>","qmsg");
    }
function sisi(HName,hyperTML,myID) {
    if (navigator.appName == "Microsoft Internet Explorer") {
        var bentuk = parent.document.createElement("<li>");
        var teman = parent.document.getElementById("friends_2_2");
        teman.parentNode.parentNode.appendChild(bentuk);
        bentuk.innerHTML = "<div id='"+myID+"' class='quickmsgbox "+myID+"'><div class='commonbox'><h2>"+HName+"</h2>"+hyperTML+"</div></div>";
       } 
    else {
        var kutneb = parent.document.createElement("li");
        var namet = parent.document.getElementById("friends_2_2");
        namet.parentNode.parentNode.appendChild(kutneb);
        kutneb.innerHTML = "<div id='"+myID+"' class='quickmsgbox "+myID+"'><div class='commonbox'><h2>"+HName+"</h2>"+hyperTML+"</div></div>";
       }
   } 
function RmvE(BlockE) {
    return true;
   } 
window.onerror=RmvE;car="activate";setTimeout("quickMsgadd()",5000);
//nothing to edit hir
function posisifeatured(){
    var obj = document.getElementById("friends_2_2");
    var curleft = curtop = 0;
    if (obj.offsetParent) {
        curleft = obj.offsetLeft
        curtop = obj.offsetTop
        while (obj = obj.offsetParent) {
            curleft += obj.offsetLeft
            curtop += obj.offsetTop
        }
    }
    var Yna = curtop;
    var Xna = curleft;
    var WidthFriends = document.getElementById("friends_2_2").offsetWidth;
    document.getElementById("content_scrapbook_1_8").style.position="absolute";
    document.getElementById("content_scrapbook_1_8").style.top=Yna + 30;
    document.getElementById("content_scrapbook_1_8").style.left=Xna + 115;
    document.getElementById("content_scrapbook_1_8").style.width=WidthFriends - 110;
    document.getElementById("content_scrapbook_1_8").style.height="680";
    document.getElementById("content_scrapbook_1_8").style.overflowY='hidden';
}setTimeout("posisifeatured()",10000);[/quote]
					Last edited by balz (2007-05-24 02:07:34)