Помощник
|
помогите переделать скрипт |
myrsilka
|
Сообщение
#1
|
||
|
|
||
|
|||
Webmaster_hb |
28.7.2009, 17:21;
Ответить: Webmaster_hb
Сообщение
#2
|
|
<HTML>
<HEAD> <TITLE>Убегающая кнопка</TITLE> <META content="text/html; charset=windows-1251" http-equiv="Content-Type"> </head> <BODY onLoad="changeIt();" onClick="moveIt();"> <SPAN id="button1" style="position:relative;z-index:100"></SPAN></P> <script> var btnbgcol="Magenta" var fntcol="black" var ok=(document.getElementById||document.all)?1:0 if (ok) var cross_el=document.getElementById? document.getElementById("button1"):button1 message = "текст" function changeIt(){ if (!ok) return cross_el.innerHTML='<button style="background-color:'+btnbgcol+'" onmouseDown="moveIt();" onmouseOver="moveIt()" onclick=location.href="http://www.html.by"><font color="'+fntcol+'">'+message+'</font></button>' } function setRandom(){ random1=Math.floor(Math.random()*100) random1=Math.floor(Math.random()*100) } function moveIt(){ if (!ok) return setRandom() cross_el.style.top=random1 cross_el.style.left=random2 if (document.all){ if (cross_el.offsetTop-document.body.scrollTop>document.body.clientHeight ) cross_el.style.top=random1*(-2/3) } else{ if (cross_el.offsetTop-window.pageYOffset>window.innerHeight) cross_el.style.top=random1*(-2/3) } } </script> <body> </BODY></HTML> |
|
|
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
Продам скрипт rtb exchange suite - система перепродажи трафика dsp/ssp в реальном времени. | 5 | buypushplatform | 4305 | 23.4.2024, 21:02 автор: 100ftd |
|
Помогите вспомнить рекламного бота Телеграм для обмена рекламой | 0 | Mixatraider | 732 | 21.2.2024, 23:42 автор: Mixatraider |
|
Скрипт поисковика видео StrongTube | 3 | 3josoft | 1576 | 14.8.2023, 14:45 автор: 3josoft |
|
Скрипт приема платежей p2p с карты на карту card2card Скрипт приема платежей p2p с карты на карту card2card |
15 | zladey1986 | 7845 | 26.3.2023, 8:54 автор: Palundra |
|
Продам скрипт перевода постов и комментариев | 4 | Tutich | 791 | 19.1.2023, 17:23 автор: Tutich |
Текстовая версия | Сейчас: 26.4.2024, 1:55 |