怎样用jsp实现文字滚动!

来源:百度知道 编辑:UC知道 时间:2024/06/06 05:28:52
怎样将数据库中的数据以滚动条的形式在jsp页面中显示出来,希望能有高手指点一下,如果正确将有重谢!!!!!!!!1
我知道用HTML里的marquee元素,也知道是用JavaScript!但我想要的是怎么用js实现将数据库中的数据库动态的以滚动条的形式显示出来!谢谢

jsp是在服务端执行的 。是实现不了它的 。
或许javascript可以实现.....

能实现,但是跟JSP没有关系,是里用客户端脚本实现的
<marquee direction=up width=100% height="160" id=gundong onMouseOut=gundong.start() onMouseOver=gundong.stop() scrollamount=1 scrolldelay=80>
<%
数据库读取代码
%>
</marquee>

可以实现的楼上。。。 我记得以前好像做过类似的功能

用js就行了

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>连续向左滚动</title>
<style type="text/css">
<!--
body {font-size: 9pt;color: #000000;}
a {color: #0000FF;text-decoration: none;}
a:hover {color: #FF0000;text-decoration: underline;}
-->
</style>
</head>
<body>
<div id="marquees">
天使之城,呀呀!嘿!飞洒发萨地方萨贩毒阿开工;拉萨交流;个了;阿哥
</div>

<div id="templayer" style="position:abso