본문 바로가기

javascript

텍스트 인삿말이 왼쪽에서 날아와 안착합니다

지정된 문자열이 기울어진채 날아와 자리를 잡는듯한 스크립트 입니다.
첫페이지에 사용하면 좋을 듯한 효과입니다

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Script </title>
<meta http-equiv=content-type content=text/html; charset=euc-kr>
</head>

<body>

<!---- [1단계] 아래와 같은 방법으로 태그와 코드를 복사 해 넣으세요 --->

<script>
if (document.layers)
var ns4def=''
</script>

<!---- [2단계] 아래와 같은 방법으로 스타일과 문구를 변경해 넣으세요 --->

<h2 id="flyin" style="position:relative;left:-400;font-style:italic;color:deepskyblue" style=&{ns4def};><font face="Arial">Welcome to JASKO!</font></h2>

<script language="JavaScript1.2">
if (document.getElementById||document.all)
var crossheader=document.getElementById? document.getElementById("flyin").style : document.all.flyin.style

function animatein(){
if (parseInt(crossheader.left)<0)
crossheader.left=parseInt(crossheader.left)+20
else{
crossheader.left=0
crossheader.fontStyle="normal"
clearInterval(start)
}
}

if (document.getElementById||document.all)
start=setInterval("animatein()",50)
</script>

<!-------------- 여기까지 ---------------->

</body>
</html>