Home > front end >  Consult a great god specify div regularly refresh double-fold eyelid
Consult a great god specify div regularly refresh double-fold eyelid

Time:09-23

From the CSDN to pull a easiest time refresh

The code is as follows:
<%
The set of RSP=server. CreateObject (" adodb. You ")
SQL="select * From W_plan where w_time=#" & amp; Date () & amp; "#", "
RSP. The open SQL, conn, 1, 1
% & gt;
The Do While Not RSP. BOF And Not RSP. EOF % & gt;
<%
The set RSN=server. CreateObject (" adodb. You ")
SQL="select * From the client where cid=" & amp; RSP (cid) & amp;" "
RSN. The open SQL, conn, 1, 1
% & gt;
& lt; Autore span id="" style=" font, size: 3 vw "& gt; +<%=RSN (" c_name ") % & gt; +
<%
RSP. Movenext
Loop
% & gt;
<% RSP. The close
The set of RSP=nothing
% & gt;
-- -- -- -- -- -- -- -- -- --
here are js code
<script type="text/javascript">
$(function () {
SetInterval (function () {
$(" # autore "). The load (the location. The href + "# autore");
In front of/behind/note DIV ID space, is important! No Spaces, the double-fold eyelid! (you can also use the class name)
}, 8000);//8 seconds automatically refresh
})

</script>

Refresh don't call the data in the loop will not properly in double-fold eyelid call cycle data will be more than a repeat out advice on the content of the great god have what good method? I am a rookie, o a thank you
  •  Tags:  
  • ASP
  • Related