Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-24 19:04:24

De Laurence
New Member
Registered: 2007-03-21
Posts: 6

new background image every time the page loads.

I would like to have the back ground image change every time the page loads. Ideally at random from a folder with lets say 10 images in it. I’m not to good at this and I try to learn, but i can’t find a tutorial about doing this.

Thank you for your help.

Offline

#2 2007-03-24 20:14:36

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: new background image every time the page loads.

image rotation this can get you started, although I think a search for random image plugin and then applying the output of that to a style=“background: url(image.jpg);” property in a div for instance.

Matthew


Offline

#3 2007-03-24 20:54:29

De Laurence
New Member
Registered: 2007-03-21
Posts: 6

Re: new background image every time the page loads.

Thank you for you help, Matthew. I got some reading and experimenting to do.

I like your work by the way. Nice sites

All the best

Offline

#4 2007-03-24 21:49:38

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: new background image every time the page loads.

The latest version of smd_random_banner should be able do this… works very nicely.

Regards


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#5 2007-03-24 23:15:52

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: new background image every time the page loads.

De Laurence,
Thx. Always learning. Neil’s suggestion is a good one.


Offline

#6 2007-03-26 22:55:36

De Laurence
New Member
Registered: 2007-03-21
Posts: 6

Re: new background image every time the page loads.

Thank you very much for all the help. It is greatly appreciated.

All the best

Offline

Board footer

Powered by FluxBB