MustangManny
MIS
Hello, I have a dymanic scroller that pulls "headlines" from a database. What I want to accomplish is have the 4 or 5 head lines have a different stylesheet out of 4 possibilites, but never be repeated twice in a row. How do I get it to choose a random number out of 4, but never repeated?
i.e. 2, 3, 1, 4 not 2, 2, 1, 4
Here is my code.
<%dim upperlimit
dim lowerlimit
upperlimit = 4
lowerlimit = 1
randomize
<% r2="asae"&Int((upperlimit - lowerlimit + 1)*Rnd() + lowerlimit)%>
<% Response.Write "messages["&i&"]=""<br><a class="&"'"&r2&"'"&"href='press_full.asp?ID="&trim(current("ID"))&"&page=pressreleases'>"&trim(current("Title"))&"</a></font>"""
%>
Thank you.
i.e. 2, 3, 1, 4 not 2, 2, 1, 4
Here is my code.
<%dim upperlimit
dim lowerlimit
upperlimit = 4
lowerlimit = 1
randomize
<% r2="asae"&Int((upperlimit - lowerlimit + 1)*Rnd() + lowerlimit)%>
<% Response.Write "messages["&i&"]=""<br><a class="&"'"&r2&"'"&"href='press_full.asp?ID="&trim(current("ID"))&"&page=pressreleases'>"&trim(current("Title"))&"</a></font>"""
%>
Thank you.