Question about Rainbow Username JavaScript Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
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 January 8th 2015, 8:12 am

    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 January 9th 2015, 1:07 am

    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 January 9th 2015, 2:03 am

    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 January 9th 2015, 2:07 am

    Ah ok thank you sir!