No Comment.
May 2024
Search
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest
None
Most users ever online was 140 on July 4th 2021, 2:03 pm
None
Most users ever online was 140 on July 4th 2021, 2:03 pm
Most Viewed Topics
Top posting users this week
No user |
Rainbow UserNames and Group Names
Hey guys, so I've been busy working on some codes, and just updated a code that was once here, then disappeared. It is the Rainbow Usernames and Group names. Very easy to write and very easy to implement!
First go to your ACP>MODULES>JAVASCRIPT MANAGEMENT>CREATE NEW
Label it "Rainbow Effect"
Mark it for where ever you want it to be used in, All Pages, In Topics, Index, etc.
Then add this JavaScript
To add users find this line-
var selectMe= ["u1","u2"];
Add users by getting their link name- u1, u2, u3. Make sure they are in quotes like above and separated with a comma, except the last one like above. You can change the color order as well.
You can add different effects like I have in the [You must be registered and logged in to see this link.]
To add a different effect, add another line like so
var shineMe=["u3","g4","u444"];
Then add the other code
for(var i =0;i<shineMe.length;i++){
$('a[href="/'+shineMe[i]+'"]').addClass('shine');
}
Remember to change the shineMe if you label it something else, and the class must be different as well per effect.
[You must be registered and logged in to see this link.]
First go to your ACP>MODULES>JAVASCRIPT MANAGEMENT>CREATE NEW
Label it "Rainbow Effect"
Mark it for where ever you want it to be used in, All Pages, In Topics, Index, etc.
Then add this JavaScript
- Code:
$.getScript("http://xoxco.com/projects/code/rainbow/rainbow.js",function() {
var selectMe= ["u1","u2"];
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
});
});
});
To add users find this line-
var selectMe= ["u1","u2"];
Add users by getting their link name- u1, u2, u3. Make sure they are in quotes like above and separated with a comma, except the last one like above. You can change the color order as well.
- Code:
colors: [
'#FF0000',
'#f26522',
'#fff200',
'#00a651',
'#28abe2',
'#2e3192',
'#6868ff'
],
You can add different effects like I have in the [You must be registered and logged in to see this link.]
To add a different effect, add another line like so
var shineMe=["u3","g4","u444"];
Then add the other code
for(var i =0;i<shineMe.length;i++){
$('a[href="/'+shineMe[i]+'"]').addClass('shine');
}
Remember to change the shineMe if you label it something else, and the class must be different as well per effect.
[You must be registered and logged in to see this link.]
|
|