jsp页面代码:
<script>
$(document).ready(function() {
$(document).everyTime(20000, function(num) {
$("#img1").attr("src", url);
$("#img2").attr("src", url);
</script>
<table id="mytable" width="1000" height="100" align="center"id="mytable">
<tr>
<td scope="col" align="center"><img id="img1" style="width: 386px; height: 300px" /></td>
<td scope="col" align="center"><img id="img2" style="width: 386px; height: 300px" /></td>
</tr>
</table>
后台java代码:
Buffer
<script>
$(document).ready(function() {
$(document).everyTime(20000, function(num) {
$("#img1").attr("src", url);
$("#img2").attr("src", url);
</script>
<table id="mytable" width="1000" height="100" align="center"id="mytable">
<tr>
<td scope="col" align="center"><img id="img1" style="width: 386px; height: 300px" /></td>
<td scope="col" align="center"><img id="img2" style="width: 386px; height: 300px" /></td>
</tr>
</table>
后台java代码:
Buffer