묻고답하기

① 버젼 : 제로보드 - 4.1 pl2 나모웹에디터 - 5.0
② 해당질문 캡쳐한 그림주소 :
③ 질문내용(매우 정확하고 상세하게) :
나모 스크립트 마법사->메뉴와 내비게이션->펼침메뉴 만들기루 메뉴를 만들었습니다.
아래처럼나오지만 죽 내려서 질문좀봐주세여 만약을위해 소스다부침니다 ;; 지성

<script language="JavaScript">
<!--
function namosw_list(parent, visible, width, height, font, size, fgColor, bgColor, indent, hbgColor, hfgColor) {
  this.additem = namosw_l_additem;
  this.addlist = namosw_l_addlist;
  this.make    = namosw_l_make;
  this.write   = namosw_l_write;
  this.show    = namosw_l_show;
  this.update  = namosw_l_update;
  this.updateparent = namosw_l_updateparent;
  this.items = new Array();
  this.id = document.namosw_lists.length;
  this.parent_id = 0;
  this.x = 0;
  this.y = 0;
  this.visible = visible;
  this.width    = width;
  this.height   = height;
  this.parent   = parent;
  this.indent = indent;
  this.fgColor = fgColor;
  this.hfgColor = hfgColor;
  this.bgColor  = bgColor;
  this.hbgColor = hbgColor;

  this.font_start = '';
  this.font_end   = '';

  this.font_start = '<font color=' + fgColor;
  if (font != '') this.font_start += ' face="' + font + '+ '+ '"';
  if (size != '' && size.indexOf('pt', 0) == -1) this.font_start += ' size=' + size;
  this.font_start += '>';

  this.font_start += '<span';
  if (size.indexOf('pt', 0) != -1)
    this.font_start += ' style="font-size:' +size+ '+ ';"';
  this.font_start += '>';

  this.font_end  = '</span>';
  this.font_end += '</font>';

  this.made     = false;
  this.shown    = false;
  document.namosw_lists[document.namosw_lists.length] = this;
}

function namosw_l_setclip(layer, left, right, top, bottom) {
  if (navigator.appName.indexOf('Netscape', 0) != -1) {
    layer.clip.left   = left;
    layer.clip.right  = right;
    layer.clip.top    = top;  
    layer.clip.bottom = bottom;
  } else {    
    layer.style.pixelWidth  = right-left;
    layer.style.pixelHeight = bottom-top;
    layer.style.clip  = "rect(" + top + "," + right + "," + bottom + "," + left + ")";
  }
}

