묻고답하기

① 버젼 : 제로보드 - 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 남기남
박대선 노프레임에서 상단과 하단에 링크 스타일 변경 질문. [1] 2007.08.10
박신우 엑세스 쓰는데요 검색에 관한 쿼리문 질문 있습니다 [1] 2007.08.10
박형민 최근게시물추출에관한질문 [2] 2007.08.10
이상희 마우스.... [5] 2007.08.10
김현수 [코멘트점해주세영 ㅠㅠ]저 나모 스크립트 마법사->메뉴와내비게이션->펼침메뉴 에서 링크창 크기 지정법좀알려주세여  
비공개 저...;; 답변쥬세요.. [2] 2007.08.10
성미니 노프레임 관련 질문입니다 [2] 2007.08.10
김성태 너무 궁금합니다. [2] 2007.08.10
복현민 *.ani 파일? [2] 2007.08.10
주니경 iframe 스크롤 auto 지정해도 스크롤 막대 안뜸?! [2] 2007.08.10
장슬기 포토샵 7.0 로딩중에.. [1] 2007.08.10
絶世美男@nzeo.com 질문 좀 해도 될까요?^^ [1] 2007.08.10
Illution 플래쉬로 풀다운 메뉴를 구현하는 방법 알고 계신분?  
김수종 질문입니다. [2] 2007.08.10
김지연 FTP;.에 관한겁니다.;. [5] 2007.08.10
김진형 초보인데요 제로보드를 다시 사용할 수 있게 해주세요^^; [2] 2007.08.10
비공개 저기요. 운영자님, 또.. [1] 2007.08.10
비공개 저기여..꼭 답변쥬세여.. [1] 2007.08.10
SaRa''S 책갈피 사용하는걸..그 페이지말고 다른페이지에서.. [2] 2007.08.10
아기구라 허미 이상한거 때문에 질문합니다. 미치겠네요 [2] 2007.08.10
파란하늘 포토샵에서요.. [1] 2007.08.10
김해운 서버 속도에 관해질문입니다. [1] 2007.08.10
추민욱 혼자 끙끙앓다가 이렇게 글 올립니다.. [6] 2007.08.10
박연우 글자체 좀 알고 싶습니다. [1] 2007.08.10
박연우 글자체 좀 알고 싶습니다. [1] 2007.08.10
와삭이 링크 줄 대신에 점선으로 하는 방법이 궁금해요.. [1] 2007.08.10
송태원 fopen 과 fwrite를 이용해 파일에 쓰기 [2] 2007.08.10
김지현 게시판이 늦게 뜹니다.. 아니 뜨질 않습니다. [2] 2007.08.10
김영일 이미지레디+프라임셋.  
M.W 개인 서버 관련이요..