randomize header image

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
raimondi
Rank 1
Rank 1
Posts: 6
Joined: January 26th, 2009, 11:56 am

randomize header image

Post by raimondi »

to my surprise, i couldn't find anything in the forums thus far, but was wondering if there was a (relatively) easy way to go about randomizing the header image displayed on the main page.

i'd love to have it switch between a series of about 7-8 images.

any thoughts?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: randomize header image

Post by Paul »

The image there is not random, it displays the image according to the page name, which version of skin are you using?
User avatar
raimondi
Rank 1
Rank 1
Posts: 6
Joined: January 26th, 2009, 11:56 am

Re: randomize header image

Post by raimondi »

sorry, should have supplied that information in the first post.

i'm currently using gumaxdd 1.0.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: randomize header image

Post by Paul »

Put images under images\header

The image name has to to page name by viewing the source in browser, looking for page name inside <body> tag...
User avatar
raimondi
Rank 1
Rank 1
Posts: 6
Joined: January 26th, 2009, 11:56 am

Re: randomize header image

Post by raimondi »

thanks for the reply paul.

however, i'm not sure i fully understand what you mean. i currently have an image i created serving as my header.

\gumaxdd\images\header\page-Main_Page.jpg

in order to have it randomly display one of several images i am assuming i would have to have something like:

\gumaxdd\images\header\page-Main_Page1.jpg
\gumaxdd\images\header\page-Main_Page2.jpg
\gumaxdd\images\header\page-Main_Page3.jpg
\gumaxdd\images\header\page-Main_Page4.jpg

and then tell it somewhere in the css to choose one at random. is that correct?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: randomize header image

Post by Paul »

Post Reply