![]() |
|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
![]() |
|
Опции темы | Поиск в этой теме |
![]() |
#1 |
Новичок
Джуниор
Регистрация: 20.12.2010
Сообщений: 1
|
![]()
как заставить это работать в мазиле
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Документ без названия</title> </head> </style> <STYLE fprolloverstyle>A:hover { COLOR: #ff0000; FONT-WEIGHT: bold; LETTER-SPACING: 1px } </STYLE> <STYLE>.spanstyle { COLOR: cyan; FONT-FAMILY: Verdana; FONT-SIZE: 8pt; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px; VISIBILITY: visible } </STYLE> <script type="text/javascript"> var x,y var step=13 var flag=0 // Your snappy message. Important: the space at the end of the sentence!!! var message="привет всем" message=message.split("") var xpos=new Array("") for (i=0;i<=message.length-1;i++) { xpos[i]=-50 } var ypos=new Array() for (i=0;i<=message.length-1;i++) { ypos[i]=-50 } function handlerMM(e){ x = (document.getElementById) ? e.pageX : document.body.scrollLeft+event.clie ntX y = (document.getElementById) ? e.pageY : document.body.scrollTop+event.clien tY flag=1 } function makesnake() { if (flag==1 && document.getElementById) { for (i=message.length-1; i>=1; i--) { xpos[i]=xpos[i-1]+step ypos[i]=ypos[i-1] } xpos[0]=x+step 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.getElementsByName) { for (i=message.length-1; i>=1; i--) { xpos[i]=xpos[i-1]+step ypos[i]=ypos[i-1] } xpos[0]=x+step 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 aLink=#9d9dff background="" bgColor=#5e0000 leftMargin=0 link=#ffff95 onload=makesnake() style fprolloverstyle="FONT-FAMILY: Arial; FONT-SIZE: 8pt; OVERFLOW-X: hidden; OVERFLOW-Y: scroll; WIDTH: 100%" text=#6db6b6 topMargin=0 vLink=#d900d9><BR> <script type="text/javascript"> <!-- Beginning of JavaScript - for (i=0;i<=message.length-1;i++) { document.write("<span id='span"+i+"' class='spanstyle'>") document.write(message[i]) document.write("</span>") } if (document.layers){ document.captureEvents(Event.MOUSEM OVE); } document.onmousemove = handlerMM; // - End of JavaScript - --> </script> </body> </html> |
![]() |
![]() |
![]() |
![]() |
||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Как заставить работать скрипт | x1233 | JavaScript, Ajax | 8 | 05.12.2010 10:41 |
Как заставить работать CheckBox? | ridmal | Microsoft Office Word | 1 | 21.05.2009 09:47 |
Как заставить работать NFS 2 SE? | Манжосов Денис :) | Gamedev - cоздание игр: Unity, OpenGL, DirectX | 6 | 02.11.2008 16:35 |
Как заставить работать php? | yourself | Помощь студентам | 9 | 20.05.2008 08:08 |
Как заставить работать dll ? | Volkogriz | Общие вопросы Delphi | 10 | 13.12.2007 10:24 |