The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Question about Rainbow Username JavaScript

View previous topic View next topic Go down

In progress Question about Rainbow Username JavaScript

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

Bump

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 on 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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Question about Rainbow Username JavaScript

Post by FrOsTyXi on January 9th 2015, 2:07 am

Ah ok thank you sir!

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

View previous topic View next topic Back to top


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