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.

Question about Rainbow Username JavaScript

2 posters

Go down

In progress Question about Rainbow Username JavaScript

Post by FrOsTyXi Thu 8 Jan 2015 - 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

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: Question about Rainbow Username JavaScript

Post by FrOsTyXi Fri 9 Jan 2015 - 1:07

Bump
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: Question about Rainbow Username JavaScript

Post by Ange Tuteur Fri 9 Jan 2015 - 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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Question about Rainbow Username JavaScript

Post by FrOsTyXi Fri 9 Jan 2015 - 2:07

Ah ok thank you sir!
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Back to top

- Similar topics

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