Пятница, 2025-07-18, 8:43 AM
Главная | Регистрация | Вход Приветствую Вас Нипайми Кто | RSS

сериал Остров на ТНТ Физрук 3 сезон

[Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Скрипты
LOMДата: Воскресенье, 2007-01-14, 6:36 PM | Сообщение # 1
Photoshop :: Спец По Играм!
Группа: Супер Модэр!
Сообщений: 762
Репутация: 12
Замечания: 0%
Статус: Ушол
Скрипт загрузки страницы...
от Adeptus

Индикатор загрузки*

* Индикатор загрузки - маленькое окошко, которое видит пользователь, пока грузится сайт (использованы исходники от d4).

1. Открываем шаблон
2. В любом месте между тегами <head> и </head> добавляем код:
Code
<script type="text/javascript">    
function hideLoading() {    
document.getElementById('pageIsLoading').style. display = 'none';    
}    
</script>
...
3. Сразу после тега <body> добавляем код:
Code
<div id="pageIsLoading"    
style="    
position: absolute;    
display: block;    
padding-left: 44px;    
padding-right: 12px;    
width: auto;    
height: 46px;    
line-height: 46px;    
border: 1px solid #890000;    
color: #000000;    
font-weight: bold;    
background-color: #e5e5e5;    
background-image: url(http://www.абсолютный_путь_к_папке_images/loadingcircle.gif);    
background-position: 6px center;    
background-repeat: no-repeat;">    
<script type="text/javascript">    
if (typeof window_width == 'undefined' || typeof window_height == 'undefined') {    
var window_width;    
var window_height;    
if( typeof( window.innerWidth ) == 'number' ) {    
window_width = window.innerWidth;    
window_height = window.innerHeight;    
} else if( document.documentElement &&    
( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {    
window_width = document.documentElement.clientWidth;    
window_height = document.documentElement.clientHeight;    
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {    
window_width = document.body.clientWidth;    
window_height = document.body.clientHeight;    
}    
}    
var left = Math.round((window_width - 200) / 2);    
var top = Math.round(((window_height - 46) / 3) + 46);    
document.getElementById('pageIsLoading').style.l eft = left+'px';    
document.getElementById('pageIsLoading').style.t op = top+'px';    
</script>    
Загружается... Ждите...    
</div>
...
Разумеется, настройки стиля отображения и текста можно изменить на ваш вкус.
4. Непосредственно перед тегом </body> в самом конце файла добавляем код:
Code
<script type="text/javascript">    
if (window.addEventListener) {    
window.addEventListener('load', hideLoading, false);    
} else if (window.attachEvent) {    
var r = window.attachEvent("onload", hideLoading);    
} else {    
hideLoading();    
}    
</script>

5. Закидываем прилагаемую картинку в папку images вашего сайта.
6. Тащимся от собственной крутизны...


Пьянство - это не не ваша вина, это ваша беда!
- ДО, - ПОСЛЕ...
 
LOMДата: Воскресенье, 2007-01-14, 6:37 PM | Сообщение # 2
Photoshop :: Спец По Играм!
Группа: Супер Модэр!
Сообщений: 762
Репутация: 12
Замечания: 0%
Статус: Ушол
Случайный текст
Code
<script language="JavaScript"><!--
var h=(Math.random()*10);
   if (h <1) document.writeln("[color=blue]ТЕКСТ[/color]");
   if (h > 1 && h < 2) document.writeln("ТЕКСТ");
   if (h > 2 && h < 3) document.writeln("ТЕКСТ");
   if (h > 3 && h < 4) document.writeln("ТЕКСТ");
   if (h > 4 && h < 5) document.writeln("ТЕКСТ");
   if (h > 5 && h < 6) document.writeln("ТЕКСТ");
   if (h > 6 && h < 7) document.writeln("ТЕКСТ");
   if (h > 7 && h < 8) document.writeln("ТЕКСТ");
   if (h > 8 && h < 9) document.writeln("ТЕКСТ");
   if (h > 9 && h <10) document.writeln("[color=blue]ТЕКСТ[/color]");
// --></script>


Пьянство - это не не ваша вина, это ваша беда!
- ДО, - ПОСЛЕ...
 
LOMДата: Воскресенье, 2007-01-14, 6:37 PM | Сообщение # 3
Photoshop :: Спец По Играм!
Группа: Супер Модэр!
Сообщений: 762
Репутация: 12
Замечания: 0%
Статус: Ушол
Информер мировых новостей
Code
<script language=JavaScript   
src="http://pics.rbc.ru/js/top_last_topnews.js"></script>   
<script>   
<!--   
print_top_news(5,true);   
//-->   
</script>

Ещё http://www.hmn.ru/ и http://www.gismeteo.ru предоставляют информеры погоды.


Пьянство - это не не ваша вина, это ваша беда!
- ДО, - ПОСЛЕ...
 
VENDETTAДата: Среда, 2007-01-24, 4:48 PM | Сообщение # 4
Раскрутиватель Сайтов!
Группа: Конченый Модэр!
Сообщений: 467
Репутация: 9
Замечания: 0%
Статус: Ушол
НУ крут!Ну крут!


 
LOMДата: Четверг, 2007-01-25, 1:07 AM | Сообщение # 5
Photoshop :: Спец По Играм!
Группа: Супер Модэр!
Сообщений: 762
Репутация: 12
Замечания: 0%
Статус: Ушол
whax-whax, Гламурно, Ъ

Пьянство - это не не ваша вина, это ваша беда!
- ДО, - ПОСЛЕ...
 
  • Страница 1 из 1
  • 1
Поиск:

Copyright MyCorp © 2025