자동으로 이미지가 넘어감

자동으로 이미지가 넘어감
<HTML>
<HEAD>
<TITLE>가자 자바스크립트 세상으로/애플릿에서만 보던건디...</TITLE>


<script LANGUAGE="JavaScript1.1">
<!-- Beginning of JavaScript -

bild1 = new Image()
bild1.src = "../images/salma309.gif"

bild2 = new Image()
bild2.src = "../images/cameron.gif"

bild3 = new Image()
bild3.src = "../images/zeta309.gif"

messages = new Array()
messages[0] = "<a href=http://www.ecell.co.kr><img src=a.gif border=0></a>"
messages[1] = "<a href=http://www.naver.com><img src=b.gif border=0></a>"
messages[2] = "<a href=http://daum.net><img src=c.gif border=0></a>"

var i_messages = 0
var timer

function dotransition() {
    if (document.all) {
        content.filters[0].apply()
        content.innerHTML = messages[i_messages]
        content.filters[0].play()
        if (i_messages >= messages.length-1) {
            i_messages = 0
        }
        else {
            i_messages++
        }
    }
    
    if (document.layers) {
       document.nn.document.write("<table cellspacing=2 cellpadding=2 border=0><tr><td align=left>"+messages[i_messages]+"</td></tr></table>")
                document.close()
        if (i_messages >= messages.length-1) {
            i_messages = 0
        }
        else {
            i_messages++
        }
    }
    timer = setTimeout("dotransition()",5000)  
}
// - End of JavaScript - -->
</script>

</HEAD>

<BODY BGCOLOR="#000080" onload="dotransition()">

<DIV id=content style="position: absolute; top:10px; left:20px; width:560px; height:200px; text-align:center; filter: revealTrans(Transition=6, Duration=3)"> </DIV>

<DIV id=nn style="position:absolute;top:10px;left:170px"></DIV>



</BODY>
</HTML>