Strict Standards: Resource ID#26 used as offset, casting to integer (26) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401

Strict Standards: Resource ID#28 used as offset, casting to integer (28) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401

Strict Standards: Resource ID#29 used as offset, casting to integer (29) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401
ТвойWeb :: Версия для печати :: переход на коректную страницу
ТвойWeb » WebMaster класс » JavaScript » переход на коректную страницу

Страниц (1): [1]
 

1. ustas - 08 Августа, 2008 - 16:26:11 - перейти к сообщению
Очень нужен скрипт который определял бы разрешения экрана и соответственно перенаправлял пользователя на index1.html или index2.html или index3.html...
2. Furax - 08 Августа, 2008 - 22:53:18 - перейти к сообщению
CODE:
<script type="text/javascript">
<!--

switch (screen.width)
{
case 800:
location='index1.html';
break;
case 1024:
location='index2.html';
break;
case 1280:
location='index3.html';
break;
default:
location='default.html';
break;
}

//-->
</script>
3. ustas - 09 Августа, 2008 - 14:10:38 - перейти к сообщению
Большое спасибо!!!

Форум на AlfaSpace.NET


Powered by ExBB
ExBB FM 1.0 RC1 by TvoyWeb.ru
InvisionExBB Style converted by Markus®

[Script Execution time: 0.0277]     [ Gzipped ]