지난주 BEST회원
1/2이전다음
1/2이전다음
document.getElementById('pg_newarticle').style.display='none';
function changeBestMember(id){
var obj = document.getElementById('tab_' + id);
if(obj && obj.className=="selected"){
return false;
}
document.getElementById('homevisit').className="none";
document.getElementById('newarticle').className="none";
document.getElementById('newcomment').className="none";
document.getElementById('pg_homevisit').className="none";
document.getElementById('pg_newarticle').className="none";
document.getElementById('pg_newcomment').className="none";
document.getElementById('tab_homevisit').className="";
document.getElementById('tab_newarticle').className="";
document.getElementById('tab_newcomment').className="";
document.getElementById(id).className="";
document.getElementById("pg_"+id).className="pageWrap";
obj.className="selected";
return false;
}
function prevBestMember(id){
pagingBestMember(id, 0);
document.getElementById("pgnum_"+id).innerHTML = "1/2";
return false;
}
function nextBestMember(id){
pagingBestMember(id, 1)
document.getElementById("pgnum_"+id).innerHTML = "2/2";
return false;
}
function pagingBestMember(id, isNext)
{
var ul = document.getElementById(id);
var arrLis = ul.getElementsByTagName('li');
var start = 5 * isNext;
var end = start+5;
for(var i = 0; i < arrLis.length; i++)
{
if(i >= start && i < end){
arrLis[i].className = arrLis[i].className.replace(/none/g, "");
}
else
{
if(!/none/gi.test(arrLis[i].className)){
arrLis[i].className = arrLis[i].className + " none";
}
}
}
return false;
}
prevBestMember('homevisit');
prevBestMember('newarticle');
prevBestMember('newcomment');