[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Скрипт делающий заголовок сайта анимированным
Дата: Воскресенье, 01.11.2009,   
V.I.P.
Группа: Пользователи
Сообщений: 98
Награды: 2
Репутация: 23
Статус: Отключен
[ (RU) ]
 

Дата: Воскресенье, 01.11.2009, 22:44 | Сообщение # 1


Code
<SCRIPT>  
var titletext="photoshopzone"  
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==7) {step=1}  
if (step==1) {document.title='>==='+thetext+'===<'}  
if (step==2) {document.title='=>=='+thetext+'==<='}  
if (step==3) {document.title='>=>='+thetext+'=<=<'}  
if (step==4) {document.title='=>=>'+thetext+'<=<='}  
if (step==5) {document.title='==>='+thetext+'=<=='}  
if (step==6) {document.title='===>'+thetext+'<==='}  
setTimeout("anim()",200);  
}  
if (document.title)  
window.onload=onload=welcometext  
</SCRIPT>

  • Страница 1 из 1
  • 1
Поиск:

При копировании материала с сайта, ссылка на www.windows-seven.net.ru ОБЯЗАТЕЛЬНА !