<!---------------------------------------------------------------------------------------
▶ 기능: 클릭한 메뉴 고정하기
---------------------------------------------------------------------------------------->
<html>
<head>
<title>http://www.01code.com[ 클릭한 메뉴 고정하기 ]</title>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<link rel=stylesheet href="http://www.01code.com/ydhtml/01code.css" type=text/css>
<script language=javascript>
<!--
var FixPoint = ""; //고정된 메뉴 초기화
var muNum = 3; //메인 메뉴 개수
var imgDir = "http://www.01code.com/webedition/images/"; //이미지 경로
if(document.images)
{
mu_1_0_on = new Image(); mu_1_0_on.src = imgDir + "mu_1_0_on.gif"; mu_1_0_off = new Image(); mu_1_0_off.src = imgDir + "mu_1_0_off.gif";
mu_2_0_on = new Image(); mu_2_0_on.src = imgDir + "mu_2_0_on.gif"; mu_2_0_off = new Image(); mu_2_0_off.src = imgDir + "mu_2_0_off.gif";
mu_3_0_on = new Image(); mu_3_0_on.src = imgDir + "mu_3_0_on.gif"; mu_3_0_off = new Image(); mu_3_0_off.src = imgDir + "mu_3_0_off.gif";
}
function ImgOn(imgName){
if(document.images) document[imgName].src = eval(imgName + "_on.src");
}
function ImgOff(imgName)
{
if(document.images) document[imgName].src = eval(imgName + "_off.src");
}
function SetInit()
{
SetFix('');
}
function SetFix(SetPoint)
{
if(SetPoint != ""){ FixPoint = SetPoint; }
for(i=1; i<=muNum; i++){
var imgName = "mu_" + i + "_0";
if(FixPoint == imgName){ ImgOn(imgName); }else{ ImgOff(imgName); }
}
}
//-->
</script>
</head>
<body onLoad="SetFix('mu_1_0')">
<h4>[ 클릭한 메뉴 고정하기 ]</h4>
<a href="#" onfocus=blur() onMouseOver="ImgOn('mu_1_0');" onMouseOut="SetInit();" onClick="SetFix('mu_1_0')"><img border=0 name="mu_1_0" src="http://www.01code.com/webedition/images/mu_1_0_off.gif"></a>
<a href="#" onfocus=blur() onMouseOver="ImgOn('mu_2_0');" onMouseOut="SetInit();" onClick="SetFix('mu_2_0')"><img border=0 name="mu_2_0" src="http://www.01code.com/webedition/images/mu_2_0_off.gif"></a>
<a href="#" onfocus=blur() onMouseOver="ImgOn('mu_3_0');" onMouseOut="SetInit();" onClick="SetFix('mu_3_0')"><img border=0 name="mu_3_0" src="http://www.01code.com/webedition/images/mu_3_0_off.gif"></a>
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
▶ 기능: 클릭한 메뉴 고정하기
---------------------------------------------------------------------------------------->
<html>
<head>
<title>http://www.01code.com[ 클릭한 메뉴 고정하기 ]</title>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<link rel=stylesheet href="http://www.01code.com/ydhtml/01code.css" type=text/css>
<script language=javascript>
<!--
var FixPoint = ""; //고정된 메뉴 초기화
var muNum = 3; //메인 메뉴 개수
var imgDir = "http://www.01code.com/webedition/images/"; //이미지 경로
if(document.images)
{
mu_1_0_on = new Image(); mu_1_0_on.src = imgDir + "mu_1_0_on.gif"; mu_1_0_off = new Image(); mu_1_0_off.src = imgDir + "mu_1_0_off.gif";
mu_2_0_on = new Image(); mu_2_0_on.src = imgDir + "mu_2_0_on.gif"; mu_2_0_off = new Image(); mu_2_0_off.src = imgDir + "mu_2_0_off.gif";
mu_3_0_on = new Image(); mu_3_0_on.src = imgDir + "mu_3_0_on.gif"; mu_3_0_off = new Image(); mu_3_0_off.src = imgDir + "mu_3_0_off.gif";
}
function ImgOn(imgName){
if(document.images) document[imgName].src = eval(imgName + "_on.src");
}
function ImgOff(imgName)
{
if(document.images) document[imgName].src = eval(imgName + "_off.src");
}
function SetInit()
{
SetFix('');
}
function SetFix(SetPoint)
{
if(SetPoint != ""){ FixPoint = SetPoint; }
for(i=1; i<=muNum; i++){
var imgName = "mu_" + i + "_0";
if(FixPoint == imgName){ ImgOn(imgName); }else{ ImgOff(imgName); }
}
}
//-->
</script>
</head>
<body onLoad="SetFix('mu_1_0')">
<h4>[ 클릭한 메뉴 고정하기 ]</h4>
<a href="#" onfocus=blur() onMouseOver="ImgOn('mu_1_0');" onMouseOut="SetInit();" onClick="SetFix('mu_1_0')"><img border=0 name="mu_1_0" src="http://www.01code.com/webedition/images/mu_1_0_off.gif"></a>
<a href="#" onfocus=blur() onMouseOver="ImgOn('mu_2_0');" onMouseOut="SetInit();" onClick="SetFix('mu_2_0')"><img border=0 name="mu_2_0" src="http://www.01code.com/webedition/images/mu_2_0_off.gif"></a>
<a href="#" onfocus=blur() onMouseOver="ImgOn('mu_3_0');" onMouseOut="SetInit();" onClick="SetFix('mu_3_0')"><img border=0 name="mu_3_0" src="http://www.01code.com/webedition/images/mu_3_0_off.gif"></a>
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
댓글 1개
전쟁같은사랑
18년 전
질문요!!!
선택된 메뉴이미지를 두개 이상 보여주고자 할때는 어떻게 하나요?
짧게나마.. 바디에 로딩하는 이미지아이디를 하나더 추가하면 될꺼라 생각했는데.. 안되네요.
<body onLoad="SetFix('mu_1_0')"> <---------이 부분을
<body onLoad="SetFix('mu_1_0','mu_3_0')"> <---- 1번과 3번 이미지가 보여야 한다고 할때 이렇게 하면 된다고 생각했는데... 안되네요...
부탁드립니다... ㅠㅠ
선택된 메뉴이미지를 두개 이상 보여주고자 할때는 어떻게 하나요?
짧게나마.. 바디에 로딩하는 이미지아이디를 하나더 추가하면 될꺼라 생각했는데.. 안되네요.
<body onLoad="SetFix('mu_1_0')"> <---------이 부분을
<body onLoad="SetFix('mu_1_0','mu_3_0')"> <---- 1번과 3번 이미지가 보여야 한다고 할때 이렇게 하면 된다고 생각했는데... 안되네요...
부탁드립니다... ㅠㅠ
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2030 | 17년 전 | 2792 | ||
| 2029 | 17년 전 | 1601 | ||
| 2028 | 17년 전 | 1348 | ||
| 2027 | 17년 전 | 1608 | ||
| 2026 |
진정한승리
|
17년 전 | 2518 | |
| 2025 | 17년 전 | 1740 | ||
| 2024 | 17년 전 | 2017 | ||
| 2023 | 17년 전 | 1309 | ||
| 2022 |
SE7EN
|
17년 전 | 1044 | |
| 2021 | 17년 전 | 1126 | ||
| 2020 | 17년 전 | 2926 | ||
| 2019 | 17년 전 | 2467 | ||
| 2018 | 17년 전 | 2049 | ||
| 2017 | 17년 전 | 2050 | ||
| 2016 | 17년 전 | 1795 | ||
| 2015 | 17년 전 | 2250 | ||
| 2014 | 17년 전 | 2017 | ||
| 2013 | 17년 전 | 1985 | ||
| 2012 | 17년 전 | 1873 | ||
| 2011 | 17년 전 | 1213 | ||
| 2010 | 17년 전 | 1821 | ||
| 2009 | 17년 전 | 2227 | ||
| 2008 | 17년 전 | 2302 | ||
| 2007 | 17년 전 | 1641 | ||
| 2006 |
Arone
|
17년 전 | 1513 | |
| 2005 |
|
17년 전 | 1360 | |
| 2004 | 17년 전 | 2578 | ||
| 2003 |
suerte
|
17년 전 | 2676 | |
| 2002 |
suerte
|
17년 전 | 2081 | |
| 2001 |
suerte
|
17년 전 | 2420 | |
| 2000 |
|
17년 전 | 2725 | |
| 1999 |
|
17년 전 | 1329 | |
| 1998 |
|
17년 전 | 1191 | |
| 1997 | 17년 전 | 6329 | ||
| 1996 | 17년 전 | 1184 | ||
| 1995 | 17년 전 | 1631 | ||
| 1994 | 17년 전 | 1779 | ||
| 1993 | 17년 전 | 1105 | ||
| 1992 | 17년 전 | 1193 | ||
| 1991 | 17년 전 | 1891 | ||
| 1990 |
sdjsu
|
17년 전 | 1521 | |
| 1989 | 17년 전 | 3616 | ||
| 1988 |
smilesol
|
17년 전 | 1211 | |
| 1987 |
|
17년 전 | 1907 | |
| 1986 | 17년 전 | 1185 | ||
| 1985 | 17년 전 | 1394 | ||
| 1984 | 17년 전 | 2361 | ||
| 1983 | 17년 전 | 2025 | ||
| 1982 | 17년 전 | 1040 | ||
| 1981 | 17년 전 | 1041 | ||
| 1980 | 17년 전 | 1102 | ||
| 1979 |
오렌지76
|
17년 전 | 6045 | |
| 1978 |
오렌지76
|
17년 전 | 5846 | |
| 1977 | 17년 전 | 2038 | ||
| 1976 |
없어씨바라
|
17년 전 | 1029 | |
| 1975 | 17년 전 | 1119 | ||
| 1974 | 17년 전 | 2086 | ||
| 1973 | 17년 전 | 1518 | ||
| 1972 | 17년 전 | 1158 | ||
| 1971 |
smilesol
|
17년 전 | 1192 | |
| 1970 | 17년 전 | 1148 | ||
| 1969 |
smilesol
|
17년 전 | 1067 | |
| 1968 |
소행성블루
|
17년 전 | 3972 | |
| 1967 |
소행성블루
|
17년 전 | 2178 | |
| 1966 | 17년 전 | 1653 | ||
| 1965 |
소행성블루
|
17년 전 | 2777 | |
| 1964 |
고양Ol아빠
|
17년 전 | 1482 | |
| 1963 | 17년 전 | 1168 | ||
| 1962 | 17년 전 | 1186 | ||
| 1961 |
choijinhee
|
17년 전 | 1251 | |
| 1960 | 17년 전 | 1133 | ||
| 1959 | 17년 전 | 1253 | ||
| 1958 |
하이웹솔루션
|
17년 전 | 2406 | |
| 1957 | 17년 전 | 4194 | ||
| 1956 | 17년 전 | 1194 | ||
| 1955 | 17년 전 | 3952 | ||
| 1954 | 17년 전 | 4104 | ||
| 1953 | 17년 전 | 1236 | ||
| 1952 | 17년 전 | 2182 | ||
| 1951 | 17년 전 | 1621 | ||
| 1950 | 17년 전 | 3216 | ||
| 1949 | 17년 전 | 1361 | ||
| 1948 | 17년 전 | 3611 | ||
| 1947 | 17년 전 | 3404 | ||
| 1946 | 17년 전 | 2575 | ||
| 1945 | 17년 전 | 2938 | ||
| 1944 | 17년 전 | 2628 | ||
| 1943 | 17년 전 | 1947 | ||
| 1942 | 17년 전 | 3312 | ||
| 1941 | 17년 전 | 2625 | ||
| 1940 | 17년 전 | 3523 | ||
| 1939 |
|
17년 전 | 1159 | |
| 1938 | 17년 전 | 2247 | ||
| 1937 | 17년 전 | 1325 | ||
| 1936 |
smilesol
|
17년 전 | 1195 | |
| 1935 |
AHEEZII
|
17년 전 | 1057 | |
| 1934 |
smilesol
|
17년 전 | 1042 | |
| 1933 | 17년 전 | 1417 | ||
| 1932 | 17년 전 | 2859 | ||
| 1931 | 17년 전 | 3253 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기