function namosw_l_write() {
  var layer, clip, str;
  for(var i = 0; i < this.items.length; i++) {
    layer = this.items[i];
    if (navigator.appName.indexOf('Netscape', 0) != -1)
      layer.visibility = "hidden";
    else
      layer.style.visibility = "hidden";
    str = "";

    str += "<table width="+this.width+" nowrap border='0' cellpadding='0' cellspacing='0'><tr>";
    if (0 < this.indent) str += "<td width="+this.indent+" nowrap> </td>";
    if (layer.type == 'list') {
      str += "<td width=15  valign='middle' nowrap><a";
      if (navigator.appName.indexOf('Netscape', 0) != -1) str += " href="javascript:void(0);"";
      else                                                str += " style="cursor:hand;"";
      str += " onclick="namosw_l_expand("+layer.list.id+");"><img src="collapsed.gif" name="_img"+layer.list.id+"" border='0'></a></td>";
    } else {
      str += "<td width=15 nowrap> </td>";
    }
    str += "<td height="+(this.height-3)+" width="+(this.width-15-this.indent)+" valign='middle' align='left'>";

    if (layer.url)       str += "<a href="" + layer.url + "" target="" + layer.frame + "" style="text-decoration:none;">";
    if (this.font_start) str += this.font_start;
    str += layer.text;
    if (this.font_end) str += this.font_end;
    if (layer.url)       str += "</a>";
    str += "</td></table>";

    str = str.replace("span", "span id='namoswlistspan" + layer.lid + "'");

    if (navigator.appName.indexOf('+ 'Netscape', 0) != -1) {
      layer.document.writeln(str);
      layer.document.close();
    } else {
      layer.innerHTML = str;
      layer.span = document.all['+ 'namoswlistspan'+layer.lid];
    }
    if (layer.type == 'list' && layer.list.visible)
      this.items[i].list.write();
  }
  this.made = true;
}

function namosw_l_show() {
  var layer;
  for(var i = 0; i < this.items.length; i++) {
    layer = this.items[i];
    namosw_l_setclip(layer, 0, this.width, 0, this.height-1);
    if (navigator.appName.indexOf('Netscape', 0) != -1) {
      if (layer.oBgColor) layer.document.bgColor = layer.oBgColor;
      else layer.document.bgColor = this.bgColor;
    } else {
      if (layer.oBgColor) layer.style.backgroundColor = layer.oBgColor;
      else layer.style.backgroundColor = this.bgColor;
    }
    if (layer.type == 'list' && layer.list.visible)
      layer.list.show();
  }
  this.shown = true;
}

function namosw_l_update(parent_visible, x, y) {
  var top = y, layer, list;
  for(var i = 0; i < this.items.length; i++) {
    layer = this.items[i];
    list  = layer.list;
    if (this.visible && parent_visible) {
      if (navigator.appName.indexOf('Netscape', 0) != -1) {
        layer.visibility = "visible";
        layer.top = top;
        layer.left = x;
      } else {
        layer.style.visibility = "visible";
        layer.style.pixelTop   = top;
        layer.style.pixelLeft  = x;        
//        if (layer.url) layer.style.cursor = "hand";
      }
      top += this.height;
    } else {
      if (navigator.appName.indexOf('+ 'Netscape', 0) != -1) layer.visibility = "hidden";
      else layer.style.visibility = "hidden";
    }
    if (layer.type == 'list') {
      if (list.visible) {
        if (!list.made)  list.write();
        if (!list.shown) list.show();
        if (navigator.appName.indexOf('Netscape', 0) != -1) layer.document.images[0].src = "collapsed.gif";
        else eval('document.images._img'+list.id+'.src = "collapsed.gif"');
      } else {
        if (navigator.appName.indexOf('Netscape', 0) != -1) layer.document.images[0].src = "expanded.gif";
        else eval('document.images._img'+list.id+'.src = "expanded.gif"');
      }
      if (list.made)
        top = list.update(this.visible && parent_visible, x, top);
    }
  }
  return top;
}

function namosw_l_updateparent(parent_id) {
  this.parent_id = parent_id;
  for(var i = 0; i < this.items.length; i++)
    if (this.items[i].type == 'list')
      this.items[i].list.updateparent(parent_id);
}

function namosw_l_expand(i) {
  document.namosw_lists[i].visible = !document.namosw_lists[i].visible;
  list = document.namosw_lists[document.namosw_lists[i].parent_id];
  list.update(true, list.x, list.y);
}

function namosw_l_make(x, y) {
  this.updateparent(this.id);
  this.write();
  this.show();
  this.update(true, x, y);
  this.x = x;
  this.y = y;
}

function namosw_l_additem(text, url, frame) {
  var layer = null;
  if (navigator.appName.indexOf('Netscape', 0) != -1 && this.parent)
    layer = eval('this.parent.document.layers.namoswlistitem'+document.namosw_lists.lid);
  else
    layer = eval('document.all.namoswlistitem'+document.namosw_lists.lid);
  if (layer == null) {
    if (navigator.appName.indexOf('Netscape', 0) != -1)
      layer = this.parent ? new Layer(this.width, this.parent) : new Layer(this.width);
  }
  if (layer == null) return;

  if (url)   layer.url   = url;
  if (frame) {
    if (frame.indexOf('parent.') != 0)
      layer.frame = "_" + frame;
    else
      layer.frame = frame.substring(7, frame.length);
  }
  layer.type = 'item';
  layer.text = text;
  layer.lid  = document.namosw_lists.lid;
  this.items[this.items.length] = layer;
  layer.hbgColor = this.hbgColor;
  layer.oBgColor = this.bgColor;
  layer.fgColor = this.fgColor;
  layer.hfgColor = this.hfgColor;
  if (layer.captureEvents)
    layer.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT|Event.MOUSEUP);
  layer.onmouseover = namosw_l_onmouseover;
  layer.onmouseout  = namosw_l_onmouseout;
//  layer.onmouseup   = namosw_l_onmouseup;
  document.namosw_lists.lid++;
}

function namosw_l_addlist(list, text, url, frame) {
  var layer = null;

  if (navigator.appName.indexOf('Netscape', 0) != -1 && this.parent)
    layer = eval('this.parent.document.layers.namoswlistitem'+document.namosw_lists.lid);
  else
    layer = eval('document.all.namoswlistitem'+document.namosw_lists.lid);
  if (layer == null) {
    if (navigator.appName.indexOf('Netscape', 0) != -1)
      layer = this.parent ? new Layer(this.width, this.parent) : new Layer(this.width);
  }
  if (layer == null) return;

  if (url)   layer.url   = url;
  if (frame) {
    if (frame.indexOf('parent.') != 0)
      layer.frame = "_" + frame;
    else
      layer.frame = frame.substring(7, frame.length);
  }
  layer.list = list;
  layer.type = 'list';
  layer.text = text;
  layer.lid  = document.namosw_lists.lid;
  this.items[this.items.length] = layer;
  list.parent = this;
  layer.hbgColor = this.hbgColor;
  layer.oBgColor = this.bgColor;
  layer.fgColor = this.fgColor;
  layer.hfgColor = this.hfgColor;
  if (layer.captureEvents)
    layer.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT|Event.MOUSEUP);
  layer.onmouseover = namosw_l_onmouseover;
  layer.onmouseout  = namosw_l_onmouseout;
//  layer.onmouseup   = namosw_l_onmouseup;
  document.namosw_lists.lid++;
}

function namosw_l_onmouseover()
{
  if (navigator.appName.indexOf('Netscape', 0) != -1) {
    if (this.hbgColor)
      this.bgColor = this.hbgColor;
  } else {
    if (this.hbgColor) this.style.backgroundColor = this.hbgColor;
    if (this.hfgColor) this.span.style.color = this.hfgColor;
  }
  if (this.url) self.status = this.url;
}

function namosw_l_onmouseout()
{
  if (navigator.appName.indexOf('Netscape', 0) != -1) {
    this.bgColor = this.oBgColor;
  } else  {
    this.style.backgroundColor = this.oBgColor;
    this.span.style.color = this.fgColor;
  }
  if (this.url) self.status = '';
}

function namosw_l_onmouseup()
{
  if (this.url) {
    if (this.frame == 'blank') {
      window.open(this.url, 'win1');
    } else {
      var frame_obj;
      if ((frame_obj = eval(this.frame)) != null)
        frame_obj.location = this.url;
    }
  }
}

function namosw_init_list(top_layer)
{
  if (parseInt(navigator.appVersion) < 4)
    return;
  if (top_layer == '')
    return;

  document.namosw_lists     = new Array();
  document.namosw_lists.lid = 0;

  var layer;
  if (navigator.appName.indexOf('Netscape', 0) != -1)
    layer = document.layers[top_layer];
  else
    layer = document.all[top_layer];

  var string = "";
  for (i = 0; i < 3; i++) {
    string = string + "<div id='namoswlistitem" + (document.namosw_lists.lid+i) + "' " +
                      "style='position: absolute;'></div>";
  }
  layer.innerHTML += string;

  l1 = new namosw_list(layer, true, 200, 22, 'Arial', '1', 'black', 'gray', 0);
    l2 = new namosw_list(layer, false, 200, 17, 'Arial', '1', 'black', 'silver', 0, 'white');
    l2.additem('B', 'http://email.fanpy.com/qmail/qmail.asp?kind=e&email=hs0014k@hotmail.com', 'blank');
  l1.addlist(l2, 'A', '', 'self');

  l1.make(0, 14);
}

function namosw_ns_resize()
{
  window.history.go(0);
}

// -->
</script>
<body OnLoad="namosw_init_list('layer1');" OnResize="namosw_ns_resize();">
<p> </p>
<div id="layer1" style="border-width:1px; border-style:none; width:200px; height:200px; position:absolute; left:10px; top:51px; z-index:1;">
    <p> </p>
</div>
<p> </p>
-----------------------------------------------------------------------------------질문내용  이 아래꺼가 메뉴 인데여  A 메뉴를 펼치면 열리는 B에서 링크를 blank 로 걸어서 (((이것   l2.additem('B', 'http://email.fanpy.com/qmail/qmail.aspkind=e&email=hs0014k@hotmail.com', 'blank');)))
새창이뜨는데여 그창의 크기를 지정해줄수없나여 ?

<a href="#" onClick="window.open('http://email.fanpy.com/qmail/qmail.asp?kind=e&email=hs0014k@hotmail.com', 'qmail','width=206,height= 300,toolbar=no,resize=no,scrollbars=no');">퀵메일</a>
이경우는 정해지는데 .... 이거랑 같은방법으로 저기다 부쳐넣으면 안돼여 ㅠㅠ 어떻하면댈까여
-----------------------------------------------------------------------------------
l1 = new namosw_list(layer, true, 200, 22, 'Arial', '1', 'black', 'gray', 0);
    l2 = new namosw_list(layer, false, 200, 17, 'Arial', '1', 'black'+ ', 'silver', 0, 'white');
    l2.additem('B', 'http://email.fanpy.com/qmail/qmail.asp?kind=e&email=hs0014k@hotmail.com', 'blank');
  l1.addlist(l2, 'A', ''+ ', 'self');

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
김학민 프레임고정하는법 아시는분? [3] 2007.08.10
냥냥이 어케하죠 ㅠ.ㅠ [1] 2007.08.10
최경환 홈 들어갈때마다 음악이 바뀌고 계속적으로 새로운 음악이 계속나오게 하는 방법은 없나요.? [2] 2007.08.10
.STAR. [제발답변좀] 이 정도 사양에서 하루 트래픽 어느정도까지 수용할수 있을까요? [6] 2007.08.10
권선일 초보인데.... 최근게시물이랑.. 외부로그인말이에요.ㅠ.ㅠ [1] 2007.08.10
허접 nzeo처럼 상단에 방송현황을.. [1] 2007.08.10
박형민 노프레임에 관련된 질문입니다. [1] 2007.08.10
박대선 link visited active hover 사용방법 질문요... [3] 2007.08.10
박신영 방명록 아이콘에 관한 질문인데요..  
지니 크롬리스 창을 써보고싶은데...도와 주세요. [1] 2007.08.10
M.W 네임서버.. 이렇게 해야하는건가요? [2] 2007.08.10
최지훈 나모에 문제가 또생겼어요 [2] 2007.08.10
이정환 포토샵에서 폰트의 폰트 어떻게 바꾸죠? [4] 2007.08.10
최지훈 나모가 이상하게 변해버렸어요. [3] 2007.08.10
정호 웹정체 설치.... [1] 2007.08.10
PeACE_oNE 제로보드 db 백업에 대한 질문입니다. [2] 2007.08.10
태꾸.. 포토샵에서 동그라미를 부드럽게 할수 없나여? [2] 2007.08.10
박민수 궁금합뉘다...후후 [3] 2007.08.10
오인화 [질문] 옆에 엘레베이터처럼 내려오는 소스 [2] 2007.08.10
김도현 HTML 태그에 대해서 궁금한게 있습니다. [1] 2007.08.10
samui 게시판 스킨을 쓸때 문제가 생겨서요~!! [1] 2007.08.10
samui 포토샵에서 이미지레이디로 가서.. 베너.. [2] 2007.08.10
정성민 최근 게시물 메인페이지에 보여주는 소스에 대한 질문임다 [1] 2007.08.10
박대선 노프레임에서 상단과 하단에 링크 스타일 변경 질문. [1] 2007.08.10
박신우 엑세스 쓰는데요 검색에 관한 쿼리문 질문 있습니다 [1] 2007.08.10
박형민 최근게시물추출에관한질문 [2] 2007.08.10
이상희 마우스.... [5] 2007.08.10
김현수 [코멘트점해주세영 ㅠㅠ]저 나모 스크립트 마법사->메뉴와내비게이션->펼침메뉴 에서 링크창 크기 지정법좀알려주세여  
비공개 저...;; 답변쥬세요.. [2] 2007.08.10
성미니 노프레임 관련 질문입니다 [2] 2007.08.10