Начало
Пользовательские детали
Таблицы стилей Резолюцией
Загружает таблицу стилей в зависимости от разрешения экрана пользователя. Включает размер по умолчанию для пользователей Netscape.
JavaScript Таблицы стилей Резолюцией
<!-- ONE STEP TO INSTALL STYLE SHEETS BY RESOLUTION: 1. Copy the coding into the HEAD of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <!-- Set default stylesheet for Netscape users at 800 x 600 --> <link rel="stylesheet" type="text/css" href="netscape.css"> <!-- Set variable stylesheets for Internet Explorer users --> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin //document.write('Your settings are ' + screen.width + ' x ' + screen.height + ''); if (screen.width == 640) { document.write('<link rel="stylesheet" type="text/css" href="640.css">'); //alert("Style Sheet for 640 x 480 would have been loaded."); } if (screen.width == 800) { document.write('<link rel="stylesheet" type="text/css" href="800.css">'); //alert("Style Sheet for 800 x 600 would have been loaded."); } if (screen.width == 1024) { document.write('<link rel="stylesheet" type="text/css" href="1024.css">'); //alert("Style Sheet for 1024 x 768 would have been loaded."); } if (screen.width == 1280) { document.write('<link rel="stylesheet" type="text/css" href="1280.css">'); //alert("Style Sheet for 1280 x 960 would have been loaded."); } if (screen.width == 1600) { document.write('<link rel="stylesheet" type="text/css" href="1600.css">'); //alert("Style Sheet for 1600 x 1200 would have been loaded."); } // End --> </script> <!-- Script Size: 1.74 KB -->