웹모아
웹모아[가입] 로그인 / 회원가입   검색     


  
제어권이동
 

플래쉬 효과가 나는 하이퍼링크 텍스트 스크립트
2007-06-15 14:02:42 댓글:(0)   조회:3593
 


<SCRIPT>
<!--
var x,y
var timer
var i_fadestrength=5
var step=1
var maxfontsize=180
var fontsizefactor=maxfontsize/100
var content

function cursorposition(e){
        x=event.clientX+document.body.scrollLeft
        y=event.clientY+document.body.scrollTop
}

function showmessage(whatmessage, whatfont, whatcolor) {
        if (document.all) {
                content="<nobr><font color="+whatcolor+" face="+whatfont+">"+whatmessage+"</font><nobr>"
                ring.innerHTML=content
                resizemessage()
        }
}

function resizemessage() {
if (document.all) {
        ring.filters.alpha.opacity=Math.floor(100-i_fadestrength)
        if (i_fadestrength>=120) {i_fadestrength=0;step=1}
        document.all.ring.style.visibility="visible"
        document.all.ring.style.fontSize=i_fadestrength*fontsizefactor
        document.all.ring.style.posLeft=x-(Math.floor(i_fadestrength/1.3*fontsizefactor))
        document.all.ring.style.posTop=y-(Math.floor(i_fadestrength/1.4*fontsizefactor))        
        step+=1.5
        i_fadestrength+=step
        timer=setTimeout("resizemessage()",50)
}
}

function hidemessage(e){
if (document.all) {
        clearTimeout(timer)
        document.all.ring.style.visibility="hidden"
        i_fadestrength=5
        step=1
}
}

if (document.all) {
        document.onmousemove=cursorposition;
}

if (document.all) {
        document.write("<DIV id='ring' style='position:absolute;font-family:Verdana;filter:alpha(opacity=0);'></DIV>")
        document.write("<DIV style='position:relative;'>")
}
//-->
</SCRIPT>

<CENTER><a href="http://www.mybizs.com" onMouseOver="showmessage('HELLO','Arial black','red')" onMouseOut="hidemessage()">이곳은 어디일까요</a> 

<a href="http://www.mybizs.com" onMouseOver="showmessage('메롱','굴림','FF0000')" onMouseOut="hidemessage()">그럼, 요기는요?</a> 
</CENTER>

. 


[이전글]  PHP 리다이렉션(페이지 이동)의 3가지 방법
[다음글]  폼 내용 전송전 확인 메세지 띄우기


 
댓글쓰기는 회원(로그인 하신분) 이상 가능합니다.


 댓글 (0)

  
제어권이동
페이지: 1 / 4   

 location.href 와 location.replace()
열람:6694   2017.02.07


 자바스크립트 새로고침 종류
열람:4290   2012.09.25


 자바스크립트 타겟지정
열람:4268   2012.09.25


 책갈피 만들기
열람:4036   2009.01.28


 페이지 제어권을 특정 url로 이동시키기
열람:3169   2008.12.19


 뒤로가기
(랜드모아) 댓글:(1) 열람:4045   2007.10.01


 iframe 에서 부모창 제어하기
열람:5881   2007.09.03


   [RE] iframe에서 부모창 reload 시키기
열람:5065   2007.09.03


 PHP 리다이렉션(페이지 이동)의 3가지 방법
(홈마스타) 열람:3925   2007.07.01


   [RE] PHP 리다이렉션(페이지 이동)의 3가지 방법
(홈마스타) 열람:3778   2007.07.01



[1]  [2]  [3]  [4]  

복수단어 검색은 공백(space)로 구분해 주세요.




 
최근 글 [손님]
 
인기 글 [손님]
[홈마스타] 운전면허 취득절차
[홈마스타] 실습-테이블구조변경