I am trying to auto refresh div section in x second. I want that for every x second div sec should display different different content and after displaying last content it should display content from starting
How can I achieve this ?
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
var auto_refresh = setInterval(
function () {
$('#push').load('F3.jsp').fadeIn("slow");
}, 10000); // refresh every 10000 milliseconds
</script>
<div class="push">
<table width="100%" border="1" align="center"
cellpadding="0" cellspacing="1" bordercolor='66A8FF'>
<%
int i=5;
int j=6;
int k=7;
%>
<tr bgcolor="0F57FF" style="border-collapse:collapse">
<td width="50%" height="50px" align="center" style="font-size:24px">
<font color="#fff"><%= i%></font>
</td>
</tr>
</table>
</div>
I want to show value of i,j,k
periodically for every x second in the table.