웹마스터 팁
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
제목 | 글쓴이 | 날짜 |
---|---|---|
상태바에 시계띄우기.. 허접제작; | 홍윤식 | 2002.07.29 |
개판 오분전 넷 오디오 최종 수정판
[6]
![]() | 미친개 | 2002.07.28 |
넷 오디오 업그레이드 0.95 | 미친개 | 2002.07.25 |
개판 오분전 넷 오디오 v 0.9 [2] | 미친개 | 2002.07.22 |
간단한 BGM 스크립트
[7]
![]() | ZipShin | 2002.07.21 |
창틀 엄는 윈도우 개판 오분전 버전.........ㅡ,.ㅡ [11] | 미친개 | 2002.07.20 |
[BGM]♬가상프레임에서 배경음악 켜고끄는 버튼 만들기 ^^; [10] | abulo | 2002.07.19 |
input 태그에 포커스 맞추기..
[5]
![]() | ZipShin | 2002.07.18 |
업그레이드 태그 연습장 [6] | 미친개 | 2002.07.18 |
16777216 -- ??? | 미친개 | 2002.07.18 |
폼의 입력 값의 공백 및 자릿 수 검사 코드 [1] | Technician | 2002.07.17 |
사용자가 입력한 키 알아내기(KeyCode) [4] | ZipShin | 2002.07.16 |
인터넷익스플로러 타이틀바에 제목나타내기 [3] | ZipShin | 2002.07.12 |
해상도가 몇인지를 구해주는 스크립트 [3] | ZipShin | 2002.07.07 |
원하는 홈페이지를 시작페이지 설정하기!!!! [3] | 오길호 | 2002.07.05 |
제목이 계속 바뀝니다. [1] | 행복=진만 | 2002.07.03 |
간단한 쿠키 &세션 확인용 | M2Vis | 2002.07.01 |
input버튼으로 뒤로가기 앞으로 가기 만들어보자~~ [1] | ZipShin | 2002.06.26 |
자바스크립트로 메타태그 리프레쉬 효과를 보여주자. [5] | ZipShin | 2002.06.26 |
순수 자바스크립트로 작성된 계산기... [2] | 용가리 | 2002.06.22 |