본문 바로가기

Web/Javascript

테두리 발광

<html>
<head>
<title>테두리깜박깜박</title>
</head>
<script>
function c(){
if (!document.all)
return
if (pe.style.borderColor=="green")
pe.style.borderColor="red"
else
pe.style.borderColor="green"
}
function d(){
if (!document.all)
return
if (window.status=="빨강")
window.status="녹색"
else
window.status="빨강"
}
setInterval("d()", 500)
setInterval("c()", 500)
</script>
<body id="pe" style="border:4px solid green">
</body>
</html>

'Web > Javascript' 카테고리의 다른 글

폭죽처럼 터지는 글자  (0) 2013.09.26
다른이름 저장  (0) 2013.09.26
하단 고정으로 top 버튼 따라 다니기  (0) 2013.09.26
리프레쉬  (0) 2013.09.26
마우스 위치값 으로 페이지 상하이동  (0) 2013.09.26