It's easy to put random graphics on your site. You can randomize both images and HTML documents. This is a valuable feature for companies such as real estate firms, for example, who want to display the houses available but don't want to have the same image come up first all the time.
View Examples
Step 1
On your FTP site, on the right-hand side of the screen where it says "Remote Host", click on the button that says "MkDir". The directory name should be the word "Random" followed by a number. This is the same number that you use next to the question mark that immediately follows random.exe and randomhtml.exe in the cgi request as described below. What this also means is that you can have more than one randomized document on your site! You just assign a new number to another group of files that you want randomized.
Step 2
Select the files you want to have randomized, and FTP them up to the "Random(xx)" directory you just created. In the case of random graphics, these must all be .GIF images - .JPG's won't work.
Step 3
For random graphics, in your HTML document, type in the following line:
<img src="/cgi-bin/random.exe?#">
For random HTML, in your HTML document, use the link to a page to give you a random HTML page:
<a href="/cgi-bin/randomhtml.exe?#">Click to go to random page</a>
The "#" sign in the above lines is the number you've assigned to the subdirectory you sent your files to. So you would put #1 in the line for the first one, #2 for the second, etc.
|