This is a simulation of the stock rolling screen Kanban program, the program will be 10 stock prices and information on the fall of 5 groups each time, the cycle alternating, different from the previous Roll screen left blank. Because of the simplicity of the code, there is no comment here.
For I=0 to 4
A (i). Innerhtml=show1 (J-1+i)
B (i). Innerhtml=show2 (J-1+i)
C (i). INNERHTML=SHOW3 (J-1+i)
D (i). INNERHTML=SHOW4 (J-1+i)
Next
If J>9 then j=0
SetTimeout "Toplay", 2000
End Sub
function Show1 (num)
If Num=>10 Then
Show1=arry1 (NUM-10)
Else
Show1=arry1 (num)
End If
End Function
function Show2 (num)
If Num=>10 Then
Show2=arry2 (NUM-10)
Else
Show2=arry2 (num)
End If
End Function
function show3 (num)
If Num=>10 Then
Show3=arry3 (NUM-10)
Else
Show3=arry3 (num)
End If
End Function
function show4 (num)
If Num=>10 Then
Show4=arry4 (NUM-10)
Else
Show4=arry4 (num)
End If
End Function
-->
</script>
<style>
<!--
td {FONT-SIZE:9PT}
-->
</style>
<body >
<table border= "0" cellpadding= "5" cellspacing= "1" >
<tr>
<TD bgcolor= "#FFCC66" > Securities name </td>
<TD bgcolor= "#FFCC66" > Deal </td>
<TD bgcolor= "#FFCC66" > Opening </td>
<TD bgcolor= "#FFCC66" > Ups </td>
</tr>
<%
For I=0 to 4
Dim bg
Bg= "F0ede6"
If I mod 2=0 then bg= "d2e0f0"
%>
<tr>
<TD id= "A" bgcolor=<%=bg%> align= "right" ></td>
<TD id= "B" bgcolor=<%=bg%> align= "right" ></td>
<TD id= "C" bgcolor=<%=bg%> align= "right" ></td>
<TD id= "D" bgcolor=<%=bg%> align= "right" ></td>
</tr>
<%next%>
</table>
</body>
Note: You can change the number of rows in each group showing the stock, which is set to 5.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.