Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Меню</title>
- <style type="text/css">
- div.count {
- font-family: Fixedsys;
- background: #1c1c1c;
- color: #c8c8c8;
- border-radius: 7px;
- width: 20px;
- height: 20px;
- position: absolute;
- top: 10px;
- text-align: center;
- left: 200px;
- cursor: default;
- }
- .alert{
- transition: height 0.5s linear;
- height: 0px;
- visibility: hidden;
- }
- .count:hover .alert{
- visibility:visible;
- background: rgba(0, 0, 0, 0.8);
- border-radius: 0px 0px 7px 7px;
- width: 320px;
- position: absolute;
- text-align: center;
- left: -150px;
- top: 20px;
- height: 60px;
- overflow: hidden;
- }
- .count:hover .new_msg{
- visibility:visible;
- height: auto;
- }
- .new_msg {
- padding: 5px;
- border-bottom: 2px solid rgba(0, 0, 0, 0.5);
- border-left: 2px solid rgba(0, 0, 0, 0.5);
- border-right: 2px solid rgba(0, 0, 0, 0.5);
- border-radius: 0 0 5px 5px;
- height: 0px;
- visibility: hidden;
- }
- .new_msg:hover {
- background: rgba(120, 120, 100, 0.8);
- cursor: pointer;
- }
- </style>
- </head>
- <body>
- <div class="count">
- <span>2</span>
- <div class="alert" id="alert_id">
- <div class="new_msg" id="msg_1">
- Собщение 1
- </div>
- <div class="new_msg" id="msg_2">
- Собщение 2
- </div>
- </div>
- </div>
- <script type="text/javascript">
- function start(){
- //document.getElementById('alert_id').style.height = '90px';
- }
- start()
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment