메뉴 네비 레이어 서서히 없어지는거
<script language="javascript">
var iDelay = 750 // 지연시간
var sDisplayTimer = null, oLastItem
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
}
}
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)
}
clearTimeout(sDisplayTimer)
}
function startTimer(el) {
stopTimer()
sDisplayTimer = setTimeout("hideItem()",iDelay)
}
stopTimer()
sDisplayTimer = setTimeout("hideItem()",iDelay)
}
function hideItem() {
if (oLastItem)
oLastItem.style.visibility="hidden"
}
if (oLastItem)
oLastItem.style.visibility="hidden"
}
function checkOver() {
if ((oLastItem) && (oLastItem==event.target)) {
stopTimer()
}
}
if ((oLastItem) && (oLastItem==event.target)) {
stopTimer()
}
}
function checkOut() {
if (oLastItem==event.target)
startTimer(event.target)
}
if (oLastItem==event.target)
startTimer(event.target)
}
document.onmouseover = checkOver
document.onmouseout = checkOut
</script>
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 이사이트 상단 메뉴에 사용했던 메뉴레이어입니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 11348 |
정규표현식
정규식 표현법
|
| 11346 |
웹서버
리눅스 기본 명령어
1
|
| 11345 |
jQuery
ajax 예제 입니다.
|
| 11336 |
jQuery
jQuery Performance
8
|
| 11332 |
jQuery
jQuery Event - 이벤트에 생명을~
3
|
| 11329 |
jQuery
jQuery Event - bind() 메서드
2
|
| 11326 |
jQuery
jQuery Event - 이벤트 지원 메서드
2
|
| 11324 | |
| 11323 | |
| 11321 | |
| 11320 |
jQuery
jQuery Core
|
| 11319 | |
| 11318 |
jQuery
jQuery Traverse - Filtering
|
| 11317 | |
| 11316 | |
| 11315 | |
| 11314 | |
| 11313 | |
| 11312 | |
| 11311 | |
| 11310 | |
| 11308 | |
| 11304 |
JavaScript
주소표시
3
|
| 20200 |
CSS
CSS 자료 링크
4
|
| 11300 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기