묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
메뉴바 중..
2003.03.17 21:37
<nobr<a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a></nobr>
http://oieho.cafe24.com/mainmenu.htm
위 주소로 들어가시면 스크롤 되는 DHTML 스크립트 맞나? 그런 메뉴가 나오는데..
<a href="javascript:history.back()"><img src='images/back.jpg' onmouseover="this.src='images/back_over.jpg';" onmouseout="this.src='images/back.jpg'" onmousedown="this.src='images/back_down.jpg';" onmouseup="this.src='images/back_over.jpg';" border="0"></a>
위 소스를 <nobr> 속에 넣으면 적용되지 않아 메뉴 전체가 사라져 버립니다. 구러니까 <nobr> 이 속에.. 메뉴가 들어간다는 뜻.. 전체 소스는 아래와 같습니다.
어떻게해야 할수있을까요?
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v5.0">
<style>
body{
overflow-x:hidden;
overflow-y:scroll;
}
</style>
<base target="detail"></head>
<body style="filter=progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#F2F2F2, EndColorStr=#EFECDC)" oncontextmenu="return false" ondragstart="return false" onselectstart="return false" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<p><script language="JavaScript1.2">
/*
Scrollable Menu Links- By Dynamicdrive.com
For full source, TOS, and 100s DTHML scripts
Visit http://dynamicdrive.com
*/
//configure path for left and right arrows
var goleftimage='images/pointer2.gif'
var gorightimage='images/pointer.gif'
//configure menu width
var menuwidth=860
//configure scroll speed (1-10), where larger is faster
var scrollspeed=7
//specify meny content
var menucontents='<nobr><a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a></nobr>'
////NO NEED TO EDIT BELOW THIS LINE////////////
var actualwidth=''
var ns_scroll
function fillup(){
if (document.all){
test2.innerHTML=menucontents
actualwidth=test2.offsetWidth
}
else if (document.layers){
ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2
ns_scroll.document.write(menucontents)
ns_scroll.document.close()
actualwidth=ns_scroll.document.width
}
}
window.onload=fillup
function moveleft(){
if (document.all&&test2.style.pixelLeft>(menuwidth-actualwidth))
test2.style.pixelLeft-=scrollspeed
else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))
ns_scroll.left-=scrollspeed
lefttime=setTimeout("moveleft()",50)
}
function moveright(){
if (document.all&&test2.style.pixelLeft<0)
test2.style.pixelLeft+=scrollspeed
else if (document.layers&&ns_scroll.left<0)
ns_scroll.left+=scrollspeed
righttime=setTimeout("moveright()",50)
}
if (document.all||document.layers){
with (document){
write('<table border="0" cellspacing="0" cellpadding="0">')
write('<td valign="middle"><a href="#" onfocus="blur()" onMouseover="moveright()" onMouseout="clearTimeout(righttime)"><img src="'+goleftimage+'"border=0></a></td>')
write('<td valign="top">')
if (document.all){
write('<span style="position:relative;width:'+menuwidth+';">')
write('<span style="position:absolute;width:'+menuwidth+';clip:rect(0 '+menuwidth+' auto 0)">')
write('<span id="test2" style="position:absolute;left:0;top:7">')
write('</span></span></span>')
}
else if (document.layers){
write('<ilayer width='+menuwidth+' name="ns_scrollmenu">')
write('+ '+ '<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>')
}
write('</td>')
write('<td valign="middle"><a href="#" onfocus="blur()" onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)" style=cursor:hand>')
write('<img src="'+gorightimage+'"border=0></a>')
write('</td></table>')
}
}
</script></body>
</html>
http://oieho.cafe24.com/mainmenu.htm
위 주소로 들어가시면 스크롤 되는 DHTML 스크립트 맞나? 그런 메뉴가 나오는데..
<a href="javascript:history.back()"><img src='images/back.jpg' onmouseover="this.src='images/back_over.jpg';" onmouseout="this.src='images/back.jpg'" onmousedown="this.src='images/back_down.jpg';" onmouseup="this.src='images/back_over.jpg';" border="0"></a>
위 소스를 <nobr> 속에 넣으면 적용되지 않아 메뉴 전체가 사라져 버립니다. 구러니까 <nobr> 이 속에.. 메뉴가 들어간다는 뜻.. 전체 소스는 아래와 같습니다.
어떻게해야 할수있을까요?
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v5.0">
<style>
body{
overflow-x:hidden;
overflow-y:scroll;
}
</style>
<base target="detail"></head>
<body style="filter=progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#F2F2F2, EndColorStr=#EFECDC)" oncontextmenu="return false" ondragstart="return false" onselectstart="return false" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<p><script language="JavaScript1.2">
/*
Scrollable Menu Links- By Dynamicdrive.com
For full source, TOS, and 100s DTHML scripts
Visit http://dynamicdrive.com
*/
//configure path for left and right arrows
var goleftimage='images/pointer2.gif'
var gorightimage='images/pointer.gif'
//configure menu width
var menuwidth=860
//configure scroll speed (1-10), where larger is faster
var scrollspeed=7
//specify meny content
var menucontents='<nobr><a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a>| <a href="http://www.builder.com">Builder.com</a> | <a href="http://freewarejava.com">Freewarejava.com</a></nobr>'
////NO NEED TO EDIT BELOW THIS LINE////////////
var actualwidth=''
var ns_scroll
function fillup(){
if (document.all){
test2.innerHTML=menucontents
actualwidth=test2.offsetWidth
}
else if (document.layers){
ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2
ns_scroll.document.write(menucontents)
ns_scroll.document.close()
actualwidth=ns_scroll.document.width
}
}
window.onload=fillup
function moveleft(){
if (document.all&&test2.style.pixelLeft>(menuwidth-actualwidth))
test2.style.pixelLeft-=scrollspeed
else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))
ns_scroll.left-=scrollspeed
lefttime=setTimeout("moveleft()",50)
}
function moveright(){
if (document.all&&test2.style.pixelLeft<0)
test2.style.pixelLeft+=scrollspeed
else if (document.layers&&ns_scroll.left<0)
ns_scroll.left+=scrollspeed
righttime=setTimeout("moveright()",50)
}
if (document.all||document.layers){
with (document){
write('<table border="0" cellspacing="0" cellpadding="0">')
write('<td valign="middle"><a href="#" onfocus="blur()" onMouseover="moveright()" onMouseout="clearTimeout(righttime)"><img src="'+goleftimage+'"border=0></a></td>')
write('<td valign="top">')
if (document.all){
write('<span style="position:relative;width:'+menuwidth+';">')
write('<span style="position:absolute;width:'+menuwidth+';clip:rect(0 '+menuwidth+' auto 0)">')
write('<span id="test2" style="position:absolute;left:0;top:7">')
write('</span></span></span>')
}
else if (document.layers){
write('<ilayer width='+menuwidth+' name="ns_scrollmenu">')
write('+ '+ '<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>')
}
write('</td>')
write('<td valign="middle"><a href="#" onfocus="blur()" onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)" style=cursor:hand>')
write('<img src="'+gorightimage+'"border=0></a>')
write('</td></table>')
}
}
</script></body>
</html>