设为首页 加入收藏
当前位置:首页 > 整站内容 > 特效代码 > 状态栏特效 > 详细内容
状态栏文字分解出现
发布时间:2010-3-28  阅读次数:8334  字体大小: 【】 【】【

<html>
<head>
<title>网页特效|Linkweb.cn/Js|---状态栏文字分解出现</title>
<style type="text/css">
<!--
body {   font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px}
A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }
  A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active         { font: 9pt "宋体"; cursor: hand; color: #FF0033 }

-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="JavaScript">

<!-- hide from old browsers


var str=""
var direction="left"

function createArray(n)
{
       for (var i = 0; i < n; i++) {this[i] = 0}
       return this
}

var js_mult1=3141
var js_mult2=5821
var js_m1=100000000
var js_m2=10000
var js_iseed=0
var js_iseed1=0
var js_iseed2=0


function random(n)
{
       if (js_iseed == 0)
       {
               now = new Date()
               js_iseed = now.getHours() + now.getMinutes() * 60
                                       + now.getSeconds() * 3600
       }
       js_iseed1 = js_iseed / js_m2
       js_iseed2 = js_iseed % js_m2
       var tmp = (((js_iseed2 * js_mult1 + js_iseed1 * js_mult2) % js_m2) *
                               js_m2 + (js_iseed2 * js_mult2)) % js_m1
       js_iseed = (tmp + 1) % js_m1
       return (Math.floor((js_iseed/js_m1) * n))
}

  

msgArray = createArray(5)
msgArray[0] = "欢迎你的光临,网页特效站欢迎你"
msgArray[1] = "你一定会有更多收获的"
msgArray[2] = "记得要经常来呀,网页特效站欢迎你"
msgArray[3] = "你可以给我写信,网页特效站欢迎你"
msgArray[4] = "有空记得常常点击"

msg = ""
dmsg = ""


function doMessage()
{
       if (msg == dmsg) // reset and delay
       {
              
               msg = msgArray[random(5)]
              
              
               dmsg = ""
               for (var ii = 0; ii < msg.length; ii++) dmsg += " "
              
              
               JSCTimeOutID = window.setTimeout('doMessage()',100)
               return true
       }
      
       // pick a character
       var ii = random(msg.length)
      
    
       var astr = dmsg.substring(0, ii)
       var bstr = msg.substring(ii, ii+1)
       var cstr = dmsg.substring(ii+1, dmsg.length)
      
    
       dmsg = astr+bstr+cstr
       window.status = dmsg
      
      
       JSCTimeOutID = window.setTimeout('doMessage()',50)
      
    
       return true
}

<!-- done hiding -->

</SCRIPT>
</head>

<body onload="JSCTimeOutID = window.setTimeout('doMessage()',500);">
<br>
<br>
<center><font color=red face="隶书" size=6>文字分解出现</font></center>
<br>
<center>
<table border=5 bordercolor=blue borderlight=green>
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>状态栏为效果显示区!</strong></font></td></tr>
</table></center>
<br>
<br>
<center>
&nbsp;<SCRIPT LANGUAGE="JavaScript">

<!-- hide

function goHist(a)

{

     history.go(a);

}

//-->

</script></center>
<br>
<br>
</body>
</html>

预览效果

天猫商城    聚划算    天猫电器城    淘宝旅行    天猫超市    淘宝游戏    天猫品牌特卖    天猫母婴

我要评论
  • 匿名发表
  • [添加到收藏夹]
  • 发表评论:(匿名发表无需登录,已登录用户可直接发表。) 登录状态:未登录
最新评论
所有评论[0]
    暂无已审核评论!

全站链接: 
收录查询
分享按钮