John,

Okay, how's this for simple. Set up a template called switchDJ.cfm like
so:

<cfparam name="URL.dj" default="1">
<cfset Application.dj = URL.dj>
<html>
<head>
<title>DJ Switched</title>
</head>
<body>
<p align=center>The DJ has been switched to DJ
<cfoutput>
#Application.dj#
</cfoutput>
</body>
</html>


Then, in your img links, use something like:

<cfoutput>
<img src="images/dj#Application.dj#.jpg">
</cfoutput>

You could also include custom bio information:

<cfinclude template="dj#Application.dj#.txt">


Then, in your Application.cfm file, make sure you have this line:

<cfparam name="Application.dj" default="1">

Finally, name your jpg's like dj1.jpg, dj2.jpg, etc.

To use the system, all your station admin has to do is hit the URL with
something like http://www.domain.com/switchDJ.cfm?dj=2. You could set up
a little admin page with the pre-built links or a form submission using
the GET method to do just that. Application variables are good for the
life of the server (assuming they don't time out with site inactivity),
which is the only drawback to this scheme... if CF dies, the DJ will be
reset to the default. The only way around this is to set up a persistant
datasource: either SQL or a text file for the value.


Ron Allen Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]



> -----Original Message-----
> From: mcklyn1 [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 19, 2000 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: On The Air
>
>
> Anybody know of a good way to handle a rotating photo that
> would show which
> Disc Jockey was currently on the air.
>
> I realize that it would be fairly easy to set this up in a
> database file and
> determine what photo should be up based upon a query, but
> what I am looking
> for is an idea for the Admin side.
>
> I need to be able to allow the radio station to make last
> minute updates to
> their on air line up.
>
> For example, DJ #1 calls off sick, so the radio station needs
> to be able to
> change the on air lineup to show DJ #2 on the air.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to