Rank: Administrator Mesaje : 507 Membru din : 09/12/2012
| Subiect: Script text derulare stanga / dreapta Mier Dec 12, 2012 8:55 pm |
|
| Adaugati urmatorul cod in Afisare/Generalitati/Mesaj pe pagina de start:Adaugati urmatorul cod in Afisare/Generalitati/Mesaj pe pagina de start: - Cod:
-
/Flashing Neon /
var message="TEXTUL TAU" var neonbasecolor="yellow" var neontextcolor="Red" var neontextcolor2="green" var flashspeed=50 // speed of flashing in milliseconds var flashingletters=1 // number of letters flashing in neontextcolor var flashingletters2=0 // 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('[color='+neonbasecolor+']') for (m=0;mdocument.write(''+message.charAt(m)+'') document.write('[/color]') } 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;mcrossref(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 (nn++ else{ n=0 clearInterval(flashing) setTimeout("beginneon()",flashpause) return } }
function beginneon(){ if (document.all||document.getElementById) flashing=setInterval("neon()",flashspeed) } beginneon() |
|