SHARE
TWEET

Untitled

a guest Jun 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>laba 8</title>
  6. </head>
  7. <body>
  8.     <script>
  9.         var n;
  10.         var mas=new Array("Красный", "Желтый", "Голубой", "Белый", "Зеленый");
  11.         var i=0;
  12.         function out(n){
  13.             it.value=" ";
  14.             it.value=mas[n-1];
  15.         }
  16.         function out2(){
  17.             it.value=" ";
  18.             it.value=mas[i];
  19.             i++;
  20.             if(i>4) i=0;
  21.         }
  22.     </script>
  23.     <center><div class="a" style="width:300px; border: 1px #000 solid; height: 150px; ">
  24.         <div class="b" style="width:200px;height: 50px; text-align: left; margin-left: 50px;"><p onmouseover="document.title = 'onmouseover'; out(1)" onmouseout="document.title = 'onmouseout'; out(5)" style="margin-left: 10px;">Цвета</p>
  25.             <div><input onchange="document.title = 'onchange'; out(2)" onselect="document.title = 'onselect'; out(3)" type="text"  id="it" value="" maxlength="100"></input></div>
  26.             <button ondblclick="document.title = 'ondblclick'; out(4)" style="float: left; margin-top: 10px">OK</button><button onclick="alert(mas)" style="float: right; margin-top: 10px">ПРОСМОТР</button>
  27.             <button onclick="out2()" style="float: center; margin-top: 10px">ПРОСМОТР2</button>
  28.         </div>
  29.     </div></center>
  30. </body>
  31. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top