<SCRIPT language="JavaScript1.2">
<!--
/*
Cursor scroller script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/
//1) set message to display
var scroller_msg='태그피아에 오신걸 환영합니다. 즐거운 시간되세요!!!'
//2) set whether message should auto disappear after x seconds (0=perpetual).
//Note that double clicking page will also dismiss message
var dismissafter=0
var initialvisible=0
if (document.all)
document.write('<marquee id="curscroll" style="position:absolute;width:150px;border:1px solid black;font-size:14px;background-color:orange;visibility:hidden">'+scroller_msg+'</marquee>')
function followcursor(){
//move cursor function for IE
if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}
curscroll.style.left=document.body.scrollLeft+event.clientX+10
curscroll.style.top=document.body.scrollTop+event.clientY+10
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}
//-->
</SCRIPT>
<!--
/*
Cursor scroller script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/
//1) set message to display
var scroller_msg='태그피아에 오신걸 환영합니다. 즐거운 시간되세요!!!'
//2) set whether message should auto disappear after x seconds (0=perpetual).
//Note that double clicking page will also dismiss message
var dismissafter=0
var initialvisible=0
if (document.all)
document.write('<marquee id="curscroll" style="position:absolute;width:150px;border:1px solid black;font-size:14px;background-color:orange;visibility:hidden">'+scroller_msg+'</marquee>')
function followcursor(){
//move cursor function for IE
if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}
curscroll.style.left=document.body.scrollLeft+event.clientX+10
curscroll.style.top=document.body.scrollTop+event.clientY+10
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}
//-->
</SCRIPT>
반응형
'인터넷정보' 카테고리의 다른 글
| 마우스 주위에 원을 그리는 매직 효과 (0) | 2007.10.17 |
|---|---|
| 이미지 물결 효과 (0) | 2007.10.17 |
| 이미지 물결 효과 (0) | 2007.10.17 |
| 좌측에서 위 아래로 흐르는 이미지와 문자/링크지원 (0) | 2007.10.17 |
| 좌측에서 위 아래로 흐르는 이미지와 문자/링크지원 (0) | 2007.10.17 |
| 마우스 커서에 스크롤되는 문자가 쫓아다님 (0) | 2007.10.17 |
| text 타이핑 효과 (0) | 2007.10.17 |
| text 타이핑 효과 (0) | 2007.10.17 |
| 원하는 글이 좌측으로 흐르는 텍스트로 링크지원(body)에 삽입 (0) | 2007.10.17 |
| 원하는 글이 좌측으로 흐르는 텍스트로 링크지원(body)에 삽입 (0) | 2007.10.17 |