Начало
Пользовательские детали
Процент экрана
(Требует 4.0 + браузеры), Показывает, какой процент общей площади Вашего экрана используется окном браузера.
JavaScript Процент экрана
<!-- TWO STEPS TO INSTALL SCREEN PERCENTAGE: 1. Include the first code in the HEAD of your HTML document 2. Copy the coding into the BODY of your HTML document --> <!-- STEP ONE: Add this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin // IE Compatability by Errol Burrow (errol@thru.net) function getwindowsize() { if (navigator.userAgent.indexOf("MSIE") > 0) { var sSize = (document.body.clientWidth * document.body.clientHeight); return sSize; } else { var sSize = (window.outerWidth * window.outerHeight); return sSize; } return; } // End --> </script> </head> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var percent = Math.round((getwindowsize()/(screen.width * screen.height)*100) * Math.pow(10, 0)); document.write("This window is using about " + percent + "% of your available screen."); // End --> </script> </center> <p><center> <font face="arial, helvetica" SIZE="-2">Free JavaScripts provided<br> by <a href="http://JavaScripts-do.narod.ru">JavaScripts-do.narod.ru</a></font> </center><p> <!-- Script Size: 1.45 KB -->