Code
<script language=JavaScript>
var titletext="Сборник JavaScripts > Бегающий заголовок"
var thetext=""
var started=false
var step=0
var times=1
function welcometext()
{
times--
if (times==0)
{
if (started==false)
{
started = true;
document.title = titletext;
setTimeout("anim()",1);
}
thetext = titletext;
}
}
function showstatustext(txt)
{
thetext = txt;
setTimeout("welcometext()",4000)
times++
}
function anim()
{
step++
if (step==29) {step=1}
if (step==29) {document.title='[ ucoz.at.ua ~~~~~~~~~~~~~~]'}
if (step==28) {document.title='[~ ucoz.at.ua ~~~~~~~~~~~~~]'}
if (step==27) {document.title='[~~ ucoz.at.ua ~~~~~~~~~~~~]'}
if (step==26) {document.title='[~~~ ucoz.at.ua ~~~~~~~~~~~]'}
if (step==25) {document.title='[~~~~ ucoz.at.ua ~~~~~~~~~~]'}
if (step==24) {document.title='[~~~~~ ucoz.at.ua ~~~~~~~~~]'}
if (step==23) {document.title='[~~~~~~ ucoz.at.ua ~~~~~~~~]'}
if (step==22) {document.title='[~~~~~~~ ucoz.at.ua ~~~~~~~]'}
if (step==21) {document.title='[~~~~~~~~ ucoz.at.ua ~~~~~~]'}
if (step==20) {document.title='[~~~~~~~~~ ucoz.at.ua ~~~~~]'}
if (step==19) {document.title='[~~~~~~~~~~ ucoz.at.ua ~~~~]'}
if (step==18) {document.title='[~~~~~~~~~~~ucoz.at.ua ~~~]'}
if (step==17) {document.title='[~~~~~~~~~~~~ ucoz.at.ua ~~]'}
if (step==16) {document.title='[~~~~~~~~~~~~~ ucoz.at.ua ~]'}
if (step==15) {document.title='[~~~~~~~~~~~~~~ ucoz.at.ua ]'}
if (step==14) {document.title='[~~~~~~~~~~~~~ ucoz.at.ua ~]'}
if (step==13) {document.title='[~~~~~~~~~~~~ ucoz.at.ua ~~]'}
if (step==12) {document.title='[~~~~~~~~~~~ ucoz.at.ua ~~~]'}
if (step==11) {document.title='[~~~~~~~~~~ ucoz.at.ua ~~~~]'}
if (step==10) {document.title='[~~~~~~~~~ucoz.at.ua ~~~~~]'}
if (step==9) {document.title='[~~~~~~~~ ucoz.at.ua ~~~~~~]'}
if (step==8) {document.title='[~~~~~~~ ucoz.at.ua ~~~~~~~]'}
if (step==7) {document.title='[~~~~~~ ucoz.at.ua ~~~~~~~~]'}
if (step==6) {document.title='[~~~~~ ucoz.at.ua ~~~~~~~~~]'}
if (step==5) {document.title='[~~~~ ucoz.at.ua ~~~~~~~~~~]'}
if (step==4) {document.title='[~~~ ucoz.at.ua ~~~~~~~~~~~]'}
if (step==3) {document.title='[~~ ucoz.at.ua ~~~~~~~~~~~~]'}
if (step==2) {document.title='[~ ucoz.at.ua ~~~~~~~~~~~~~]'}
if (step==1) {document.title='[ ucoz.at.ua ~~~~~~~~~~~~~~]'}
setTimeout("anim()",150); //скорость выбега, чем больше тем медленней выбег.
}
if (document.title)
window.onload=onload=welcometext
</script>