Cycle background image?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
dirtywhitellama

Cycle background image?

Post by dirtywhitellama »

Is it possible to set it up so that each time the page loads it selects a different image (from a selection) for a background on a given element?  (in this case a header).  Say you load the page one time and it shows a header image with the page title and a duck splashing in the background (text being part of the image).  Then you load the page again (or navigate to a different page on the site) and it has the title image but with flowers behind it, and so on. 

Does this make sense?  Is it possible?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Cycle background image?

Post by Dr.CSS »

Check the forge for banner module, sounds like it does just that, only changes when you refresh page or go to diff. page, it will not cycle img.s while staying on the same page like a timed one might.
dirtywhitellama

Re: Cycle background image?

Post by dirtywhitellama »

Thats what I want anyway, cycling on refresh. Thanks for the tip I will check it out!
dirtywhitellama

Re: Cycle background image?

Post by dirtywhitellama »

Well it seems to mostly be working internally, I just can't figure out how to replace the default CMSMS header with it. Putting it in the CSS didn't work, commenting out the css and putting it in the template instead of the selflink doesn't seem to work either.  ???
I feel like I'm missing something, but I did put in some banners to test with and put the right cagetory name on my tag on the page...  I cant tell whether or where I can specify a category for banners if I only have one category though.
Andor
Forum Members
Forum Members
Posts: 49
Joined: Sun Feb 19, 2006 1:42 pm

Re: Cycle background image?

Post by Andor »

Hi,
I found the rotator.php working very well for me  :)

(see http://forum.cmsmadesimple.org/index.ph ... 050.0.html and http://automaticlabs.com/products/rotator for further info and download)
dirtywhitellama

Re: Cycle background image?

Post by dirtywhitellama »

Great, perfect. Thanks a lot!  That does exactly what I need with no extra fuss :)
Locked

Return to “Layout and Design (CSS & HTML)”