Header code?
3 posters
Page 1 of 1
Header code?
I don't know if there is a code for this, but I really like 2 headers for my forum and I actually wanna use both.
Is there maybe a code that can do something like this or one that changes every 5 minutes?
I use phpbb2 forums
Is there maybe a code that can do something like this or one that changes every 5 minutes?
I use phpbb2 forums
Last edited by Mistlyn on September 11th 2013, 7:55 am; edited 1 time in total
Guest- Guest
Re: Header code?
why not just make a gif pic out of them and then you could have a slide effect either sideways or up and down or even dissolve or fade into one another
Re: Header code?
Hi, Mistlyn. I can try with this javascript.
Add a new javascript
Position: All pages
Add a new javascript
Position: All pages
- Code:
$(function(){
var logo = new Array();
logo[0] = "IMAGE URL";
logo[1] = "IMAGE URL";
logo[2] = "IMAGE URL";
function changelogo() {
var num = Math.floor(Math.random() * logo.length);
$("#i_logo").attr("src", logo[num]);
};
setInterval(changelogo,300000);
});
Sr.Smith- Forumember
- Posts : 94
Reputation : 11
Language : Spanish
Re: Header code?
Doesn't work yet D;Mr.Bond wrote:Hi, Mistlyn. I can try with this javascript.
Add a new javascript
Position: All pagesI hope it works
- Code:
$(function(){
var logo = new Array();
logo[0] = "IMAGE URL";
logo[1] = "IMAGE URL";
logo[2] = "IMAGE URL";
function changelogo() {
var num = Math.floor(Math.random() * logo.length);
$("#i_logo").attr("src", logo[num]);
};
setInterval(changelogo,300000);
});
Guest- Guest
Re: Header code?
Do not forget to add your images' links here:
- Code:
logo[0] = "IMAGE URL";
logo[1] = "IMAGE URL";
logo[2] = "IMAGE URL";
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Header code?
Do you have JavaScript Management turned on?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Header code?
What's your forum?
Let me know and I'll try to see the problem.
Let me know and I'll try to see the problem.
Sr.Smith- Forumember
- Posts : 94
Reputation : 11
Language : Spanish
Re: Header code?
Hi, Mistlyn, I test the javascript in your forum and it works.
Maybe you couldn't see it because you didn't wait enough.
But you can change the line
And you only have to write the URL/LINK of your images (http://.........) in the code.
I hope this helps
Maybe you couldn't see it because you didn't wait enough.
The code was prepared for this interval.Mistlyn wrote:Is there maybe a code that can do something like this or one that changes every 5 minutes
But you can change the line
forsetInterval(changelogo,300000);
- Code:
setInterval(changelogo,3000);
And you only have to write the URL/LINK of your images (http://.........) in the code.
I hope this helps
Sr.Smith- Forumember
- Posts : 94
Reputation : 11
Language : Spanish
Re: Header code?
Topic Solved & Locked
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» header and html code.
» Moving footer code into header
» Code: Select Content for code box
» When i paste a long code via [code][/code] the page expands
» Adding code into CSS Stylesheet but when saved less than half of the whole code gets saved! Help!
» Moving footer code into header
» Code: Select Content for code box
» When i paste a long code via [code][/code] the page expands
» Adding code into CSS Stylesheet but when saved less than half of the whole code gets saved! Help!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum