HOME PRICING PURCHASE CONTACT US 541-306-6332  
Components
Account Management
Site Control Panel
Email
FTP
Frontpage
Billing Maintenance
Documentation
ISAPI connection
Database
Shopping
Pay Per Download
Random Graphics
Server Side Includes
Visitor Forms
Web File Transfer
META Tags
Fraction/Decimal Chart
RGB Color Table
HTML Entities
E-Commerce Setup
SSL Certificate
SSL Renewal
Merchant Account
ASP
Overview
ADO Database
SendMail
File IO
Include Files
Transactions
ISAPI/HTML-Basic
Authentication
SendMail
Banner Rotator
Random Graphics
Random Pages
ISAPI/HTML-Database
dbSearch
dbstore/SendMail
dbdelete
dbupdate
Template Driven

Hosted by InfoDial


RANDOM GRAPHICS & HTML


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.


  ©1995-2001 InfoDial, Inc.