Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
- Voting
- </title>
- <script>
- function getXmlHttp() {
- var xmlhttp;
- try {
- xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (E) {
- xmlhttp = false;
- }
- }
- if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
- xmlhttp = new XMLHttpRequest();
- }
- return xmlhttp;
- }
- function voteHandler(mark) {
- request = getXmlHttp();
- if (request) {
- request.open('GET', "votingHandler.aspx?mark="+mark, true);
- request.onreadystatechange = addition;
- request.send();
- }
- }
- function addition() {
- if (request.readyState == 4) {
- if (request.status == 200) {
- document.getElementById("voting").innerHTML = request.responseText;
- longPoll();
- //document.getElementById("voting").innerHTML = "<iframe id='endless_iframe' src='votingHandler.aspx' style='width: 1px; height: 1px; visibility: hidden; position: absolute;'></iframe>"
- }
- }
- }
- function longPoll() {
- request = getXmlHttp();
- if (request) {
- request.open('POST', "votingHandler.aspx", true);
- request.onreadystatechange = addition;
- request.send();
- }
- }
- function updateHandler() {
- request = getXmlHttp();
- if (request) {
- longPoll();
- }
- }
- </script>
- <script type="text/javascript">
- var screenH = window.innerHeight
- || document.documentElement.clientHeight
- || document.body.clientHeight;
- var screenW = window.innerWidth
- || document.documentElement.clientWidth
- || document.body.clientWidth;
- function loadingPage() {
- digitalWatch();
- document.getElementById("container").style.minHeight = (Number)(screenH - 140) + "px";
- if (screenW > 1100) {
- document.getElementById("center").style.width = "600px";
- } else {
- document.getElementById("center").style.width = (Number)(screenW * 0.4) + "px";
- }
- if ((Number)(screenW) > 1500) {
- document.getElementById("left").style.right = "20px";
- } else {
- document.getElementById("left").style.right = "230px";
- }
- }
- function resizeHandler(event) {
- screenH = window.innerHeight
- || document.documentElement.clientHeight
- || document.body.clientHeight;
- screenW = window.innerWidth
- || document.documentElement.clientWidth
- || document.body.clientWidth;
- document.getElementById("container").style.minHeight = (Number)(screenH - 140) + "px";
- if ((Number)(screenW) > 1100) {
- document.getElementById("center").style.width = "600px";
- } else {
- document.getElementById("center").style.width = (Number)(screenW * 0.4) + "px";
- }
- if ((Number)(screenW) > 1500) {
- document.getElementById("left").style.right = "20px";
- } else {
- //alert(screenW);
- document.getElementById("left").style.right = "230px";
- }
- }
- function digitalWatch() {
- var date = new Date();
- var hours = date.getHours();
- var minutes = date.getMinutes();
- var seconds = date.getSeconds();
- if (hours < 10) hours = "0" + hours;
- if (minutes < 10) minutes = "0" + minutes;
- if (seconds < 10) seconds = "0" + seconds;
- document.getElementById("digital_watch").innerHTML = hours + ":" + minutes + ":" + seconds;
- setTimeout("digitalWatch()", 1000);
- }
- function offsetPosition(e) {
- var offsetTop = 0;
- do { offsetTop += e.offsetTop; } while (e = e.offsetParent);
- return offsetTop;
- }
- window.onscroll = function () {
- var left = document.getElementById("left");
- var OP = offsetPosition(left);
- if (OP < window.pageYOffset - 30 || OP < document.lastChild.scrollTop) {
- left.style.marginLeft = "0";
- left.style.left = "195pt";
- left.style.top = "0";
- left.style.position = "fixed";
- if (OP < window.pageXOffset) {
- left.style.left = 195 - window.pageXOffset + "pt";
- }
- if (OP < document.lastChild.scrollLeft) {
- left.style.left = 195 - document.lastChild.scrollLeft + "pt";
- }
- }
- else {
- left.style.marginLeft = "-100%";
- left.style.position = "relative";
- left.style.left = "auto";
- left.style.right = "235pt";
- }
- }
- </script>
- <style>
- html, body {
- height: 100%;
- min-height:100%;
- /*min-width: 1300px;*/
- padding: 0;
- margin: 0;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- font-size: 12pt;
- }
- /*body {
- background-image: url(images/imbc-2.jpg);
- background-attachment:fixed;
- background-repeat:no-repeat;
- background-size:cover;
- }*/
- #bg {
- position: fixed;
- min-height:540px;
- min-width:1024px;
- width: 100%;
- height: 100%;
- }
- #body {
- position: absolute;
- width: 100%;
- height: 100%;
- z-index: 1;
- }
- #header {
- padding: 0px 10px;
- position:relative;
- display:block;
- margin-left: 20px;
- margin-right: 16px;
- height:70px;
- min-width: 700pt;
- clear:both;
- background-color: lightseagreen;
- box-shadow: 0px 0px 20px black;
- z-index: 5;
- }
- #container {
- margin: 0px 180pt 0px 180pt;
- padding-left: 250px;
- padding-right: 20px;
- min-height: 100%;
- position:relative;
- float:left;
- background-image: url(images/wash-white-30.png);
- z-index: 1;
- }
- #container .column {
- position:relative;
- float: left;
- margin-bottom: 20px;
- background: #fff;
- box-shadow: 0px 0px 20px black;
- }
- #center {
- width: 600px;
- margin-top: 70px;
- padding: 10px;
- border: solid #D9E0E7;
- border-width: 2px 2px 2px;
- z-index: 10;
- }
- #left {
- border-bottom: solid #D9E0E7;
- border-width: 0px 0px 2px;
- width: 200px;
- margin-left: -100%;
- right: 230px;
- padding-left: 10px;
- text-align:left;
- position:fixed;
- z-index : 5;
- }
- #footer {
- margin: 16px 16px 0px 16px;
- height: 70px;
- margin-top: -50px;
- min-width: 700pt;
- clear:both;
- background-color:lightsalmon;
- text-align:center;
- box-shadow: 0px 0px 20px black;
- }
- .scale {
- width:100%;
- text-align:center;
- background-color:lightblue;
- }
- .percent {
- float:right;
- }
- </style>
- </head>
- <body onload="loadingPage()" onresize="resizeHandler()">
- <img src="images/imbc-2.jpg" id="bg" alt="" />
- <div id="body">
- <div id="header">
- <div>
- <div style= "float:left; font-weight:500; font-size:24pt">Счетчик</div>
- <div id="digital_watch" style="color:royalblue; font-size: 120%; font-weight: bold; float:right;"></div>
- <form name="web" method="get" action="http://yandex.ru/yandsearch" style="float:right; clear:both;">
- <input type="text" style="font-size:12pt;" name="text" size="16" placeholder="Поиск..." />
- <input type="submit" style="font-size:12pt;" value="Поиск" />
- <input type="hidden" name="serverurl" value="http://urfu.ru" />
- </form>
- </div>
- </div>
- <div id="container">
- <div id="center" class="column">
- <div id="voting">
- <form method='get' name='voting'>Опрос: ваша оценка сайту<p><input type='radio' name='mark' value='1' onclick='voteHandler(this.value)' />1</p><p><input type='radio' name='mark' value='2' onclick='voteHandler(this.value)'/>2</p><p><input type='radio' name='mark' value='3' onclick='voteHandler(this.value)'/>3</p><p><input type='radio' name='mark' value='4' onclick='voteHandler(this.value)'/>4</p><p><input type='radio' name='mark' value='5' onclick='voteHandler(this.value)'/>5</p></form>
- </div>
- </div>
- <div id="left" class="column">
- <p><a href="index.html">Главная</a></p>
- <p><a href="aboutMePage.html">Об авторе</a></p>
- <p><a href="photoGalleryPage.html">Галерея</a></p>
- <p><a href="referencesPage.html">Контакты</a></p>
- <p><a href="guestBookPage.aspx">Гостевая книга</a></p>
- <p><a href="votePage.aspx">Опрос</a></p>
- <p><a href="counter.aspx">Счетчик</a></p>
- </div>
- </div>
- <div id="footer">
- © Алексей Захаров, 2013
- </div>
- </div>
- <div id="hid" style="visibility: hidden;position:fixed;top:0;left:0;width:100%">
- <table bgcolor='gray' cellpadding='1' cellspacing='1'><tr bgcolor='gray'><td><table width='100%' height='20' bgcolor='lightyellow' cellpadding=0 cellspacing=8><tr><td>
- <font face='courier new' color=red><small>
- <font color='orangered'><b>NOTICE:</b></font>This website (http://aspspider.ws/mrn_phoenix/guestBookPage.aspx) is hosted using AspSpider.com free educational hosting service.
- Do not provide any sensitive information through this website unless you trust the owner.
- <a href='http://www.aspspider.com/team/ContactUs.aspx?Subject=..' target="_blank">Report Abuse</a>
- Visit <a href='http://www.aspspider.com'>AspSpider.com</a></small></font>.
- </td></tr></table></td></tr></table>
- </div>
- <script type="text/javascript">
- function showIt()
- {
- if ( document.getElementById("hid").style.visibility == "hidden")
- {
- document.getElementById("hid").style.visibility = "visible";
- }
- else
- {
- document.getElementById("hid").style.visibility = "hidden";
- }
- setTimeout("showIt()", 4000); // after 1 sec
- }
- setTimeout("showIt()", 2000); // after 1 sec
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement