Скрипт Java Script. Скрипт модуль новостей. Описание: модуль обновления новостей, который вращается среди различных сообщений. Число сообщений может быть добавлено к модулю обновления. Этот сценарий использует специальный механизм, чтобы динамически определить высоту самого длинного сообщения, и устанавливает себя, чтобы соответствовать этой высоте.

Шаг №1 - Скопируйте приведенный ниже код между тэгами <HEAD> и <HEAD>

<script>
<!--
function correct(){
if (finished){
setTimeout("begin()",3000)
}
return true
}
window.onerror=correct
function begin(){
if (!document.all)
return
if (maxheight==null)
maxheight=temp.offsetHeight
whatsnew.style.height=maxheight
temp.style.display="none"
c=1
finished=true
change()
}
//-->
</script>

<style>
<!--
#whatsnew a{color:730073;text-decoration:none}
#whatsnew, #temp {font-weight:bold; font-family:Arial}
#whatsnew a:hover{color:red}
-->
</style>

Шаг №2 - Скопируйте приведенный ниже код где будет печататься текст.

<script language="javascript1.2">
<!--

var head=''
var top=0
var maxheight
var finished=false
var tickers=new Array()

tickers[0]='<a href="../index.php">Добро пожаловать в мир скриптов</a>'

tickers[1]='<a href="../effect/index.php">Эффект текста "Печатная машинка"</a>'

tickers[2]='<a href="../../index.php?go=sitemap">Прост в установке и не требует поддержки сервера</a>'

tickers[3]='<a href="../text/index.php?go=texttyping">Измените цвет, размер шрифта и время появления</a>'

tickers[4]='<a href="index.php">Каждая напечатанная строка имеет свою ссылку</a>'

for (i=1;i<=tickers.length-1;i++){
if (tickers[i].length>=tickers[top].length)
top=i
}
if (document.all)
document.write('<span id="whatsnew" style="width:100%;height=10;filter:revealTrans(duration=2,transition=19)">'+tickers[0]+'</span>')

function change(){
whatsnew.innerHTML=''
whatsnew.filters.revealTrans.apply()
whatsnew.filters.revealTrans.play()
whatsnew.innerHTML=tickers[c]
if (c==tickers.length-1)
c=0
else
c+=1
setTimeout("change()",5000)
}
if (document.all)
document.write('<span id=ns style="display:none;">')
//-->
</script>
<!--Insert alternate HTML codes here
that will be seen by browsers OTHER
than IE 4.x-->
</span>

<span id=temp style="position:absolute;left:0;top:0" style=&{head};>
<script>
<!--
if (document.all){
temp.style.width=whatsnew.style.width
document.write(tickers[top])
}
//-->
</script>
</span><br>

Шаг №3 - Скопируйте приведенный ниже код в тэг <BODY>

<body onLoad="begin()">