Results 1 to 4 of 4
  1. #1

    Member Since
    Jun 01, 2008
    iBook G4
    Random Background Images...
    Does anyone know if the following is possible to setup - if so, how:

    Same homepage but there exists the possibility of getting 1 of 3 possible background images incorporated into a page - therefore if user 1 accesses homepage, they may get background image X, user 2 accessing homepage may get say background image Y, or Z or even X...

    Thx in advance.


  2. #2

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    I did something similar (a foreground image) via a server side include that executed a Perl script on the server. I had to stop that as my current host didn't support server side includes. You can quick figure that out via that link and a quick test page.

    An alternative might be to create a Javascript with a list of images and to randomly pick one. The limit here is that someone may have turned off Javascript execution. In that case you could set it up to show a fixed image.
    CameraTime - Time lapse photography for novice and advanced users.

    When asking questions, post the version of your software. You'll receive better answers.

    Please post your results to the thread as it is good feedback.

  3. #3

    Thyamine's Avatar
    Member Since
    Apr 23, 2007
    Coatesville, PA
    MBP 15", 2.33 GHz, 2Gb
    I would go with the Javascript solution, as it's pretty easy to manage:

    That's one example. And as xstep said, they may have javascript turned off, but there's not much you can do about that. For the most part people usually don't, and if they do it's just a pic so no big deal.

  4. #4

    Member Since
    Jun 01, 2008
    iBook G4
    Thx for the info guys - for me, Javascript is the way to go - ie. easier for me to understand, so will definitely check out the attached link and have a play... Thx again.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Starting to panic a little bit... Random audio ads playing in background?
    By ChuckieRoberts in forum macOS - Operating System
    Replies: 23
    Last Post: 11-23-2012, 02:19 AM
  2. How do I get Random images in DIV tags?
    By FinnIII in forum Web Design and Hosting
    Replies: 0
    Last Post: 05-05-2009, 06:13 PM
  3. Removing background from images
    By Alex Ross in forum Images, Graphic Design, and Digital Photography
    Replies: 1
    Last Post: 11-14-2008, 07:07 AM
  4. Images as Background Problem
    By l2ob in forum macOS - Apps and Games
    Replies: 3
    Last Post: 03-03-2008, 06:24 AM
  5. DW help images/background in a cell
    By rcronin in forum Web Design and Hosting
    Replies: 2
    Last Post: 02-10-2007, 02:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts