You can check my one out here...I change the header image and the
products and the text...
http://www.freeenterprise.com.au/2003a/

I have this on an include page, make sure you include this page to
your main page.

<cfscript>
// Created by Free Enterprise Advertising
// Random Adverts for front page
// on 21/04/2003 
// Web: http://www.freeenterprise.com.au

// you change the number of ads here from 1 to how many
Ads = RandRange(1,5);
switch(Ads)
{
case "1":
//The Details of the image
Ads = "your_image_here.jpg";
Alt = "Your Alt Text if you want";
Page = "your_link_page.cfm";
break;

}
// Replace with your image directory
Image = "./images/#Ads#";
page = "./#page#.cfm";
alt = "#alt#";
</cfscript>

Then on your main page you can call variables

<img src="#image#" alt="#alt#">

Then hit refresh



"Brian Gilbert" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> 
> Does anyone know of a CF method to do the following?
> 
> http://www.alistapart.com/articles/randomizer/
> 
> Thanks,
> 
> Brian
> 
> 


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to