마

메뉴 네비 레이어 서서히 없어지는거

· 2014-04-10 (목) 18:05:13 · 4067
<script language="javascript">
var iDelay = 750 // 지연시간
var sDisplayTimer = null, oLastItem
function showDetails(sDest) {
 if (document.getElementById!=null) {
  stopTimer()
  dest = document.all[sDest]
  if ((oLastItem!=null) && (oLastItem!=dest))
   hideItem()
  if (dest) {
   dest.style.visibility = "visible"
  }
  oLastItem = dest
 }
}
function stopTimer() {
 clearTimeout(sDisplayTimer)
}
function startTimer(el) {
  stopTimer()
  sDisplayTimer = setTimeout("hideItem()",iDelay)
}
function hideItem() {
 if (oLastItem)
  oLastItem.style.visibility="hidden"
}
function checkOver() {
 if ((oLastItem) && (oLastItem==event.target)) {
  stopTimer()
 }
}
function checkOut() {
 if (oLastItem==event.target)
  startTimer(event.target)
}
document.onmouseover = checkOver
document.onmouseout = checkOut
</script>
<td onmouseout="topmenu1.src='/images/topmenu_01.gif';startTimer(this)" onmouseover="showDetails('submenu_1');topmenu1.src='/images/topmenur_01.gif'"><a href="/product/list.asp" alt="제품전체보기"><img src="/images/topmenu_01.gif" name="topmenu1"></a></td>
자바스크립트 메뉴레이어 입니다..
다른곳에서 소스를 퍼와서..  브라우져 호환성에 맞춰서 약간 손을 보았습니다..
http://www.cube333.co.kr   이사이트 상단 메뉴에 사용했던 메뉴레이어입니다.
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
기타 14-05-13 조회 8,976
웹서버 14-05-13 조회 4,341
jQuery 14-05-11 조회 3,562
jQuery 14-05-11 조회 3,863
jQuery 14-05-11 조회 4,149
JavaScript 14-05-11 조회 4,288
MySQL 14-05-09 조회 3,457
JavaScript 14-05-09 조회 4,531
JavaScript 14-05-09 조회 1.1만
jQuery 14-05-09 조회 2만
기타 14-05-08 조회 5,005
기타 14-05-05 조회 1.2만
jQuery 14-05-01 조회 4,968
JavaScript 14-04-30 조회 3,599
PHP 14-04-30 조회 1.6만
기타 14-04-29 조회 2,828
PHP 14-04-27 조회 4,041
PHP 14-04-26 조회 4,268
JavaScript 14-04-25 조회 4,446
기타 14-04-25 조회 8,883
MySQL 14-04-22 조회 4,220
JavaScript 14-04-21 조회 2,828
JavaScript 14-04-21 조회 4,957
MySQL 14-04-16 조회 5,524
웹서버 14-04-16 조회 3,100
PHP 14-04-13 조회 5,732
PHP 14-04-13 조회 3,860
JavaScript 14-04-10 조회 4,068
기타 14-04-07 조회 4,627
JavaScript 14-04-01 조회 6,374