M
Microsoft News
Hi all,
What I would like to do is randomize which file gets used with as a server
side include. Here is what I have so far:
<%
Const Max_Number_Of_Includes = 6
Randomize
Dim intRandomNumber, strIncludeArray(10)
strIncludeArray(0) = "includefile_1.shtm"
strIncludeArray(1) = "includefile_2.shtm"
strIncludeArray(2) = "icludefile_3.shtm"
strIncludeArray(3) = "icludefile_4.shtm"
strIncludeArray(4) = "icludefile_5.shtm"
strIncludeArray(5) = "icludefile_6.shtm"
intRandomNumber = Int((Max_Number_Of_Includes * Rnd))
<!--#include file= strIncludeArray(intRandomNumber) -->
%>
The last line is where I am confused.
Any help would be appreciated.
Regards,
Steve Karnath
What I would like to do is randomize which file gets used with as a server
side include. Here is what I have so far:
<%
Const Max_Number_Of_Includes = 6
Randomize
Dim intRandomNumber, strIncludeArray(10)
strIncludeArray(0) = "includefile_1.shtm"
strIncludeArray(1) = "includefile_2.shtm"
strIncludeArray(2) = "icludefile_3.shtm"
strIncludeArray(3) = "icludefile_4.shtm"
strIncludeArray(4) = "icludefile_5.shtm"
strIncludeArray(5) = "icludefile_6.shtm"
intRandomNumber = Int((Max_Number_Of_Includes * Rnd))
<!--#include file= strIncludeArray(intRandomNumber) -->
%>
The last line is where I am confused.
Any help would be appreciated.
Regards,
Steve Karnath