[quote=bobcbar][quote=cjoker2][quote]if ( ! attachOnLoadHandler(function () { rComm();})) window.onload = function () { rComm();};
function rComm() {
CHOOSECOMM.init();
}
if (typeof CHOOSECOMM == "undefined") { CHOOSECOMM = {}; }
CHOOSECOMM = {
comm: [],
elements: {
mainid: document.getElementById("content_18"),
maintag: "DIV",
mainclass: "fitem1wrapper"
},
init: function() {
this.comm = this.getElementsByClassName(this.elements.mainid,this.elements.maintag,this.elements.mainclass);
for(var x=5; x<this.comm.length;x++) {
if(this.comm[x].innerHTML) {
this.comm[x].parentNode.removeChild(this.comm[x]);
}
}
},
getElementsByClassName: function(oElm,sTag,sClass) {
var elm = [];
if (oElm === null)oElm = document;
if (sTag === null)sTag = "*";
var els = oElm.getElementsByTagName(sTag) || 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;
}
};
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("/"+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.setAttribute("align","center");
this.photo.innerHTML = "<a href=\"/"+pageViewerID+"\" target=\"_blank\" title=\""+pageViewerFName+"\">"+this.info.photo+"</a>";
document.getElementById("viewerpic").appendChild(this.photo);
}catch(e) {
this.info.photo = "";
}
}
},
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);
}
};
if (!attachOnLoadHandler(function(){embed()})) window.onload = function(){embed()};
function embed(){
var slodde = "<embed src=\"http://widget-e7.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"cy=fr&il=1&channel=1008806316532531563&site=widget-e7.slide.com\" style=\"width:100%;height:125px\" name=\"flashticker\" align=\"middle\"/><div style=\"width:100%;text-align:center;\"><a href=\"http://www.friendster.com/photos/48478597\" target=\"_blank\"><b>View All Photo</a> | <a href=\"http://www.friendster.com/friendphotoupload.php?uid=48478597\" target=\"_blank\">Upload Photo Fo Me</b></a></div>";
document.getElementById('content_1').style.height='100%';
document.getElementById('content_1').style.overflowY='hidden';
document.getElementById('content_1').innerHTML = "<table width='100%'><tr><td align='center'>"+slodde+"</td></tr></table>";
var slodde1 = "<div class='fitem1wrapper'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/27949891 '>"+
"<img src='http://i238.photobucket.com/albums/ff218/cjoker4/hh.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/27949891 '>HazeLeiMi</a></li>"+
"<li>HazeLeiMi- Hazel, Leimarie and Micah, yan ang mga pnakamamahal kong grupo.</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='fitem1wrapper'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/45137145 '>"+
"<img src='http://i238.photobucket.com/albums/ff218/cjoker4/as.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/45137145 '>Leimarie</a></li>"+
"<li>e2 c lei.xa ay maarte.yan ang sab ng iba.pero pra skn, d xa maarte.tlgang ganun lng tlga ang maganda at seksi.hehehe.</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='fitem1wrapper'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/24435904 '>"+
"<img src='http://i238.photobucket.com/albums/ff218/cjoker4/ad.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/24435904 '>Micah</a></li>"+
"<li>e2 nmn c mika.xa ay tanga.jokz lng.seryoso tong tao, at magalng s math.pero masungit dw, sab ng iba..mahilig xa sa aso,lalo n kay letter D.inde nia crush c letter a, huh..haha..</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='fitem1wrapper'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/17467286 '>"+
"<img src='http://i238.photobucket.com/albums/ff218/cjoker4/vv.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/17467286 '>Lavinna</a></li>"+
"<li>e2 c vinna.hehe xD~ xa ay MMM, Matalino, Maganda at Mayaman.</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='fitem1wrapper'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/4117617 '>"+
"<img src='http://i238.photobucket.com/albums/ff218/cjoker4/387623807l.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/4117617 '>Ate Erine</a></li>"+
"<li>c ate erine ay ang aking cute n pnsan.hehe xD~ mabaet, at maganda.hihi.</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='fitem1wrapper'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/8287170 '>"+
"<img src='http://i238.photobucket.com/albums/ff218/cjoker4/1_539234158l.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/8287170 '>Anime Sorceress</a></li>"+
"<li>huh!? klala k0h b t0h? xempre, oo! kz ak0h yan ehh.hehe.hnd Anime Sosoress to PK! Anime Sorceress dpt! at hnd PORN ang FERN!! awatable b!</li>"+
"</ul></td>"+
"</tr></tbody></table></div>";
document.getElementById('content_2').style.height='100%';
document.getElementById('content_2').style.overflowY='hidden';
document.getElementById('content_2').innerHTML = "<table width='100%'><tr><td align='center'>"+slodde1+"</td></tr></table>";
}setTimeout("embed()",10000);[/quote]
the other codes work well except for the sliding photo gallery...
is there something wrong with my codes??
please help me
[/quote]
Try the code now, you had two var slodde, I change the second one on ur codes to slodde1 and I removed the second onload handler you only need 1.[/quote]
wow!
it is now working! you're my hero!
thank you very much for your help
:rose: :norose: