테스트 사이트 - 개발 중인 베타 버전입니다

똑같은 메뉴 클릭시 그룹마다 다른 페이지 가게하는 방법 채택완료

coolmood 11년 전 조회 4,605

똑같은 메뉴 클릭시 그룹마다 다른 페이지 가게하는 방법 좀 알려주세요~~

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
11년 전
<div><span style="font-size: 10pt; line-height: 1.5"><script></span></div>
<div>function goPage(group){<span style="font-size: 10pt; line-height: 1.5"></span></div>
<div><span style="font-size: 10pt; line-height: 1.5"><span class="Apple-tab-span" style="white-space: pre">	</span>if(</span>group<span style="font-size: 10pt; line-height: 1.5">=="a")</span><span style="font-size: 10pt; line-height: 1.5"> document.location.href='naver.com';</span></div>
<div><span style="font-size: 10pt; line-height: 1.5"><span class="Apple-tab-span" style="white-space: pre">	</span>if(</span>group<span style="font-size: 10pt; line-height: 1.5">=="b")</span><span style="font-size: 10pt; line-height: 1.5"> document.location.href='daum.net';</span></div>
<div><span style="font-size: 10pt; line-height: 1.5"><span class="Apple-tab-span" style="white-space: pre">	</span>if(</span>group<span style="font-size: 10pt; line-height: 1.5">=="c")</span><span style="font-size: 10pt; line-height: 1.5"> document.location.href='nate.com';</span></div>
<div>}</div>
<div><span style="font-size: 10pt; line-height: 1.5"></script></span></div>
<div><span style="font-size: 10pt; line-height: 1.5">
</span></div>
<div><a href="#GOPAGE<span style="font-size: 10pt; line-height: 1.5">" onClick="</span><span style="font-size: 10pt; line-height: 1.5">javascript: goPage('그룹변수');"> 메뉴 </a></span></div>
<div><div>
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

7년 전

많은 도움이 되었습니다. 감사합니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인