Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Background Images change on refresh.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30271
    alehut
    Participant

    Hello All

    I came across this site while trying to figure out a few things for a site I am working on and must say how much I like it.
    Having solved several of my problems I thought I would ask this community if any one can give me a nudge in the right direction for what I am sure for some of the Guru’s here will be a short stroll in the park.
    I am assuming this is a JavaScript problem but all options are open at the moment, so here goes.

    I am trying to get background images to change either on a daily basis or on each visit, either way will do.
    I also need the images to be fixed with no repeat and to resize depending on screen resolution.

    Told ya it would be easy (he says hopefully).

    Cheers

    Alehut

    #79518
    seeingsound
    Member

    Check out Random Image Script by Matt Mullenweg
    Put all you images into one folder and put this script there to. And then just use

    body { background: url("bg/random.image.php") fixed no-repeat; }
    #79519
    alehut
    Participant

    Now thats nice, thank you seeingsound I will give that a go soon and let you know how I get on.

    Alehut

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.