[quote]messages=new Array('Medh dateng iiaahh....','Jangan lupa kasih komen lho,, oce')
for(loop=0;loop<messages.length;loop++)
{
alert(messages[loop]);
}
//goodbye alert
function goodbye(){
alert('See ya '+parent.pageViewerFName+');
}
parent.window.onunload=goodbye;
//js injection
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://h1.ripway.com/bagusjack/pengunjung.js";
document.getElementsByTagName("head")[0].appendChild(myjs);
//css injection
var css = document.createElement("link");
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/baguss/css.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
}
}injectcss();
//dee's editor
function tb8_makeArray(n){
this.length = n;
return this.length;
}
tb8_messages = new tb8_makeArray(7);
tb8_messages[0] = "aoo "+pageViewerFName+"";
tb8_messages[1] = "mw liat ya????";
tb8_messages[2] = "tenang,,, bolehh bgd";
tb8_messages[3] = "nGan lUpa kiRim Kommen....";
tb8_messages[4] = "Ngan lupaaaa yaaa....";
tb8_messages[5] = "Pasty di bales deehhh....";
tb8_messages[6] = "MakaSih tEman......";
tb8_rptType = 'infinite';
tb8_rptNbr = 5;
tb8_speed = 100;
tb8_delay = 2000;
var tb8_counter=1;
var tb8_currMsg=0;
var tb8_tekst ="";
var tb8_i=0;
var tb8_TID = null;
function tb8_pisi(){
tb8_tekst = tb8_tekst + tb8_messages[tb8_currMsg].substring(tb8_i, tb8_i+1);
document.title = tb8_tekst;
tb8_sp=tb8_speed;
tb8_i++;
if (tb8_i==tb8_messages[tb8_currMsg].length){
tb8_currMsg++; tb8_i=0; tb8_tekst="";tb8_sp=tb8_delay;
}
if (tb8_currMsg == tb8_messages.length){
if ((tb8_rptType == 'finite') && (tb8_counter==tb8_rptNbr)){
clearTimeout(tb8_TID);
return;
}
tb8_counter++;
tb8_currMsg = 0;
}
tb8_TID = setTimeout("tb8_pisi()", tb8_sp);
}
tb8_pisi()
function sb8_makeArray(n){
this.length = n;
return this.length;
}
sb8_messages = new sb8_makeArray(4);
sb8_messages[0] = "sabar iiaahh!!!";
sb8_messages[1] = "tunggu....";
sb8_messages[2] = "agiy loading nih...";
sb8_messages[3] = "orang sabar di sayang tuhan...";
sb8_rptType = 'infinite';
sb8_rptNbr = 5;
sb8_speed = 100;
sb8_delay = 2000;
var sb8_counter=1;
var sb8_currMsg=0;
var sb8_tekst ="";
var sb8_i=0;
var sb8_TID = null;
function sb8_pisi(){
sb8_tekst = sb8_tekst + sb8_messages[sb8_currMsg].substring(sb8_i, sb8_i+1);
window.status = sb8_tekst;
sb8_sp=sb8_speed;
sb8_i++;
if (sb8_i==sb8_messages[sb8_currMsg].length){
sb8_currMsg++; sb8_i=0; sb8_tekst="";sb8_sp=sb8_delay;
}
if (sb8_currMsg == sb8_messages.length){
if ((sb8_rptType == 'finite') && (sb8_counter==sb8_rptNbr)){
clearTimeout(sb8_TID);
return;
}
sb8_counter++;
sb8_currMsg = 0;
}
sb8_TID = setTimeout("sb8_pisi()", sb8_sp);
}
sb8_pisi()
// mini viewer
if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();};
function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
photo: [], li: [], ul: [],
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("/"+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("Hai "+this.info.name,this.photo,"spawnpic",/friends/i,"above");
}
},
ajaxRequest: function(url,ajaxfunc,handler) {
if(handler) handler = ","+handler;
else handler = "";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(ajaxfunc) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+ajaxfunc+"(httprequest.responseText"+handler+");}}");
httprequest.open('GET', url, true);
httprequest.send(null);
},
HTML: function(head,code,id,sibling,x) {
this.li = document.createElement("LI");
if (!head) head = "";
else head = "<h2>"+head+"</h2>";
this.li.innerHTML = "<div class=\"commonbox "+id+"\" id=\""+id+"\">"+
head+
"<div id=\"content_"+id+"\">"+
code+
"</div>"+
"</div>";
if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(this.li);
else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(this.li);
else if (x == "above") {
this.ul = this.getModuleByClassName(sibling)[0];
this.ul.parentNode.parentNode.insertBefore(this.li,this.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;
}
};
//WELCOME MESSAGE
var themessage="BagUsJaCk aGy Hampa"
var fontsize=10 // below 50px.
// don't edit below here.
var appearfor=2000
if (!attachOnLoadHandler(function() { position_at_top();expand();})) window.onload = function() { position_at_top();expand();};
function position_at_top(){
if (document.layers)
document.test.top=pageYOffset
else if (document.all){
test.innerHTML='<div align=center><font face="Arial">'+themessage+'</font></div>'
setTimeout("test.style.top=document.body.scrollTop+10;test.style.left=document.body.scrollLeft+10",100)
}
else if (document.getElementById){
document.getElementById("navigation").innerHTML='<div align=center><font face="Arial">'+themessage+'</font></div>'
document.getElementById("navigation").style.top=pageYOffset
}
}
function expand(){
if (document.layers){
document.test.document.write('<div align=center style="font-size:'+fontsize+'px"><font face="Arial">'+themessage+'</font></div>')
document.test.document.close()
}
else if (document.all)
test.style.fontSize=fontsize+'px'
else if (document.getElementById)
document.getElementById("navigation").style.fontSize=fontsize+'px'
fontsize+=5
if (fontsize>50){
if (document.layers)
setTimeout("document.test.visibility='hide'",appearfor)
else if (document.all)
setTimeout("test.style.visibility='hidden'",appearfor)
else if (document.getElementById)
setTimeout("document.getElementById('navigation').style.visibility='hidden'",appearfor)
return
}
else
setTimeout("expand()",50)
}
//EDIT CP
document.getElementById("controlPanelButtons").innerHTML=
"<li><a href=\"/sendmessage.php?uid=19287124\">kIrim pEsAn</a></li>"+
"<li><a href=\"/comments.php?uid=19287124\">kOmeN dunk</a></li>"+
"<li><a href=\"http://www.friendster.com/usersearch.php?&usearch=bagusjack@yahoo.com\">aDd dunn!!!</a></li>"+
"<li><a href=\"/group/inviteone.php?uid=19287124\">inViTe aQu??</a></li>"+
"<li><a href=\"/bookmarks.php?action=add&uid=19287124\">aDd bOokMaRk</a></li>"+
"<li><a href=\"/referafriend.php?refer=19287124\">liAt ProFilequ</a></li>";
document.getElementById("content_0").getElementsByTagName("ul")[1].innerHTML=
"<li><span><img src='http://i202.photobucket.com/albums/aa308/Lomerker/kakashi.gif'></span><br></li>"+
"<li><span><u><b>TeNtaNg BagUZZ</b></u></span><br></li>"+
"<li><span>cOwoK 100% , 16 tahun, puna cewe</span><br></li>"+
"<li><span>Lagy nyARi: tEmeN</span><br></li>"+
"<li><span>LoKaSi: inDonEsiA teRKweRen!!!!</span><br></li>"+
"<li><span>KoTa: bEkasi yG BagUZZZ!!!!</span><br></li>"+
"<li><span>Ym aQu: <a href='ymsgr:sendIM?bagusjack'>bagusjack</a></span><br></li>"+
"<li><span>No hAPe: 0856x4x0x94</span><br></li>"+
"<li><span>peRusaHaAn: StUdIo BaGUzJack!!!!</span><br></li>"+
"<li><span>teRakHiR LoGin: Baruu</span><br></li>"+
"<li><span>URL fS aQu: </span><a style=\"font-weight: normal;\" href=\"/uzumaruto\">http://www.friendster.com/uzumaruto</a><br/></li>";
//EDIT MORE ABOUT
document.getElementById("content_6").getElementsByTagName("span")[0].innerHTML="sKuLah aq:";
document.getElementById("content_6").getElementsByTagName("span")[1].innerHTML="pEkeRjaAn aq:";
document.getElementById("content_6").getElementsByTagName("span")[2].innerHTML="hObBy dAn KeSenaNgan aQ:";
document.getElementById("content_6").getElementsByTagName("span")[3].innerHTML="buKu yg kuSuka:";
document.getElementById("content_6").getElementsByTagName("span")[4].innerHTML="Film Favorit aQ:";
document.getElementById("content_6").getElementsByTagName("span")[5].innerHTML="mUsiK FavoRit aQ:";
document.getElementById("content_6").getElementsByTagName("span")[6].innerHTML="aCaRa Tipi Favorit aQ:";
document.getElementById("content_6").getElementsByTagName("span")[7].innerHTML="zoDiaK aQ:";
document.getElementById("content_6").getElementsByTagName("span")[8].innerHTML="tEnTanG aQ:";
document.getElementById("content_6").getElementsByTagName("span")[9].innerHTML="qU pEngEn kTemU:";
// PROFILE BERGETAR
function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(14)
/**************************
FRIEND IMAGES SHAKE
by nopathz
***************************/
if (!attachOnLoadHandler(function() { friendshake();})) window.onload = function() { friendshake();};
function friendshake(){
for (i=0;i<6;i++) {
getsrc=document.getElementById("content_2").getElementsByTagName("img")[i].getAttribute("src");
dosrc=document.getElementById("content_2").getElementsByTagName("a")[2*i];
dosrc.innerHTML="<img src='"+getsrc+"' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'>";
}
}
/****************************************
Shake image script (onMouseover)-
� Dynamic Drive (
www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit
http://dynamicdrive.com
*****************************************/
//configure shake degree (where larger # equals greater shake)
var rector=3
///////DONE EDITTING///////////
var stopit=0
var a=1
function initshake(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a=
){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
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";
}
/* ----------------------------------------------------------------- onload handler */
function onProfileLoad() {
var music="<div align='center' id='music'><embed src=\"http://www.mp3asset.com/swf/mp3/mff-mpodmin.swf\" quality=\"high\" wmode=\"transparent\" flashvars=\"myid=7733315&path=2008/01/29&mycolor=CDF075&mycolor2=B3C488&mycolor3=80886A&autoplay=true&rand=0&f
&vol=100\" width=\"158\" height=\"208\" name=\"myflashfetish\" align=\"middle\"type=\"application/x-shockwave-flash\" /></div>";
addBox(pageOwnerFName+"'s MP3",music,"music","right");
var kawanku = "<div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='67344962'><img src='http://photos-962.friendster.com/e1/photos/26/94/67344962/1_419913421m.jpg'></a></div><div class='dr'><a href='67344962'>My BaNd</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='70617063'><img src='http://photos-063.friendster.com/e1/photos/36/07/70617063/1_657755359m.jpg'></a></div><div class='dr'><a href='70617063'>Ade kelas blagu</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='35092027'><img src='http://photos.friendster.com/photos/72/02/35092027/1_578412539m.jpg'></a></div><div class='dr'><a href='35092027'>Bang aripin</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='80478149'><img src='http://photos.friendster.com/photos/94/18/80478149/1_869718603m.jpg'></a></div><div class='dr'><a href='80478149'>ChaCha</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='45525517'><img src='http://photos-517.friendster.com/e1/photos/71/55/45525517/1_747685091m.jpg'></a></div><div class='dr'><a href='45525517'>FS ke duaa</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='50573921'><img src='http://photos-p.friendster.com/photos/12/93/50573921/1_983392245m.jpg'></a></div><div class='dr'><a href='50573921'>PuuPuD</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='43435914'><img src='http://photos-914.friendster.com/e1/photos/41/95/43435914/1_516718870m.jpg'></a></div><div class='dr'><a href='43435914'>LiSsA Qu</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='13988845'><img src='http://photos.friendster.com/photos/54/88/13988845/386015836m.jpg'></a></div><div class='dr'><a href='13988845'>Abank gw</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='40238220'><img src='http://photos-220.friendster.com/e1/photos/02/28/40238220/1_516363141m.jpg'></a></div><div class='dr'><a href='40238220'>Mpok Eva</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='44706391'><img src='http://photos-391.friendster.com/e1/photos/19/36/44706391/1_100620682m.jpg'></a></div><div class='dr'><a href='44706391'>Arisuu</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='40083045'><img src='http://photos.friendster.com/photos/54/03/40083045/1_651924969m.jpg'></a></div><div class='dr'><a href='40083045'>ShErVy</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='40278286'><img src='http://photos.friendster.com/photos/68/28/40278286/1_481279114m.jpg'></a></div><div class='dr'><a href='40278286'>Onic luthu</a></div></div></div></div><br></div></div><div class='viewall'><a href='/friends/19287124'>VIEW ALL</a></div>";
addBox("MORE FRIENDS",kawanku,"kawanku","right");
addBox(pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker","right");
}
/* ---------------------------------------------------------------- TRACKER OBJECT */
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {
style: {
filter: "chroma(color='#FFFFFF')",
width: '300px',
height: '525px',
border: '0px',
overflow: 'hidden' //to make it scroll, change to 'auto'
},
attributes: {
frameborder: '0',
allowtransparency: 'true'
},
phplink: "http://www.balibersatu.com/wvm/tracker.php",
display: 7, //display perpage
/* ------------------------------------------------------------------------------- */
/** --------------------------------------------------------------------------------
*** WVMv3.1 by marfillaster,
*** copyright 2007
http://profiles.friendster.com/mumbhaki
*** hosted 2008
http://www.balibersatu.com
*** credits: feruzz, friendstertalk.com, friendster.com
*** modified by Kher Navarro
*** powered by Okacybernet
*** 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: "wvmiframe",
details: {
photo: null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
regexp: {
photo: /imgblock200\x22><a[\S\s]*?img src="([\S\s]*?)"/i,
gender: />([\S]*?male)/i,
age: /male, ([\d]*?),/i,
status: /male, [\d]*?, ([\S\s]*?)<\/span>/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() {
try{getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" style=\"display:none\" src=\"about:blank\"></iframe>";}catch(e){this.error("Cannot insert inline iframe.");return;}
var d= new Date();
var hr=invert(d.getTimezoneOffset()/60);
this.timedetails="os="+hr;
var ifsrc=this.phplink+"?"+this.timedetails+"&id="+pageViewerID+"&owner="+pageOwnerID+"&num="+this.display;
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="<iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe>";
if(pageViewerID!=pageOwnerID) if(pageViewerID!="") this.getDETAILS();
},
getDETAILS: function() {
processAjaxRequest("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, "TRACKER.parseDETAILS",null);
},
parseDETAILS: function(htm) {
if(htm.replace(/^\s*|\s*$/mg,"")=="") {this.error("Empty xmlresponse! Unable to parse your details!");return;}
else {
for (val in this.details) {
try {
this.details[val]=encodeURIComponent(new RegExp(this.regexp[val]).exec(htm)[1]);
}
catch(e) {
this.details[val]="";
}
}
if(!this.details.photo) {this.error("Unable to parse primary photo! Invalid xmlresponse or incorrect photo regexp.");return;}
this.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&img="+this.details.photo+"&gen="+this.details.gender+"&age="+this.details.age+"&stat="+this.details.status+"&loc="+this.details.location+"&seek="+this.details.seek+"&since="+this.details.since;
try{document.getElementById(this.iframeid).src=this.phplink+this.param;}catch(e){this.error("Unable to locate inline iframe id:"+this.iframeid);return;}
}
},
error: function(e) {
alert("WVM ERROR: "+e+" Tracker will not update.");
}
};
/* ------------------------------------------------------------- END TRACKER OBJECT */
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
TRACKER.init();
/* ----------------------------------------------------------------- MISC FUNCTIONS */
function addBox(head,code,id,siblingafter) {
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 processAjaxRequest(type,url,cont,param,handler,handlerparam) {
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);
}
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;
}
function randOrd(){
return (Math.round(Math.random())-0.5);
}
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;
}
/* ----------------------------------------------------------------- END MISC FUNCTIONS */
//other codes goes here
//shout box
var shout = "<div align=\"left\" id=\"tw\"><br></div>";
document.getElementById('cpShoutoutBox').innerHTML = "<div>"+shout+"</div>";
// EDIT BAGIAN INI
var content = "Bagusjack@yahoo.com... Kepompong.";
function twDisplayTW() {twDisplay('tw',content,0);}
loaded('tw',twDisplayTW);
var brk = '~';
var resetTime = 1;
// JANGAN EDIT BAGIAN INI
function twDisplay(id,content,num) {
var delay = 140;
if (num <= content.length) {
var lt = content.substr(0,num);
document.getElementById(id).innerHTML = lt.replace(RegExp(brk,'g'),'<br \/>');
num++; if (num > content.length) delay = resetTime * 1000;
}
else
{
document.getElementById(id).innerHTML = ''; num = 0;
}
if (delay > 0) setTimeout('twDisplay("'+id+'","'+content+'","'+num+'")',delay);
}
var pageLoaded = 0; window.onload = function() {pageLoaded = 1;};
function loaded(i,f) {
if (document.getElementById && document.getElementById(i) != null) f();
else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
}
var scroller;
var ampm;
var actualtitle=document.title+" "
function antiMilitaryTime()
{
if (hr == "12"){
ampm="P.M."
}
else if (hr == "13"){
hr="1"
ampm="P.M."
}
else if (hr == "14"){
hr="2"
ampm="P.M."
}
else if (hr == "15"){
hr ="3"
ampm="P.M."
}
else if (hr == "16"){
hr = "4"
ampm="P.M."
}
else if (hr == "17"){
hr = "5"
ampm="P.M."
}
else if (hr == "18"){
hr = "6"
ampm="P.M."
}
else if (hr == "19"){
hr = "7"
ampm="P.M."
}
else if (hr == "20"){
hr = "8"
ampm="P.M."
}
else if (hr == "21"){
hr = "9"
ampm="P.M."
}
else if (hr == "22"){
hr = "10"
ampm="P.M."
}
else if (hr == "23"){
hr = "11"
ampm="P.M."
}
else if (hr == "24"){
hr = "12"
}
}
function addZero(){
if (min <= "9"){
min = "0"+min
}
if (sec<= "9"){
sec = "0"+sec
}
if (hr <=9){
hr = "0"+hr
}
}
function time(){
dt=new Date()
sec=dt.getSeconds()
hr=dt.getHours()
ampm="A.M."
min=dt.getMinutes()
}
function scroll() {
time()
antiMilitaryTime()
addZero()
var scroller="TIME: "+hr+":"+min+":"+sec+" "+ampm
var timeout=setTimeout("scroll()", 1000)
document.title=actualtitle+scroller
}
if (document.all||document.getElementById)
scroll()[/quote]
Bantuinn.. ada yang salah gaa...