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
2 posters

    Question about Rainbow Username JavaScript

    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Question about Rainbow Username JavaScript

    Post by FrOsTyXi Thu 8 Jan - 8:12

    Hello, I was wondering if it was possible to fix this script so the rainbow effect shows in the chatbox?

    Code:
    $.getScript("http://xoxco.com/projects/code/rainbow/rainbow.js",function() {
    var selectMe= ["u2311"];
    for(var i =0;i<selectMe.length;i++){
    $('a[href="/'+selectMe[i]+'"]').addClass('rainbow');
    }
    $('.rainbow').find('*').andSelf().contents().filter(function(){
    return this.nodeType===3;
    }).parent().text(function() {
    $(this).rainbow({
    colors: [
    '#FF0000',
    '#f26522',
    '#fff200',
    '#00a651',
    '#28abe2',
    '#2e3192',
    '#6868ff'
    ],
    animate:true,
    animateInterval:100,
    pad:false,
    pauseLength:100
    });
    });
    });

    Either the animated or just rainbow letters each letter being a different color

    @Ange your super good with scripts *)

    Thank you for any help!
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Re: Question about Rainbow Username JavaScript

    Post by FrOsTyXi Fri 9 Jan - 1:07

    Bump
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Question about Rainbow Username JavaScript

    Post by Ange Tuteur Fri 9 Jan - 2:03

    Hi @FrOsTyXi,

    That script doesn't need to be fixed, the problem is that javascripts installed via the admin panel do not affect the chatbox. I'd say implementing what you want would be a bit troublesome, what with the constant refreshing of the chatbox. You'd have to append the script each time, and from what I saw the mod sign also had issues with it.
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    In progress Re: Question about Rainbow Username JavaScript

    Post by FrOsTyXi Fri 9 Jan - 2:07

    Ah ok thank you sir!

      Current date/time is Sun 22 Sep - 20:30