웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
[초간단 자바스크립트!] 튀어나오는 글자..-_-;;
2004.01.18 13:45
//이거 호러 홈페이지에서 보고 엄청 놀랐다는,,
Enter라고 써졌던데... 마우스 올리니까, 소리하고
글자 막 튀어나오니까. .-_-;; 많이 놀랬다는...;;//
<SCRIPT>
var x,y
var timer
var i_fontsize=0
var step=0
var thisx,thisy
function handlerMM(e){
x = (document.layers) ? e.pageX : event.clientX
y = (document.layers) ? e.pageY : event.clientY
}
function ringup() {
if (document.all) {
thisx = x
thisy = y
ringup2()
}
}
function ringup2() {
if (i_fontsize<=1530) {
document.all.ring.style.fontSize=i_fontsize
document.all.ring.style.color="rgb(255,"+Math.floor(i_fontsize/6)+","+Math.floor(i_fontsize/6)+")"
document.all.ring.style.posLeft=thisx-(Math.floor(i_fontsize/3))
document.all.ring.style.posTop=thisy-(Math.floor(i_fontsize/1.4))
step+=4
i_fontsize+=step
timer=setTimeout("ringup(2)",50)
}
else {
clearTimeout(timer)
i_fontsize=0
step=0
document.all.ring.style.posTop=-10000
}
}
document.onmousemove = handlerMM;
</SCRIPT>
<STYLE>
.ringstyle { POSITION: absolute; TOP: -50px; VISIBILITY: visible }
.explain {POSITION: absolute; TEXT-ALIGN: center; TOP: 80px; WIDTH: 300px} //링크 위치
A { }
A:visited { }
</STYLE>
<DIV class=ringstyle id=ring><font color="#56B0FF">Hellow</font></DIV>
<DIV class=explain id=redirection>
<A href="#" onmouseover=ringup()>링크문구</A></DIV>
//후후.. 호러 홈페이지 만드는 분들을 위해서 올립니다...^^
좀 허접티가 나더라도 봐주시기를...//
Enter라고 써졌던데... 마우스 올리니까, 소리하고
글자 막 튀어나오니까. .-_-;; 많이 놀랬다는...;;//
<SCRIPT>
var x,y
var timer
var i_fontsize=0
var step=0
var thisx,thisy
function handlerMM(e){
x = (document.layers) ? e.pageX : event.clientX
y = (document.layers) ? e.pageY : event.clientY
}
function ringup() {
if (document.all) {
thisx = x
thisy = y
ringup2()
}
}
function ringup2() {
if (i_fontsize<=1530) {
document.all.ring.style.fontSize=i_fontsize
document.all.ring.style.color="rgb(255,"+Math.floor(i_fontsize/6)+","+Math.floor(i_fontsize/6)+")"
document.all.ring.style.posLeft=thisx-(Math.floor(i_fontsize/3))
document.all.ring.style.posTop=thisy-(Math.floor(i_fontsize/1.4))
step+=4
i_fontsize+=step
timer=setTimeout("ringup(2)",50)
}
else {
clearTimeout(timer)
i_fontsize=0
step=0
document.all.ring.style.posTop=-10000
}
}
document.onmousemove = handlerMM;
</SCRIPT>
<STYLE>
.ringstyle { POSITION: absolute; TOP: -50px; VISIBILITY: visible }
.explain {POSITION: absolute; TEXT-ALIGN: center; TOP: 80px; WIDTH: 300px} //링크 위치
A { }
A:visited { }
</STYLE>
<DIV class=ringstyle id=ring><font color="#56B0FF">Hellow</font></DIV>
<DIV class=explain id=redirection>
<A href="#" onmouseover=ringup()>링크문구</A></DIV>
//후후.. 호러 홈페이지 만드는 분들을 위해서 올립니다...^^
좀 허접티가 나더라도 봐주시기를...//
댓글 0
제목 | 글쓴이 | 날짜 |
---|---|---|
프비에서 apache2 쓰실때 참고하세요. [2] | _a_SPD_a_ | 2002.05.29 |
BIND - DoS Vulnerability [1] | 야쿠자 | 2002.06.07 |
하드디스크의 모든성능을 써버리자! [4] | 임현 | 2002.06.14 |
리눅스에서 최강 p2p 공유프로그램 당나귀!! 서버를 운영해보도록하자~ [7] | 임현 | 2002.06.15 |
한 통 내장형 모뎀으로 인터넷하기.. [1] | i- | 2002.06.19 |
간단팁 서버 Info! [4] | 임현 | 2002.06.21 |
Mysql 데이타베이스 백업및 복구(1)... [7] | 이휘은 | 2002.06.21 |
Mysql 데이타베이스 백업및 복구(2)... [5] | 이휘은 | 2002.06.22 |
특정 파일(ex: mp3,avi,mpg)만 찾아서 자동으로 삭제하기! | 임현 | 2002.06.27 |
[보안] 아파치 1.3.x 공격툴 공개되다...06/24 [4] | 차카게살자 | 2002.06.28 |
제로보드 data 폴더 일괄적으로 소유권 변경 스크립트 [2] | 라지엘 | 2002.07.01 |
[펌] 후다닥 apache 랑 php 업글하기 [8] | 임현 | 2002.07.12 |
ASP + MS SQL 기반 게시판 설치하기 - 첫번째 | 오픈소스 | 2002.07.12 |
ASP + MS SQL 기반 게시판 설치하기 - 두번째 | 오픈소스 | 2002.07.12 |
[mysql] load data - 파일을 테이블에 넣기 [1] | 불티나 | 2002.07.26 |
[mysql] create table select , insert into select | 불티나 | 2002.07.26 |
오랜만에 올리는 팁이군요. - 웹호스팅 쉽게해보기! - [8] | 임현 | 2002.07.28 |
솔라리스와 리눅스의 chmod 다른점 [1] | 한꼬마 | 2002.07.31 |
http://도메인/~아이디 를 http://도메인/아이디 로 ^^ [11] | 임현 | 2002.07.31 |
IIS 해당 IP를 제외한 모든 컴퓨터 접근 금지시키기 [1] | 오픈소스 | 2002.08.04 |