<blink> 태그 구현 > script

본문 바로가기
사이트 내 전체검색

script

<blink> 태그 구현

페이지 정보

작성자 서방님 댓글 0건 조회 165회 작성일 09-03-13 14:50

본문

<script language="javascript">
<!--
/*************************************************************************************
 * Blink 태그 구현 (오태정, 2009-03-13 오전 11:34)
*************************************************************************************/
window.onerror = null;

var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);

var blink_speed = 900; // 깜박임 빠르기 조절 (숫자가 낮을수록 빠름)
var i = 0;

if (NS4 || IE4)
{
 if (navigator.appName == "Netscape")
 {
  layerStyleRef = "layer.";
  layerRef = "document.layers";
  styleSwitch = "";
 }
 else
 {
  layerStyleRef = "layer.style.";
  layerRef = "document.all";
  styleSwitch = ".style";
 }
}

function Blink(layerName)
{
 if (NS4 || IE4)
 {
  if(i%2 == 0)
  {
   eval(layerRef + '["' + layerName + '"]' + styleSwitch + '.visibility="visible"');
  }
  else
  {
   eval(layerRef + '["' + layerName + '"]' + styleSwitch + '.visibility="hidden"');
  }
 }

 if(i < 1)
 {
  i++;
 }
 else
 {
  i--;
 }

 setTimeout("Blink('"+layerName+"')", blink_speed);
}


//-->
</script>

<style>
.OnAirBox { font-size:8pt; color:red; line-height:90%;}
</style>

<span id="OnAirBox" class="OnAirBox">오태정입니다.</span>

<script language="javascript">Blink("OnAirBox");</script>

댓글목록

등록된 댓글이 없습니다.

Total 846건 17 페이지
script 목록
번호 제목 글쓴이 조회 날짜
606 서방님 199 02-22
605 서방님 185 02-19
604 서방님 129 08-10
603
js 달력 댓글+ 2
서방님 77 08-10
602 서방님 116 08-10
601 서방님 153 07-29
600 서방님 128 07-21
599 서방님 203 07-06
598 서방님 115 06-04
597 서방님 198 05-28
596 서방님 101 04-20
595 서방님 177 04-15
594 서방님 198 04-10
열람중 서방님 166 03-13
592 서방님 158 03-10
게시물 검색

회원로그인

접속자집계

오늘
118
어제
225
최대
1,347
전체
154,877
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.