웹마스터 팁
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
제목 | 글쓴이 | 날짜 |
---|---|---|
페이지 내에 주소창 달기 [1] | piasol | 2004.02.09 |
앞,뒤,새로고침 만들기 [2] | piasol | 2004.02.01 |
[초간단 자바스크립트!] 자바로 홈페이지를부드럽게!!(1) [4] | ∑Ztxy | 2004.01.27 |
[초간단 자바스크립트!] 자바로 로그인폼 만들기 [3] | ∑Ztxy | 2004.01.26 |
[초간단 자바스크립트!] 튀어나오는 글자..-_-;; | ∑Ztxy | 2004.01.18 |
Thinking In Java 2nd Edition
![]() | n25 | 2004.01.14 |
[초간단 자바스크립트!] 홈페이지접속 시간,날짜 표시기 [3] | ∑Ztxy | 2004.01.09 |
들어갈때 시작페이지 설정하는거... [2] | 쉿!비밀 | 2003.12.17 |
오른버튼 누를때 메뉴 뜨게하기(깔끔버전)
[5]
![]() | 럽 | 2003.12.09 |
익스플로러에서 인쇄 누르면 페이지 이동.... [3] | 조한웅 | 2003.11.28 |
팝업공지창 다시 안뜨게 하는 소스[날짜지정가능] [17] | lemin | 2003.11.20 |
심플한 원단위를 콤마로 나타내주기 [2] | zentoo.com | 2003.11.11 |
정말 멋있는 글자 변환 스크립트 [12] | sythesis | 2003.11.07 |
마우스 이벤트 발생시 문서 상,하단으로 이동 [3] | RedEye(kaist) | 2003.10.30 |
클릭하면 홈페이지를 시작페이지로 하는 소스... [7] | 젤군 | 2003.10.28 |
[초간단 자바스크립트!] 날짜 카운터! 커플홈에 강추!! [15] | ∑Ztxy | 2003.10.08 |
[초간단 자바스크립트!] 홈페이지에 FTP 폼 넣기?! [10] | ∑Ztxy | 2003.09.29 |
플레쉬 메뉴를 표방한..=ㅁ= 자바스크립트의 수작 버튼 밑으로 스크롤 되는 아이콘입니다. [47] | beMax | 2003.09.14 |
frame으로 홈페이지 구성시 한쪽 페이지는 유동성있는 파일 대입법(?) | monozzang | 2003.09.02 |
경우에 따라 공지가 새창에서도 보여야 하고, 일반 페이지에서도 보여야 할때 | 조은하루 | 2003.08.22 |