The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to add different Header background image

View previous topic View next topic Go down

Solved How to add different Header background image

Post by Maki1 on December 21st 2010, 12:45 pm

I would like to add 3 or 4 Header background image for example all the time you refresh the page and the Header background image change to a different one.

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Maki1 on December 22nd 2010, 3:32 pm

Any code for this.

P.S: I've seen a topic here about this but I can't find so if you find the link please feel free to reply to this topic with the link.

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Maki1 on December 23rd 2010, 7:17 pm

Any one know the code for this.

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Maki1 on December 26th 2010, 4:13 pm

Bump...

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Guest on December 26th 2010, 4:19 pm


Guest
Guest


Back to top Go down

Solved Re: How to add different Header background image

Post by Maki1 on December 26th 2010, 10:09 pm

I don't get anything there so please could you give a code for it...

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Guest on December 27th 2010, 8:28 am

Try that direct link and just tell me what you cant understand in it.

@Maki1 wrote:I don't get anything there so please could you give a code for it...
In the other topic i used Google Translate to give link to translated page, and i think Google might be censored in your country.

Guest
Guest


Back to top Go down

Solved Re: How to add different Header background image

Post by Maki1 on December 27th 2010, 11:13 am

Lol I don't need Google Translate I just need the code just like this Site have ever time you refresh the page you get a new header.


Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Guest on December 27th 2010, 11:36 am

@Maki1 wrote:Lol I don't need Google Translate I just need the code just like this Site have ever time you refresh the page you get a new header.
It is exactly what that topic does
AoF-Neptune wrote:Try that direct link and just tell me what you cant understand in it.

If you cant go to translated page, and do not want to use an online translator to translate yourself the original topic, just tell me which code you need exactly.

1/ Script you need.
- Random banner -> like on phpbb site above.
or
- Scrolling banners -> Banner changes every each xxxx milliseconds.

2/ Version of your forum if your profile is not up to date.
And i will show you the good code.

Guest
Guest


Back to top Go down

Solved Re: How to add different Header background image

Post by Maki1 on December 27th 2010, 11:48 am

My friend its not a Random banner or Scrolling banners is the ''Header background image'' or whatever is called that's what phpbb have so could you give a code for it if you know.

And version of my forum is FM phpBB3 => http://webmaster-forum.forumotion.com/

Thanks a lot if you could help.

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Guest on December 27th 2010, 12:41 pm

Now i understand.

Script is done to change this pic
http://i62.servimg.com/u/f62/14/52/34/74/bg111.png

But on your forum this pic is a background one inserted in your css.
And the script would not turn that pic as a background one.

Script for phpBB3 anyway (works same for Invision)
Code:
var banner = new Array();

banner.push('adresse_image_1');
banner.push('adresse_image_2');
banner.push('adresse_image_3');

document.getElementById('logo').firstChild.src= banner[Math.floor(Math.random()*banner.length)];
In that code you need to change adresse_image_1 , 2 or 3 with full url of your pictures.
Code must be saved on a html page (ACP/Modules/Html pages) and linked to forum by adding this line in forum site description
Code:
<script src=/hX-></script>
Replace X with id of page created before.

Hope it will help.

Guest
Guest


Back to top Go down

Solved Re: How to add different Header background image

Post by Maki1 on December 27th 2010, 3:14 pm

I'm not sure what I'm doing wrong but i don't get it work Sad Now here i don't understand.

Code:
<script src=/hX-></script>

Replace X with id of page created before.

Witch id of the page...

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Guest on December 27th 2010, 5:20 pm


Administration Panel
Modules
HTML
HTML pages management


Guest
Guest


Back to top Go down

Solved Re: How to add different Header background image

Post by Maki1 on December 27th 2010, 6:37 pm

Thank you i got it now Very Happy

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English CSS Stylesheet
Location : The Support forum Section! No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: How to add different Header background image

Post by Sanket on December 27th 2010, 8:06 pm

Since this thread appears to be solved, I will lock this thread and mark it as solved.


Sanket Smile


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum