Несколько сообщений подрят.
08.06.2009, 23:29 | |
Несколько сообщений подрят. ----------------------------------------------------------------- Пример использования скрипта: ----------------------------------------------------------------- Код скрипта: Вставьте между тегами <HEAD></HEAD> <SCRIPT language="javascript"> <!-- //test //DO NOT REMOVE //alert("Yowser!"); var bName = navigator.appName; var bVer = integer(navigator.appVersion); var ver; //DO NOT CHANGE ANYTHING BELOW THIS POINT function browserCheck() { if (bName == "Netscape" && bVer == 1) ver = "n1"; else if (bName == "Netscape" && bVer == 2) ver = "n2"; else if (bName == "Netscape" && bVer == 3) ver = "n3"; else if (bName == "Netscape" && bVer == 4) ver = "n4"; else if (bName == "Netscape" && bVer == 5) ver = "n5"; else if (bName == "Netscape" && bVer == 6) ver = "n6"; else if (bName == "Microsoft Internet Explorer" && bVer == 1) ver = "ie1"; else if (bName == "Microsoft Internet Explorer" && bVer == 2) ver = "ie2"; else if (bName == "Microsoft Internet Explorer" && bVer == 3) ver = "ie3"; else if (bName == "Microsoft Internet Explorer" && bVer == 4) ver = "ie4"; else if (bName == "Microsoft Internet Explorer" && bVer == 5) ver = "ie5"; else if (bName == "Microsoft Internet Explorer" && bVer == 6) ver = "ie6"; else if (bName == "Microsoft Internet Explorer" && bVer == 7) ver = "ie7"; if (ver == "ie5" || "ie6" || "ie7" || "n4" || "n5" || "n6") { //you may put wut ever you want within the quotes alert("Сообщение 1"); alert("Сообщение 2"); alert("Сообщение 3"); alert("Сообщение 4"); alert("Еще раз кликни внизу"); } else if (ver == "ie4" || "ie3" || "ie2" || "ie1" || "n3" || "n2" || "n1") { //put wut you want to tell the user if their browser version is'nt high enough alert("It is strongly advised that you upgrade your browser."); } } //--> </SCRIPT> Вставьте в тег <BODY> onLoad="browserCheck();" | |
| |
Просмотров: 434 | Загрузок: 0 | |
Всего комментариев: 0 | |