怎样编写IE和NN6通用的闪烁(blank)效果?

<script type="text/javascript"><!-- google_ad_client = "pub-2947489232296736"; /* 728x15, 创建于 08-4-23MSDN */ google_ad_slot = "3624277373"; google_ad_width = 728; google_ad_height = 15; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<script type="text/javascript"><!-- google_ad_client = "pub-2947489232296736"; /* 160x600, 创建于 08-4-23MSDN */ google_ad_slot = "4367022601"; google_ad_width = 160; google_ad_height = 600; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

blank>怎样编写blank>IE和blank>NN6通用的blank>闪烁(blank)效果

作者:http://lucky.myrice.com
E-mail:amxh@21cn.com


blank href="http://lucky.myrice.com/">   根据Nascape 6的开发者称:在以后的版本里,将废除<blank></blank>标记。那么,下面的代码可以实现此功能!

<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="author" content="孟宪会">
<SCRIPT>
function blink (elId) {
  var html = '';
  if (document.all)
    html += 'var el = document.all.' + elId + ';';
  else if (document.getElementById)
    html += 'var el = document.getElementById("' + elId + '");';
  html +=
    'el.style.visibility = ' +
    'el.style.visibility == "hidden" ? "visible" : "hidden"';
  if (document.all || document.getElementById)
    setInterval(html, 500)
}
function init () {
  blink('aText');
  blink('a2ndText');
}
</SCRIPT>
</HEAD>
<BODY ONLOAD="init();">
<SPAN ID="aText">
<BLINK>
这行文字blank>闪烁!!!
</BLINK>
</SPAN>
<BR>
文字blank>闪烁例子!!!
<DIV ID="a2ndText">
这行文字blank>闪烁!!!
</DIV>
</BODY>
</HTML>
查看更多内容,请访问,可以看到变色的blank>闪烁!

http://elove.heha.net  

http://lucky.myrice.com

<script type="text/javascript"><!-- google_ad_client = "pub-2947489232296736"; /* 728x15, 创建于 08-4-23MSDN */ google_ad_slot = "3624277373"; google_ad_width = 728; google_ad_height = 15; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<script type="text/javascript"><!-- google_ad_client = "pub-2947489232296736"; /* 160x600, 创建于 08-4-23MSDN */ google_ad_slot = "4367022601"; google_ad_width = 160; google_ad_height = 600; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
阅读更多
文章标签: ie html function div
个人分类: javascript delphi
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