| MSWC.ContentRotator component |
In order to use this component we need a file with the contents we want to rotate in our page. Each code will be separated by "%%" as shown in the example bellow. Somehow, we may consider this file as our database containing all our codes.
| Contentrotator.txt |
| %%
AA %%
%%
%%
|
In case we want to display different codes with different frecuencies, we will need to write the relative frecuency of each code as shown in the next example:
| Contentrotator2.txt |
| %% #1
AA %% #2
%% #3
%% #4
|
As a consecuence, each time "AA" is displaied, "BB" will be displayed twice, "CC" three times and "DD" four times.
Our last step is to insert the apropiate code in our page to allow those codes to be shown in our page. You will find the code in the page bellow.
| Contentrotator.asp |
| <html>
<body> <%
</body>
|