웹마스터 팁

<html>
<head>
<meta http-equiv=Content-Type content='text/html;charset=korean'>
<meta http-equiv=Cache-Control content=No-Cache>
<meta http-equiv=Pragma content=No-Cache>
<title>뉴스티커</title>
<link href='+ 'default.css' rel='stylesheet' type='text/css'>
<script language="JavaScript" type="text/javascript">

// 메세지
var message=new Array()
message[0]="안녕하세요."
message[1]="이거 처음 보는데 신기 하지 않나요?"
message[2]="저두 신기해 하고 있음 ㅡㅡ"
message[3]="링크는 되려나"


// 메세지 링크
var messageurl=new Array()
messageurl[0]="123.html"
messageurl[1]="234.html"
messageurl[2]="456.html"
messageurl[3]="789.html"


// 링크 타깃
var messagetarget=new Array()
messagetarget[0]="_blank"
messagetarget[1]="_blank"
messagetarget[2]="_blank"
messagetarget[3]="_blank"
messagetarget[4]="_blank"

</script>
<script language='JavaScript' type='text/javascript' src='news_desolve.js'></script>
<!--# 센터 컨텐츠 그룹 시작 #-->
</head>                                                                                
<body STYLE='background-color:transparent' bgcolor='#FFFFFF' onload='initiate();'+ '>
<DIV ID="wavemessagebg" style="position:absolute;"></DIV>
<DIV ID="wavemessage" style="position:absolute; filter:wave()"></DIV>
</body>
</html>



2. default.css
.alimi                {color:#000000; font-size:12px; letter-spacing:0em}
.alimi:link                 {color:#000000; font-size:12px; text-decoration:none}
.alimi:visited        {color:#000000; font-size:12px; text-decoration:none}
.alimi:active         {color:#000000; font-size:12px; text-decoration:none}
.alimi:hover         {color:#000000; font-size:12px; text-decoration:underline}
.alimit                {color:#000000; font-size:12px; font-weight:bold}



3. news_desolve.js
// 글자크기
var fntsize=11

// 글자 색
var fntcolor="#6600ff"

// 글자 모양
var fntfamily="Verdana"

// 글자 두께 (1,0)
var fntweight=0

// 지연시간
var pause=3

// 왼쪽 여백
var posleft=0

// 위쪽 여백
var postop=0

var textcontent=""
var bgcontent=""
var i_message=0
var i_stepwave=0
var i_maxstepwave=5
pause=pause*1000
if (fntweight==1) {fntweight="700"}
else {fntweight="100"}

function initiate() {
    gettextcontent()
    if (document.all) {
                wavemessage.innerHTML=textcontent
                wavemessagebg.innerHTML=bgcontent
                wavemessagebg.style.posLeft=posleft
                wavemessagebg.style.posTop=postop
                enlargewave()
    }
    if (document.layers) {
                document.wavemessagebg.document.write(bgcontent)
        document.wavemessagebg.document.close()
                document.wavemessagebg.left=posleft
                document.wavemessagebg.top=postop
        changemessage()
    }
}

function enlargewave() {
    if (i_stepwave<=i_maxstepwave) {
            wavemessage.filters.wave.phase=i_stepwave
            wavemessage.filters.wave.strength=i_stepwave
        wavemessage.filters.wave.lightstrength=i_stepwave
            wavemessage.filters.wave.freq=i_stepwave
        i_stepwave++
            var timer=setTimeout("enlargewave()",50)
    }
    else {
        clearTimeout(timer)
        changemessage()
    }
}

function reducewave() {
    if (i_stepwave>0) {
            wavemessage.filters.wave.phase=i_stepwave
            wavemessage.filters.wave.strength=i_stepwave
            wavemessage.filters.wave.lightstrength=i_stepwave
            wavemessage.filters.wave.freq=i_stepwave
        i_stepwave--
            var timer=setTimeout("reducewave()",50)
    }
    else {
        clearTimeout(timer)
        var timer=setTimeout("enlargewave()",pause)
    }
}

function changemessage() {
    i_message++
    if (i_message>=message.length) {i_message=0}
    gettextcontent()

    if (document.all) {
        wavemessage.innerHTML=textcontent
        reducewave()
    }
    
    if (document.layers) {
        document.wavemessage.document.write(textcontent)
        document.wavemessage.document.close()
        var timer=setTimeout("changemessage()",pause)
    }
    
}

function gettextcontent() {
        textcontent="<a href="+messageurl[i_message]+" target="+messagetarget[i_message]+" class='alimi'>"
        textcontent+=message[i_message]+"</a>"
}



















던파이벤트 페이지에 있던건네;;
올만에 신기한게 있어서 소스좀 퍼왔습니다;
혹시 문제 있으심;;; 삭제 하겠쓈다 ㅎ