Color light text

vianjb
by vianjb · 3 posts
11 years ago in IMVU Homepage Codes
Posted 11 years ago · Author
this script applies to bring up color light on the text . for example , just go to my dummy account page in HERE

to get light text on your page , just replace this script on your page

Code
<center><h2><script language="JavaScript1.2">

///can edit below this line/////

var message="Thank you for visiting my page!"   // change the word with you want
var neonbasecolor="gray"                                    // basic color text
var neontextcolor="#6F2ED9"                           // light color 1
var neontextcolor2="#F25F5F"                            // light color 2
var flashspeed=100                  // speed of flashing in milliseconds
var flashingletters=3                  // number of letters flashing in neontextcolor
var flashingletters2=1                  // number of letters flashing in neontextcolor2 (0 to disable)
var flashpause=0                  // the pause between flash-cycles in milliseconds

///No need to edit below this line/////

var n=0
if (document.all||document.getElementById){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(message)

function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}

function neon(){

//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
crossref(m).style.color=neonbasecolor
}

//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor

if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2
if (n>(flashingletters+flashingletters2)-1) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor


if (n<message.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",flashpause)
return
}
}

function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}
beginneon()


</script></h2></center>


look in the first code after ///can edit below this line///// , if you want to editing the word , color , speed and etc


Live preview: https://codepen.io/Andronomos/pen/qxbKXV
Posted 6 years ago
And this is good for what?
Posted 6 years ago
smykey wrote:
And this is good for what?


It makes some text that has a colored shine effect. You can see the code live here: https://codepen.io/Andronomos/pen/qxbKXV

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts