묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
메뉴를 최 상단에 바짝 붙이고 싶어요 ㅜㅜ
2007.06.14 19:03
http://ninkoo.oranc.co.kr음 일단 메뉴를 만들고... 나모 웹에디터를 이용하여...
그림에 롤오버 기능을 사용햇는데요... 이상하게 ㅜㅜ
메뉴들이랑 홈페이지 맨 윗쪽에 붙게 하는걸 모르겟네요 -_-;;;
메뉴그림들 위에 스프링 부분이 위에 닷게 할라고요...
아시는분 조언좀 부탁드립니다.
메뉴가 헤드 프레임에 잇어니.. 소스도 첨부 해서 올립니다.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>헤더 부분입니다.</title>
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
function na_preload_img()
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length-1; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
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_end = cookie_str.indexOf('=', pos_start);
cookie_name = cookie_str.substring(pos_start, pos_end);
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_name == name && 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>
<body OnLoad="na_preload_img(false, 'http://ninkoo.oranc.co.kr/img/nraeng_c.gif', 'http://ninkoo.oranc.co.kr/img/god_c.gif', 'http://ninkoo.oranc.co.kr/img/free_c.gif', 'http://ninkoo.oranc.co.kr/img/mo_c.gif', 'http://ninkoo.oranc.co.kr/img/po_c.gif', 'http://ninkoo.oranc.co.kr/img/cu_c.gif', 'http://ninkoo.oranc.co.kr/img/gu_c.gif', 'http://ninkoo.oranc.co.kr/img/love_c.gif', 'http://ninkoo.oranc.co.kr/img/home_c.gif');">
<center>
<a href="http://ninkoo.oranc.co.kr/index.html" target="_top" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', 'http://ninkoo.oranc.co.kr/img/nraeng_c.gif', true);" target="_self"><img src="http://ninkoo.oranc.co.kr/img/nraeng_b.gif" border="0" name="image1"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=GOD" OnMouseOut="na_restore_img_src('image2', 'document')" OnMouseOver="na_change_img_src('image2', 'document', 'http://ninkoo.oranc.co.kr/img/god_c.gif', true);" target="main"><img src="http://ninkoo.oranc.co.kr/img/god_b.gif" border="0" name="image2"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=DATA" OnMouseOut="na_restore_img_src('image3', 'document')" OnMouseOver="na_change_img_src('image3', 'document', 'http://ninkoo.oranc.co.kr/img/free_c.gif', true);" target="main"><img src="http://ninkoo.oranc.co.kr/img/free_b.gif" border="0" name="image3"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=MONO" target="main" OnMouseOut="na_restore_img_src('image4', 'document')" OnMouseOver="na_change_img_src('image4', 'document', 'http://ninkoo.oranc.co.kr/img/mo_c.gif', true);" target="main"><img src="http://ninkoo.oranc.co.kr/img/mo_b.gif" border="0" name="image4"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=po" target="main" OnMouseOut="na_restore_img_src('image5', 'document')" OnMouseOver="na_change_img_src('image5', 'document', 'http://ninkoo.oranc.co.kr/img/po_c.gif', true);"><img src="http://ninkoo.oranc.co.kr/img/po_b.gif" border="0" name="image5"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=CU" target="main" OnMouseOut="na_restore_img_src('image6', 'document')" OnMouseOver="na_change_img_src('image6', 'document', 'http://ninkoo.oranc.co.kr/img/cu_c.gif', true);"><img src="http://ninkoo.oranc.co.kr/img/cu_b.gif" border="0" name="image6"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=GU" OnMouseOut="na_restore_img_src('image7', 'document')" OnMouseOver="na_change_img_src('image7', 'document', 'http://ninkoo.oranc.co.kr/img/gu_c.gif', true);" target="main"><img src="http://ninkoo.oranc.co.kr/img/gu_b.gif" border="0" name="image7"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=guest" target="main" OnMouseOut="na_restore_img_src('image8', 'document')" OnMouseOver="na_change_img_src('image8', 'document', 'http://ninkoo.oranc.co.kr/img/love_c.gif', true);"><img src="http://ninkoo.oranc.co.kr/img/love_b.gif" border="0" name="image8"></a><a href="javascript:na_open_window('win', 'love.html', 0, 0, 300, 200, 0, 0, 0, 0, 0)" OnMouseOut="na_restore_img_src('image9', 'document')" OnMouseOver="na_change_img_src('image9', 'document', 'http://ninkoo.oranc.co.kr/img/home_c.gif', true);" target="_self"><img src="http://ninkoo.oranc.co.kr/img/home_b.gif" border="0" name="image9"></a>
</center>
</body>
</html>
그림에 롤오버 기능을 사용햇는데요... 이상하게 ㅜㅜ
메뉴들이랑 홈페이지 맨 윗쪽에 붙게 하는걸 모르겟네요 -_-;;;
메뉴그림들 위에 스프링 부분이 위에 닷게 할라고요...
아시는분 조언좀 부탁드립니다.
메뉴가 헤드 프레임에 잇어니.. 소스도 첨부 해서 올립니다.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>헤더 부분입니다.</title>
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
function na_preload_img()
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length-1; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
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_end = cookie_str.indexOf('=', pos_start);
cookie_name = cookie_str.substring(pos_start, pos_end);
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_name == name && 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>
<body OnLoad="na_preload_img(false, 'http://ninkoo.oranc.co.kr/img/nraeng_c.gif', 'http://ninkoo.oranc.co.kr/img/god_c.gif', 'http://ninkoo.oranc.co.kr/img/free_c.gif', 'http://ninkoo.oranc.co.kr/img/mo_c.gif', 'http://ninkoo.oranc.co.kr/img/po_c.gif', 'http://ninkoo.oranc.co.kr/img/cu_c.gif', 'http://ninkoo.oranc.co.kr/img/gu_c.gif', 'http://ninkoo.oranc.co.kr/img/love_c.gif', 'http://ninkoo.oranc.co.kr/img/home_c.gif');">
<center>
<a href="http://ninkoo.oranc.co.kr/index.html" target="_top" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', 'http://ninkoo.oranc.co.kr/img/nraeng_c.gif', true);" target="_self"><img src="http://ninkoo.oranc.co.kr/img/nraeng_b.gif" border="0" name="image1"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=GOD" OnMouseOut="na_restore_img_src('image2', 'document')" OnMouseOver="na_change_img_src('image2', 'document', 'http://ninkoo.oranc.co.kr/img/god_c.gif', true);" target="main"><img src="http://ninkoo.oranc.co.kr/img/god_b.gif" border="0" name="image2"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=DATA" OnMouseOut="na_restore_img_src('image3', 'document')" OnMouseOver="na_change_img_src('image3', 'document', 'http://ninkoo.oranc.co.kr/img/free_c.gif', true);" target="main"><img src="http://ninkoo.oranc.co.kr/img/free_b.gif" border="0" name="image3"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=MONO" target="main" OnMouseOut="na_restore_img_src('image4', 'document')" OnMouseOver="na_change_img_src('image4', 'document', 'http://ninkoo.oranc.co.kr/img/mo_c.gif', true);" target="main"><img src="http://ninkoo.oranc.co.kr/img/mo_b.gif" border="0" name="image4"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=po" target="main" OnMouseOut="na_restore_img_src('image5', 'document')" OnMouseOver="na_change_img_src('image5', 'document', 'http://ninkoo.oranc.co.kr/img/po_c.gif', true);"><img src="http://ninkoo.oranc.co.kr/img/po_b.gif" border="0" name="image5"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=CU" target="main" OnMouseOut="na_restore_img_src('image6', 'document')" OnMouseOver="na_change_img_src('image6', 'document', 'http://ninkoo.oranc.co.kr/img/cu_c.gif', true);"><img src="http://ninkoo.oranc.co.kr/img/cu_b.gif" border="0" name="image6"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=GU" OnMouseOut="na_restore_img_src('image7', 'document')" OnMouseOver="na_change_img_src('image7', 'document', 'http://ninkoo.oranc.co.kr/img/gu_c.gif', true);" target="main"><img src="http://ninkoo.oranc.co.kr/img/gu_b.gif" border="0" name="image7"></a><a href="http://ninkoo.oranc.co.kr/nr_bbs/zboard.php?id=guest" target="main" OnMouseOut="na_restore_img_src('image8', 'document')" OnMouseOver="na_change_img_src('image8', 'document', 'http://ninkoo.oranc.co.kr/img/love_c.gif', true);"><img src="http://ninkoo.oranc.co.kr/img/love_b.gif" border="0" name="image8"></a><a href="javascript:na_open_window('win', 'love.html', 0, 0, 300, 200, 0, 0, 0, 0, 0)" OnMouseOut="na_restore_img_src('image9', 'document')" OnMouseOver="na_change_img_src('image9', 'document', 'http://ninkoo.oranc.co.kr/img/home_c.gif', true);" target="_self"><img src="http://ninkoo.oranc.co.kr/img/home_b.gif" border="0" name="image9"></a>
</center>
</body>
</html>
댓글 2
-
조민
2007.06.14 22:32
-
이주용
2007.06.15 01:15
헐 정말 ㄳ합니다 ㅜㅜ
역시 제작 경험이 없다 보니;; ㅜㅜ 그런거까지 생각을 못햇네요...
정말 ㄳ합니다 복받으실꼬에요
topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'
위에 소스를 삽입해 보세요..