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.
The forum of the forums
3 posters

    Header code?

    avatar
    Guest
    Guest


    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
    REDDWOLF22
    REDDWOLF22
    Forumember


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

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


    Posts : 94
    Reputation : 11
    Language : Spanish

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


    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;
    SLGray
    SLGray
    Administrator
    Administrator


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

    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.
    avatar
    Guest
    Guest


    Solved Re: Header code?

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

    I did Wink But It didn't work.
    SLGray
    SLGray
    Administrator
    Administrator


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

    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.
    avatar
    Guest
    Guest


    Solved Re: Header code?

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

    Yes it is on.
    Sr.Smith
    Sr.Smith
    Forumember


    Posts : 94
    Reputation : 11
    Language : Spanish

    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.
    avatar
    Guest
    Guest


    Solved Re: Header code?

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

    I'll send you it by a pb.
    Sr.Smith
    Sr.Smith
    Forumember


    Posts : 94
    Reputation : 11
    Language : Spanish

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


    Solved Re: Header code?

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

    it's working, thank you (=

    [Solved]
    SLGray
    SLGray
    Administrator
    Administrator


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

    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.

      Current date/time is September 23rd 2024, 3:33 am