웹톡님 질문좀요 아시는분만;; > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

웹톡님 질문좀요 아시는분만;; 정보

웹톡님 질문좀요 아시는분만;;

본문

http://kcs4342.puru.me/

현재 사이트 만들고있슴돠 그런데

웨톡에 리스트랑 접속자밑에 아이콘 바꾸고싶은데;;어딜 만저야될지 모르겟습니다;;;

봐주세요 부탁합니다. ㅠㅠ 어디에 넣어될지 말씀해주세요







<?
include "./include/simple_config.php";
include "./include/common_db.php";

$user = new Auth_User();


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV='Cache-Control' CONTENT='no-cache'>
<META HTTP-EQUIV='Progma' CONTENT='no-cache'>
<meta http-equiv=Content-Type content=text/html; charset=utf-8>
<style>
td, span {font-size:11px;font-family:"돋움";color:#222222;}
.user {font-size:11px;height:18px;font-family:"돋움";color:#222222;cursor:pointer;}
</style>
<script language="javascript">
var friends = new Array();
var allUsers = new Array();

function init() {
//webclient.set_robby_frame(this);

}

function release() {

//webclient.set_robby_frame(null);
}

function mytest() {

}

function addPRoomUser(userdata) {
userlist = userdata.split(",");

for(i = 0; i < userlist.length; i++) {
if(userlist[i] == "") {
continue;
}
useritem = userlist[i].split("/");
mb_join(useritem[0],useritem[1],useritem[2],useritem[3],useritem[4], useritem[5]);
}
}

function addRoomUser(userid, name, age, sex, level, device) {

mb_join(userid, name, age, sex, level,device);
}

function removeRoomUser(userid) {
mb_quit(userid);
}


function showUserMenu(tuserid, tname, e) {
if(parent.is_admin == true) {
parent.show_admin_popup(tuserid, tname, e, "user_list");
} else {
parent.show_user_popup(tuserid, tname, e, "user_list");
}
}

</script>
<script language="javaScript">

var user_count = 0;  // 현재 전체 로그인 멤버수  (전역 변수)

// 멤버 조인

function mb_join(userid, name, age, sex, level, device) {

if(sex == 'F') face_icon = "woman.gif"  //성별에 따라 아이콘 선택
else face_icon = "man.gif";
var level_icon = get_level_icon(level);

if(level_icon == "") level_icon = get_device_icon(device);

sid = "x." + userid;
var tableObj = null;
if(userid.indexOf("GUEST") >=0) {
tableObj =  document.getElementById("GUESTLIST_TABLE");
} else if(level == "10") {
tableObj =  document.getElementById("ADMINLIST_TABLE");
} else {
tableObj =  document.getElementById("USERLIST_TABLE");
}

//parent.printNotifyMessage("add user " + tableObj + " : " + tableObj.id + " : " + userid + " : " + name );

if(!document.getElementById(sid)) {
if(document != null && tableObj != null ) {
var target = tableObj;
var addRow = target.insertRow(-1);
addRow.id = sid;
var addCell = addRow.insertCell(0);

var str = "<img src='./face_icon/" + face_icon + "' border=0 align=absmiddle>";
var menu = "<span onClick=\"showUserMenu('" + userid + "', '" + name + "', event)\" style='cursor:pointer'>" + name + "</span>";
str += menu;

if(parent.userid == userid) str += "(나)";
addCell.innerHTML = "<table style='table-layout:fixed' onMouseOver=this.style.backgroundColor='#f0f0f0' onMouseOut=this.style.backgroundColor='#FFFFFF' width=100% border=0><tr height=18><td width=100%>" +str+ "</td><td width=20>" + level_icon + "</td></tr></table>";

//scrollBy(0,1000);
user_count = user_count + 1; // 현재 전체 로그인 멤버수 + 1
parent.set_user_count(user_count);

//parent.printNotifyMessage(sid + " : " + document.all[sid].rowIndex  + ", user_count : " + user_count);
//document.all["USERLIST_USERNUM"].innerHTML = user_count;
}
}
}

function mb_quit(userid) {
sid = "x." + userid;
var tableObj = null;
/*
if(userid.indexOf("GUEST") >=0) {
tableObj =  document.getElementById("GUESTLIST_TABLE");
} else {
tableObj =  document.getElementById("USERLIST_TABLE");
if(!document.getElementById(sid)) {
tableObj =  document.getElementById("ADMINLIST_TABLE");
}
}
*/

//parent.printNotifyMessage("remove user " + tableObj + " : " + tableObj.id + " : " + userid  );
if(document.getElementById(sid)) {
if( document.getElementById(sid).parentNode.nodeName == "TBODY"  ) {
tableObj = document.getElementById(sid).parentNode.parentNode;
//tableObj.deleteRow(document.getElementById(sid).parentNode.parentNode.rowIndex);
//tableObj.deleteRow(document.getElementById(sid).sectionRowIndex);
tableObj.deleteRow(document.getElementById(sid).rowIndex);//IE전용
user_count = user_count - 1;  // 현재 전체 로그인 멤버수 - 1
parent.set_user_count(user_count);
//parent.printNotifyMessage(sid + " : " + document.all[sid].rowIndex  + ", user_count : " + user_count);
}
}

}
// kind 아이콘을 선별한다.
function get_kind_icon(kind) {
var kind_icon = 'memo.gif';
if(kind == 'ROOM_ADMIN') {
kind_icon = 'icon_crown.gif';
} else if(kind == 'KEEPER') {
kind_icon = 'keeper.gif';
} else if(kind == 'SUPER') {
kind_icon = 'super.gif';
}
return kind_icon;
}

function get_level_icon(level) {
if(level == "10") {
return "<img src='./icon/super.gif' border=0 align=absmiddle>";
} else if (level > "5") {

}
return "";
}

function get_device_icon(device) {
if(device == "IPHONE" || device == "IPAD" || device == "ANDROID" ) {
return "<img src='./icon/ico_cellphone.gif' border=0 align=absmiddle alt='" + device + "' title='" + device + "'>";
}
return "";
}

//에러방지 스크립트
function imessage_open(userid) {

}

</script>
</head>

<body border=0 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad="init()" onUnload="release()" oncontextmenu='return false' ondragstart='return false' onselectstart='return false' width=100% height=100% bgcolor="#FFFFFF">

<table id="ADMINLIST_TABLE" border=0 cellpadding=0 cellspacing=0 width=100% style='table-layout:fixed'>
</table>

<table id="USERLIST_TABLE" border=0 cellpadding=0 cellspacing=0 width=100% style='table-layout:fixed'>
</table>


<table id="GUESTLIST_TABLE" border=0 cellpadding=0 cellspacing=0 width=100% style='table-layout:fixed'>
</table>

<div id='popupmenu' style='position:absolute; left:0px; top:0px; width:0; height: 0; z-index:1; visibility: hidden' onMousedown="menu_action('popupmenu','hidden')">
</div>
</body>
</html>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT