Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rotating webpage content

Status
Not open for further replies.

BowlerBob

Programmer
Jan 16, 2003
21
GB
Hi

On my website's homepage ( ), I have a scrolling area known as "Cool Tips" and several Amazon ads.

I would like to rotate the contents of these parts; say once a day or once a week.

Cool Tips content could be held in html files, I think the same could probably be done for the &quot;<a>&quot; tags of the Amazon ads.

If it can be done, would it use Arrays of the content's source files ?

Can anyone point me to examples ?


thanks

BobTheBowler
 
Have a look at the Content Rotator component (comes with IIS)
Basically you set up a text file containing several HTML code snippets. In your asp page you create a ContentRotator object and call a method to display the next snippet. Each time the page is called - different content.

You can also set weightings in the text file, so that some snippets are called more often that others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top