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.

Header code?

View previous topic View next topic Go down

Solved Header code?

Post by Guest on September 10th 2013, 4:03 pm

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


Last edited by Mistlyn on September 11th 2013, 7:55 am; edited 1 time in total

Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by REDDWOLF22 on September 10th 2013, 4:07 pm

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

REDDWOLF22
Forumember

Male Posts : 160
Reputation : 9
Language : english
Location : Frozen Ice Plains of HOTH

http://joinotw.enjin.com/forum

Back to top Go down

Solved Re: Header code?

Post by Sr.Smith on September 10th 2013, 8:43 pm

Hi, Mistlyn. I can try with this javascript.

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);
});
I hope it works

Sr.Smith
Forumember

Posts : 87
Reputation : 11
Language : Spanish

Back to top Go down

Solved Re: Header code?

Post by Guest on September 10th 2013, 8:47 pm

Mr.Bond wrote:Hi, Mistlyn. I can try with this javascript.

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);
});
I hope it works
Doesn't work yet D;

Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by SLGray on September 10th 2013, 8:52 pm

Do not forget to add your images' links here:
Code:
logo[0] = "IMAGE URL";
logo[1] = "IMAGE URL";
logo[2] = "IMAGE URL";


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35638
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Header code?

Post by Guest on September 10th 2013, 8:54 pm

I did Wink But It didn't work.

Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by SLGray on September 10th 2013, 8:54 pm

Do you have JavaScript Management turned on?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35638
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Header code?

Post by Guest on September 10th 2013, 9:08 pm

Yes it is on.

Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by Sr.Smith on September 10th 2013, 9:24 pm

What's your forum?
Let me know and I'll try to see the problem.

Sr.Smith
Forumember

Posts : 87
Reputation : 11
Language : Spanish

Back to top Go down

Solved Re: Header code?

Post by Guest on September 10th 2013, 9:27 pm

I'll send you it by a pb.

Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by Sr.Smith on September 10th 2013, 11:31 pm

Hi, Mistlyn, I test the javascript in your forum and it works.
Maybe you couldn't see it because you didn't wait enough.

Mistlyn wrote:Is there maybe a code that can do something like this or one that changes every 5 minutes
The code was prepared for this interval.

But you can change the line
setInterval(changelogo,300000);
for

Code:
setInterval(changelogo,3000);
The last number is the interval and it's mili-seconds.

And you only have to write the URL/LINK of your images (http://.........) in the code.

I hope this helps

Sr.Smith
Forumember

Posts : 87
Reputation : 11
Language : Spanish

Back to top Go down

Solved Re: Header code?

Post by Guest on September 11th 2013, 7:54 am

it's working, thank you (=

[Solved]

Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by SLGray on September 11th 2013, 11:39 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35638
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.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