Browser_complex (При заходе на страницу, расскажет все о Вашем браузере и многое другое.)
<script language="JavaScript"><!-- var h=(new Date()).getHours(); if (h > 4 && h < 12) document.writeln("Доброе утро!"); if (h > 11 && h < 18) document.writeln("Добрый день!"); if (h > 17 && h < 24) document. writeln("Добрый вечер!"); if (h > 23 || h < 5) document.writeln("Доброй ночи!"); // --></script></strong></font></small></u> <dl> <dt><font face="Times New Roman"><small>Ваш браузер: <font color="#004080"><strong><script language="JavaScript"> document.write(navigator.appName);</script></strong></font> <br> Версия вашего броузера: <font color="#004080"><strong><script language="JavaScript">document.write(navigator.appVersion);</script></strong></font> с разрешением экрана монитора <font color="#004080"><strong><script language="JavaScript"> <!-- if (self.screen) { // for NN4 and IE4 width = screen.width height = screen.height } else if (self.java) { // for NN3 with enabled Java var jkit = java.awt.Toolkit.getDefaultToolkit(); var scrsize = jkit.getScreenSize(); width = scrsize.width; height = scrsize.height; }else{ width = height = 'x' // for all other browsers } if (width == 640) { document.writeln('640x480') } else if (width == 800) { document.writeln('800x600') } else if (width == 1024) { document.writeln('1024x768') } else if (width == 1280) { document.writeln('1280x?') } else { document.writeln('I don`t know your resolution') } //--> </script></strong></font></small></font></dt> <dt><small><font face="Times New Roman">Ваша кодировка </font><font face="Times New Roman" color="#004080"><strong><script> var u=navigator.userAgent; if (u.indexOf("Win") != -1) // Текст в 1251 document.writeln ("Windows 1251") ; else if (u.indexOf("DOS") != -1 || u.indexOf("OS/2") != -1) // Текст в 866 document.writeln("MS-DOS CP866"); else // Текст в K018 document.writein ( "лПДЙТПЧЛБ KOI8-R") ; </script></strong></font></small></dt> <dt><font size="2" color="#000000" face="Times New Roman">А пришли вы к нам </font><font size="2" face="Times New Roman" color="#004080"><strong><script language="JavaScript"> var caution = false function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "") if (!caution || (name + "=" + escape(value)).length <= 4000) document.cookie = curCookie else if (confirm("Cookie exceeds 4KB and will be cut!")) document.cookie = curCookie } function getCookie(name) { var prefix = name + "=" var cookieStartIndex = document.cookie.indexOf(prefix) if (cookieStartIndex == -1) return null var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) } function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT" } } function fixDate(date) { var base = new Date(0) var skew = base.getTime() if (skew > 0) date.setTime(date.getTime() - skew) } var now = new Date() fixDate(now) now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000) var visits = getCookie("counter") if (!visits) visits = 1 else visits = parseInt(visits) + 1 setCookie("counter", visits, now) document.write("" + visits + "") </script>
|
Категория: Скрипты | Добавил: worldofskripts (11.03.2007)
|
Просмотров: 453
| Рейтинг: 0.0 |
|