Back to Programming main page

ASP

Content rotation
Description Make part of your web page change randomly using ASP. This content can be anything that you would put in a web page.
Instructions Put the first part of the code below into your web page where you want the rotating content to appear. Then create a text file (this example assumes it is named rotatetext.txt) similar to the bottom part of the code. This specifies the pieces of code you want to rotate against and a weighting so you can make some pieces appear more often than others.

Show/hide code   View example