[thelist] generating random image in css

Chris Hayes chris at lwcdial.net
Wed Jun 8 16:42:36 CDT 2005

I use CF to run dynamic css files for these things..

The css link ref points to a cfm file which sets content output  to text/css 
and  includes the css file with with the dynamic vars coded into the image 

If you can't do this with ASP you can use the style attribute of the div to 
randomly set the background image.

You can, I believe, use javascript on the client but with the usual client 
scripting caveats, like don't unless you have no other choice, and then 
don't anyway.

Seems simple, am I missing something?

----- Original Message ----- 
From: "Pringle, Ron" <RPringle at aurora-il.org>
To: "theList (E-mail)" <thelist at lists.evolt.org>
Sent: Wednesday, June 08, 2005 7:33 PM
Subject: [thelist] generating random image in css

>I have a header div that contains a banner image set as a background image
> through CSS. The image is set in the background in order to allow it to 
> grow
> or shrink to meet the viewer's viewport size.
> Is there any way to randomize that background image so that a new image
> appears when the page is loaded/reloaded? I use ASP/VBScript on the site.
> Ron
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.323 / Virus Database: 267.6.5 - Release Date: 07/06/2005

More information about the thelist mailing list