PHP脚本生成动态输出,并将页面结果打印到div中,示例如下(php页面):
<head>
<title></title>
<script>
setInterval(function() {
$('#reload').load('track.php');
}, 10000);
</script>
</head>
<body>
<div id="reload"></div>
</body>
</html>我想在滚动字幕中显示输出文本,并应用一些样式。我知道marquee标签已被弃用,但这可以使用一些javascript滚动条来完成。我搜索了php和javascript的组合,但没有找到任何可靠的东西。有人能展示解决这个问题的解决方案吗?
发布于 2012-05-13 06:32:12
请检查一个有很多功能的jQuery插件:
http://jscroller2.markusbordihn.de/example/image-scroller-windiv/
这个是“丝滑的”
http://remysharp.com/2008/09/10/the-silky-smooth-marquee
尝试:
setInterval(function() { $('#reload').html(function() {$.get("http://espring.3eeweb.com/track.php", function(data){ return data; })}) }, 10000);https://stackoverflow.com/questions/10567863
复制相似问题