how to make CSS Random Background Image Rotation works (3 posts)

  1. wareno
    Posted 5 years ago #

    i found this site CSS Random Background Image Rotation

    like this site netdreams.co.uk
    every page reload a new background comes out
    so where to put @import & <style>
    im not into css but i hope you guys make it easy for us ;)

  2. Barry Reynolds
    Posted 5 years ago #

    I believe WordPress 3.0 has new functionality to rotate the background using custom background, not tested it yet but the videos look promising.

    Barry Reynolds
    [signature moderated]

  3. Digital Raindrops
    Posted 5 years ago #

    Hi Wareno,
    This post may help, it is a tutorial for changing the background by time of day, this was for a question asked on this forum.

    I extended it for season (month), in the season part I have a line of code to return a random background, you may be able to extend this.

    It just uses the body class and a set of style elements, you just need to load the classes into an array generate a random seeded number and that is it.

    If you have trouble working it out I could extend the tutorial to cover random backgrounds, but it would still require each background to have a style.



Topic Closed

This topic has been closed to new replies.

About this Topic