<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>
댓글목록
등록된 댓글이 없습니다.