16:19
Обновить

Воскресенье, 11.01.2026, 16:19
 
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
бегущая строка на форуме
Knife
 Дата: Воскресенье, 11.04.2010, 22:55 | Сообщение # 1

Группа: Администратор
Сообщений: 540
Награды: 21
[ 46 ]
Code
html>   
<head>   
<title>Текст с плавным переходом цвета скользит за курсором.</title>   
<style type="text/css">   
.spanstyle { FONT-FAMILY: Verdana; FONT-SIZE: 8pt; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px; VISIBILITY: visible}   
</style>   
<SCRIPT type="text/javascript" language="JavaScript">   
<!--//   
var message=" суда пишет свой текст"   
message=message.split(" ")
var step=8   
var stepbasic=8   
// Do not edit the varianles below   
var x,y   
var flag=0   
var xpos=new Array()   
for (i=0;i<=message.length-1;i++) {   
xpos[i]=-100   
}

var ypos=new Array()   
for (i=0;i<=message.length-1;i++) {   
ypos[i]=-100   
}

var spacebetweenwords=new Array()   
for (i=0;i<=message.length-1;i++) {   
spacebetweenwords[i]=stepbasic+step*message[i].length-1   
}

var colorstep=Math.round(255/message.length-1)

var colorrgb=new Array()   
for (i=0;i<=message.length-1;i++) {   
colorrgb[i]=i*colorstep   
}

var wordcolor=new Array()   
for (i=0;i<=message.length-1;i++) {   
var colhex_left = Math.floor(colorrgb[i]/16)   
var colhex_right= colorrgb[i]-(colhex_left*16)   
if (colhex_left == 10) {colhex_left="A"}   
if (colhex_left == 11) {colhex_left="B"}   
if (colhex_left == 12) {colhex_left="C"}   
if (colhex_left == 13) {colhex_left="D"}   
if (colhex_left == 14) {colhex_left="E"}   
if (colhex_left == 15) {colhex_left="F"}   
if (colhex_right == 10) {colhex_right="A"}   
if (colhex_right == 11) {colhex_right="B"}   
if (colhex_right == 12) {colhex_right="C"}   
if (colhex_right == 13) {colhex_right="D"}   
if (colhex_right == 14) {colhex_right="E"}   
if (colhex_right == 15) {colhex_right="F"}   
wordcolor[i] =""+colhex_left+colhex_right   
}

function handlerMM(e){   
x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX   
y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY   
flag=1   
}

function makesnake() {   
if (flag==1 && document.all) {   
for (i=message.length-1; i>=1; i--) {   
xpos[i]=xpos[i-1]+spacebetweenwords[i-1]   
ypos[i]=ypos[i-1]   
}   
xpos[0]=x+stepbasic   
ypos[0]=y

for (i=0; i<message.length-1; i++) {   
var thisspan = eval("span"+(i)+".style")   
thisspan.posLeft=xpos[i]   
thisspan.posTop=ypos[i]   
}   
}

else if (flag==1 && document.layers) {   
for (i=message.length-1; i>=1; i--) {   
xpos[i]=xpos[i-1]+spacebetweenwords[i-1]   
ypos[i]=ypos[i-1]   
}   
xpos[0]=x+stepbasic   
ypos[0]=y

for (i=0; i<message.length-1; i++) {   
var thisspan = eval("document.span"+i)   
thisspan.left=xpos[i]   
thisspan.top=ypos[i]   
}   
}   
var timer=setTimeout("makesnake()",30)   
}   
//-->   
</SCRIPT>   
</head>   
<body onload="makesnake()">   
<SCRIPT type="text/javascript">   
<!--//   
for (i=0;i<=message.length-1;i++) {   
document.write("<span id='span"+i+"' class='spanstyle'>")   
document.write("<font color='"+wordcolor[i]+wordcolor[i]+wordcolor[i]+"'>"+message[i]+"</font>")   
document.write("</span>")   
}

if (document.layers){   
document.captureEvents(Event.MOUSEMOVE);   
}   
document.onmousemove = handlerMM;   
//-->   
</SCRIPT>   
<SCRIPT type="text/javascript">   
<!--//   
function closeIt() {close();}   
// -->   
</SCRIPT>   
</body>   
</html>



[ Дембель ]
 
  • Страница 1 из 1
  • 1
Поиск:
Статистика Форума
Последнии темы Читаемые темы Лучшии пользователи Новые пользователи
  • gogogo (2)
  • Aimmetti ))) (1)
  • Ваши предложение (132)
  • Разделы (1)
  • Тапок, разбань (1)
  • 3 ban, yje stydno pisat' (2)
  • RRRRRRRRRRRRRRRRRRRRRRICH (1)
  • Сверхамбициозная пенка (0)
  • Banned by admin FaNaTik > anal king * (2)
  • unban cl_aim 1 (0)
  • Ваши предложение (132)
  • Calipso паливо с вх! (34)
  • Как вы относитесь к читерам? (33)
  • Юзер бары (33)
  • Нужен ли распрыг на сервере? (31)
  • Кто какую музыку слушает ? (30)
  • Картинки (29)
  • Какие у вас ники на Серваке? (28)
  • Пишем онлайн фильмы (27)
  • Ваши мнение про Волгоградский клан (24)
  • Knife
  • aim
  • Prokop
  • Irie
  • SmoK
  • Red_devil_34rus
  • ward
  • NaRkoDoZoR
  • PhoeNIX
  • Edward
  • Jaguar4ik_
  • Killer(Etc34rus)
  • Жекус
  • Buratino-Bot
  • Fobas
  • AntikiLL6195
  • tichegonish
  • Hmage
  • email_nado
  • Dinеl
  • y6uTbIu
  • Admin5574
  • kameded
  • AkASad1st
  • saratoff
  • Guyver
  • saibat12345
  • ТОРНАДО
  • Никитосик
  • Shumaxer


  • //knife34.ucoz.ru/ © 2026 | Сайт оптимизирован под браузер FireFox Mozila |
    Дизайн данного сайта полностью принадлежит администратору сайта.