The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Header code?

3 posters

Go down

Solved Header code?

Post by Guest 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
avatar
Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by REDDWOLF22 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
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 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
Sr.Smith
Forumember

Posts : 94
Reputation : 11
Language : Spanish

Back to top Go down

Solved Re: Header code?

Post by Guest 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;
avatar
Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by SLGray 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";


Header code? Slgray10

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

Male Posts : 51554
Reputation : 3523
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Header code?

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

I did Wink But It didn't work.
avatar
Guest
Guest


Back to top Go down

Solved Re: Header code?

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

Do you have JavaScript Management turned on?


Header code? Slgray10

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

Male Posts : 51554
Reputation : 3523
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Header code?

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

Yes it is on.
avatar
Guest
Guest


Back to top Go down

Solved Re: Header code?

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

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

Posts : 94
Reputation : 11
Language : Spanish

Back to top Go down

Solved Re: Header code?

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

I'll send you it by a pb.
avatar
Guest
Guest


Back to top Go down

Solved Re: Header code?

Post by Sr.Smith 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
Sr.Smith
Forumember

Posts : 94
Reputation : 11
Language : Spanish

Back to top Go down

Solved Re: Header code?

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

it's working, thank you (=

[Solved]
avatar
Guest
Guest


Back to top Go down

Solved Re: Header code?

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

Topic Solved & Locked


Header code? Slgray10

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

Male Posts : 51554
Reputation : 3523
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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