http://oxtag.com/html/ex/mouse_over.html
<html>
<head>
<title>♡ 카멜롯™의 소스천국 태그피아 ♡</title>
</head>
<body>
<script>
/*
Scrolling Image Map/Text Link Tooltip Script-
?Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
if (!document.layers&&!document.all)
event="test"
function showtip2(current,e,text){
if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+text+'</marquee>'
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10
document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10
document.all.tooltip2.style.visibility="visible"
}
else if (document.layers){
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close()
document.tooltip2.document.nstip.left=0
currentscroll=setInterval("scrolltip()",100)
document.tooltip2.left=e.pageX+10
document.tooltip2.top=e.pageY+10
document.tooltip2.visibility="show"
}
}
function hidetip2(){
if (document.all)
document.all.tooltip2.style.visibility="hidden"
else if (document.layers){
clearInterval(currentscroll)
document.tooltip2.visibility="hidden"
}
}
function scrolltip(){
if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
document.tooltip2.document.nstip.left-=5
else
document.tooltip2.document.nstip.left=150
}
</script>
<div id="tooltip2" style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:lightyellow">
<layer name="nstip" width=1000px bgColor="lightyellow"></layer>
</div>
<a href=http://oxtag.com onMouseover="showtip2(this,event,'우리 모두 태그천국 태그피아로 가자!!!')" onMouseout="hidetip2()" target="_blank">"태그피아" 여기에 마우스를 올려보세요.</a>
</body>
</html>
'인터넷관련' 카테고리의 다른 글
text 타이핑 효과 - 글자 타이핑 (0) | 2008.01.24 |
---|---|
글이 스크롤 되면서 안개처럼 사라집니다/칼라변화/링크지원 (0) | 2008.01.24 |
글씨의 출렁이는 웨이브 효과 (0) | 2008.01.24 |
타이틀에 날짜 표시하기 - Date (0) | 2008.01.24 |
커서를 쫓아다니는 글씨 효과 (0) | 2008.01.24 |
마우스 커서를 맴도는 매직효과 (0) | 2008.01.24 |
마우스 커서를 맴도는 매직 효과 (0) | 2008.01.24 |
마우스 주위에 원을 그리는 매직 효과 (0) | 2008.01.24 |