1. 程式人生 > >html實現滾動文字

html實現滾動文字

<%@ page contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML >
<html>
  <head>
    
  </head>
  <body>
  <marquee direction="left" onMouseOver="this.scrollAmount='1'"onMouseOut="this.scrollAmount='2'"onMouseDown="this.scrollAmount='4'";this.direction='down'"onMouseUp="this.scrollAmount='1';this.direction='up'" scorllAmount="2" height="291">
    <table>
     <tr>
     <td height="30" style="color:yellow;font-size:10pt;font-weight:bold;">
     <a href="#">IT行業就業越來越難了,近幾年就業率逐年下降</a></td>
     </tr>
     <tr>
     <td height="20" align="right">公佈時間:2016-10-15</td>
     </tr>
      <tr>
     <td height="30" style="color:yellow;font-size:10pt;font-weight:bold;">
     <a href="#">全國大學生畢業人數逐年呈現上升趨勢,就業質量就業越來越難</a></td>
     </tr>
     <tr>
     <td height="20" align="right">公佈時間:2016-10-16</td>
     </tr>
  </table>
  </body>
</html>