日期:2014-05-17  浏览次数:20841 次

jsp页面,浏览器左下角滚动文字
本帖最后由 hou_guannan 于 2013-03-18 14:36:41 编辑
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>MyHtml.html</title>

    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<script language="javascript">  
         message="1、欢迎使用...系统!^"  
                + "2、希望您能够提出您的宝贵意见和建议!^"  
                +"3、我的联系方式:vipdingy@126.com ^" + "^";  
          scrollspeed=35;  
          linedelay=3500;  
          text="";  
          function scrollText(pos)  
          {  
            if(message.charAt(pos)!="^")  
            {  
              text=text +message.charAt(pos);  
              status=text;  
              pauze=scrollspeed;  
                
            }  
            else  
            {  
              pauze=linedelay;  
              text="";  
              if(pos==message.length-1) pos=-1;  
            }  
            pos++;  
            setTimeout("scrollText('" +pos + "')",pauze);  
          }  
            
          scrollText(0);  
        </script>  
  </head>
  
  <body>
  
    This is my HTML page. <br>
  </