Skip navigation
J_Smi
Currently Being Moderated

Background change by time of day. (MX)

Jun 12, 2006 10:43 PM

I'm redesigning my MySpace page and would like to have a background of the an ocean/beach view with the sky in the background. It's just like your average background yet the picture changes depending on what time of day it is. So, if someone's viewing my page during the day, it shows a picture of the beach during daytime and if someone views my page at night, it shows that same picture at nighttime. This could either be achieved using three images (day, dusk/dawn/ and night) or if there was some way of creating a gradation, so the color slowly changes as time passes.

I've found a few codes online for this type of background (one that changes depending on what time it is)...but they're all in javascript, which MySpace doesn't allow.

I kind of figured the only way this might be possible is through Flash, but I don't know whether you can have a .swf file as a background or any other file that would allow for the coding that's needed.

So basically I'm asking...is this possible and does anyone have any idea as to what the actionscript would be?

I'd really appreciate any help.
 
Replies
  • Currently Being Moderated
    Jun 30, 2006 12:21 PM   in reply to J_Smi
    Don't know anything about MySpace, but the Flash Player always sits on the top of the page content, so I don't hink you could use it as a background with regular HTML content on top of it.

    That being said, you could certainly make a Flash movie that changes based on the time of day.

    Cheers!
     
    |
    Mark as:
  • Currently Being Moderated
    May 2, 2008 10:21 AM   in reply to J_Smi
    <<...Flash Player always sits on the top of the page content, so [[I don't think]] you could use it as a background with regular HTML content on top of it.>>

    Can anyone confirm this for sure? I am able to get Flash as background in ie7, but not Firefox2 (haven't tried others) using the wmode/z-index/absolute positioning method. It seems that I've read in the documentation that Flash is always on top, but things change, and almost always can be worked around...Has anyone had success with this for Firefox2?
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)