Guest User

Untitled

a guest
May 30th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.63 KB | None | 0 0
  1. <html>
  2.  <head>
  3.   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4.   <title>Меню</title>
  5.   <style type="text/css">
  6.    div.count {
  7.     font-family: Fixedsys;
  8.     background: #1c1c1c;
  9.     color: #c8c8c8;
  10.     border-radius: 7px;
  11.     width: 20px;
  12.     height: 20px;
  13.     position: absolute;
  14.     top: 10px;
  15.     text-align: center;
  16.     left: 200px;
  17.     cursor: default;
  18.    }
  19.    .alert{
  20.     transition: height 0.5s linear;
  21.     height: 0px;
  22.     visibility: hidden;
  23.    }
  24.    .count:hover .alert{
  25.     visibility:visible;
  26.     background: rgba(0, 0, 0, 0.8);
  27.     border-radius: 0px 0px 7px 7px;
  28.     width: 320px;
  29.     position: absolute;
  30.     text-align: center;
  31.     left: -150px;
  32.     top: 20px;
  33.  
  34.     height: 60px;
  35.  
  36.     overflow: hidden;
  37.    }
  38.    .count:hover .new_msg{
  39.     visibility:visible;
  40.     height: auto;
  41.    }
  42.    .new_msg {
  43.     padding: 5px;
  44.     border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  45.     border-left: 2px solid rgba(0, 0, 0, 0.5);
  46.     border-right: 2px solid rgba(0, 0, 0, 0.5);
  47.     border-radius: 0 0 5px 5px;
  48.     height: 0px;
  49.     visibility: hidden;
  50.    }
  51.    .new_msg:hover {
  52.     background: rgba(120, 120, 100, 0.8);
  53.     cursor: pointer;
  54.    }
  55.   </style>
  56.  </head>
  57.  <body>
  58.   <div class="count">
  59.    <span>2</span>
  60.    <div class="alert" id="alert_id">
  61.     <div class="new_msg" id="msg_1">
  62.      Собщение 1
  63.     </div>
  64.     <div class="new_msg" id="msg_2">
  65.      Собщение 2
  66.     </div>
  67.    </div>
  68.   </div>
  69.   <script type="text/javascript">
  70.     function start(){
  71.      //document.getElementById('alert_id').style.height = '90px';
  72.     }
  73.     start()
  74.   </script>
  75.  </body>
  76. </html>
Advertisement
Add Comment
Please, Sign In to add comment