인터넷정보

날으는 창 (날 잡아봐~~~)

알 수 없는 사용자 2007. 10. 17. 13:37


http://oxtag.com/html/ex/flypopup.html

<html>

<head>

<STYLE type=text/css>.text {COLOR: black; FONT-FAMILY: 굴림; FONT-SIZE: 9pt; TEXT-DECORATION: none}
.text1 {COLOR: 8a2be2; FONT-FAMILY: 굴림; FONT-SIZE: 13pt; TEXT-DECORATION: none}
.text2 {COLOR: black; FONT-FAMILY: 굴림; FONT-SIZE: 9pt; TEXT-DECORATION: none}
.text3 {COLOR: blue; FONT-FAMILY: 굴림; FONT-SIZE: 25pt; LINE-HEIGHT: 13pt; TEXT-DECORATION: none}
TD {COLOR: black; FONT-FAMILY: 굴림; FONT-SIZE: 9pt; TEXT-DECORATION: none}
A:link {COLOR: blue; TEXT-DECORATION: none}
A:visited {COLOR: blue; TEXT-DECORATION: none}
A:hover {COLOR: red; TEXT-DECORATION: underline}
</STYLE>

<script language="javascript">
<!--
var xstart = 10;
var ystart = 10;
var xposition = 400;
var yposition = -100;

function xup(){
xstart = Math.ceil(5*Math.random());
}

function xdn(){
xstart = Math.ceil(0-5*Math.random());
}

function yup(){
ystart = Math.ceil(5*Math.random());
}

function ydn(){
ystart = Math.ceil(-5*Math.random());
}

function ihot(){
xposition += xstart ;
yposition += ystart ;
if(xposition > 600){
xdn();
}
if(xposition < -100){
xup();
}
if(yposition > 500){
ydn();
}
if(yposition < -100){
yup();
}
window.moveTo(xposition, yposition);
setTimeout("ihot()", 10);
}
//-->
</script>

</head>

<body bgcolor=black topmargin=3 text=black onload="ihot()">


<center><img src="../img/angel.gif"></center>


</body>
</html>

반응형