[re] 듀나in/ 블로그에 방명록 달기 (풀스크린의 작은 창)
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
cookie_str = document.cookie;
cookie_str.toString();
pos_start = cookie_str.indexOf(name);
pos_start = cookie_str.indexOf('=', pos_start);
pos_end = cookie_str.indexOf(';', pos_start);
if (pos_end <= 0) pos_end = cookie_str.length;
cookie_val = cookie_str.substring(pos_start + 1, pos_end);
if (cookie_val == "done")
return;
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script>
이걸 <head> 와 </head> 사이에 일단 넣으신 다음,
<a href="javascript:na_open_window('win', '글주소', 100, 200, 300, 200, 0, 0, 0, 1, 0);" target="_self">방명록-0-</a>
를 쓰시면 됩니다.
저기에서 0, 0, 0, 1, 0 이 부분을 0 (선택안함) 1 (선택함) 을 입맛대로-_-고르셔서 쓰세요.
차례로 도구막대보이기,메뉴보이기,크기조절가능,스크롤막대보이기,상황선보이기 입니다.
그리고 100, 200, 300, 200 은 차례로 왼쪽여백, 오른쪽 여백, 너비(가로), 높이(세로) px 입니다.
안되시면..운명입니다. (는 뻥이고 검색을..^^;;)
(추가)
나모 웹에디터로 작업하시면요, 하이퍼링크 거신 다음 밑에 대상프레임 정하는 곳의 아래쪽에 "새창으로 열기" 있거든요.
그 옆에 "선택사항"이란게 있는데 그걸로 편하게 조절하실 수 있어요.