Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   PHP, PERL, MySQL, JavaScript (https://forum.antichat.xyz/forumdisplay.php?f=37)
-   -   Скрипт прокрутки текста (https://forum.antichat.xyz/showthread.php?t=67672)

Graf I 18.04.2008 18:55

Скрипт прокрутки текста
 
Вродебы он на java, напешите кто знает...

Isis 18.04.2008 19:13

PHP код:

<html>
<
body>

<
script language="JavaScript1.2">


//Specify the marquee's width (in pixels)

var marqueewidth=150

//Specify the marquee's height

var marqueeheight=150

//Specify the marquee's scroll speed (larger is faster)

var speed=2

//Specify the marquee contents

var marqueecontents='<font face="Arial"><strong><big>Скоролинг текста со <a href="http://">ССЫЛКАМИ</a> Можно использовать на главной странице сайта <a href="http://">сайта.</a></big></strong></font>'



if (document.all)

document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')



function 
regenerate(){

window.location.reload()

}

function 
regenerate2(){

if (
document.layers){

setTimeout("window.onresize=regenerate",450)

intializemarquee()

}

}



function 
intializemarquee(){

document.cmarquee01.document.cmarquee02.document.write(marqueecontents)

document.cmarquee01.document.cmarquee02.document.close()

thelength=document.cmarquee01.document.cmarquee02.document.height

scrollit
()

}



function 
scrollit(){

if (
document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){

document.cmarquee01.document.cmarquee02.top-=speed

setTimeout
("scrollit()",100)

}

else{

document.cmarquee01.document.cmarquee02.top=marqueeheight

scrollit
()

}

}



window.onload=regenerate2

</script>





<
ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">

<
layer name="cmarquee02" width=&{marqueewidth}; height=&{marqueeheight};></layer>

</
ilayer>
</
CENTER>
</
body>
</
html


Isis 18.04.2008 19:13

http://www.google.ru/search?hl=ru&q=%D1%81%D0%BA%D1%80%D0%B8%D0%BF%D1%8 2+%D0%BF%D1%80%D0%BE%D0%BA%D1%80%D1%83%D1%82%D0%BA %D0%B8+%D1%82%D0%B5%D0%BA%D1%81%D1%82%D0%B0&lr=&aq =0&oq=%D0%A1%D0%BA%D1%80%D0%B8%D0%BF%D1%82+%D0%BF% D1%80%D0%BE%D0%BA%D1%80%D1%83%D1%82%D0%BA%D0%B8+%D 1%82%D0%B5%D0%BA%D1%81%D1%82%D0%B0

Graf I 18.04.2008 21:07

мне надо в html код вставить в таблицу

mff 07.05.2008 02:14

Очень просто!

<div style="width:700; height:100px; overflow:auto; border:solid 2px #E3D9D0; background-color:#FFFFFF; scrollbar-face-color:#675547; scrollbar-shadow-color:#e3d9d0; scrollbar-highlight-color:#e3d9d0; scrollbar-3dlight-color:#e3d9d0; scrollbar-darkshadow-color:#e3d9d0; scrollbar-track-color:#e3d9d0; scrollbar-arrow-color:#ffffff;"></div>

Единственный косячек этого стиля, не меняются цвета прокрутки в Mozilla, ну и х*й с ней! ;)

GreenBear 07.05.2008 03:16

Цитата:

Сообщение от Graf I
мне надо в html код вставить в таблицу

а еще что надо? ты давай нам задания, нам все равно всем делать нечего - поработаем и подумаем за тебя.

mff 07.05.2008 13:04

GreenBear - точно подметил!


Время: 03:29