Guest User

Untitled

a guest
Jul 21st, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. <head>
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  3. <title>Untitled Document</title>
  4. <style type="text/css">
  5.  
  6. a.underbar-tag0 {
  7. display: block;
  8. width: 90px;
  9. height: 32px;
  10. float: left;
  11. color:#000;
  12. background-image: url(../../Root/buy_blue.png);
  13. background-repeat: no-repeat;
  14. background-position: 0px 0px;
  15. margin-right: 0px;
  16. padding-top: 9px;
  17. padding-left: 40px;
  18. font-size: 16px;
  19. font-family: Arial, Helvetica, sans-serif;
  20. margin-left: 80px;
  21. font-weight: bold;
  22. }
  23. a.underbar-tag0:hover {
  24. color:#9C0;
  25. background-image: url(../../Root/buy_blue.png);
  26. background-repeat: no-repeat;
  27. background-position: 0px -45px;
  28. }
  29. a.underbar-tag1 {
  30. display: block;
  31. width: 114px;
  32. height: 32px;
  33. float: left;
  34. color:#000;
  35. background-image: url(../../Root/benefits_blue.png);
  36. background-repeat: no-repeat;
  37. background-position: 0px 0px;
  38. margin-right: 40px;
  39. padding-top: 9px;
  40. padding-left: 78px;
  41. font-size: 16px;
  42. font-family: Arial, Helvetica, sans-serif;
  43. font-weight: bold;
  44. margin-left: 60px;
  45. }
  46. a.underbar-tag1:hover {
  47. color:#FFF;
  48. background-image: url(../../Root/benefits_blue.png);
  49. background-repeat: no-repeat;
  50. background-position: 0px -45px;
  51. }
  52. a.underbar-tag2 {
  53. display: block;
  54. width: 122px;
  55. height: 32px;
  56. float: left;
  57. color:#000;
  58. background-image: url(../../Root/help_blue.png);
  59. background-repeat: no-repeat;
  60. background-position: 0px 0px;
  61. margin-right: 40px;
  62. padding-top: 9px;
  63. padding-left: 70px;
  64. font-size: 16px;
  65. font-family: Arial, Helvetica, sans-serif;
  66. font-weight: bold;
  67. margin-left: 40px;
  68. }
  69. a.underbar-tag2:hover {
  70. color:#FFF;
  71. background-image: url(../../Root/help_blue.png);
  72. background-repeat: no-repeat;
  73. background-position: 0px -45px;
  74. }
  75. a.underbar-tag3 {
  76. display: block;
  77. width: 120px;
  78. height: 32px;
  79. float: left;
  80. color:#000;
  81. background-image: url(../../Root/kostnad_blue.png);
  82. background-repeat: no-repeat;
  83. background-position: 0px 0px;
  84. margin-right: 40px;
  85. padding-top: 9px;
  86. padding-left: 72px;
  87. font-size: 16px;
  88. font-family: Arial, Helvetica, sans-serif;
  89. font-weight: bold;
  90. margin-left: 40px;
  91. }
  92. a.underbar-tag3:hover {
  93. color:#FFF;
  94. background-image: url(../../Root/kostnad_blue.png);
  95. background-repeat: no-repeat;
  96. background-position: 0px -45px;
  97. }
  98. .popup {
  99. position: absolute;
  100. display: none;
  101. z-index: 50;
  102. border-collapse: collapse;
  103. background-image: url(../../Root/recommended.png);
  104. height: 191px;
  105. width: 150px;
  106. background-repeat: no-repeat;
  107. background-position: 0px 0px;
  108. float: left;
  109. }
  110.  
  111. </style>
  112.  
  113. <script src="jquery.js" type="text/javascript"></script>
  114.  
  115. <script type="text/javascript">
  116. <!--
  117.  
  118. $(function () {
  119. $('.underbar').each(function () {
  120. var distance = 10;
  121. var time = 250;
  122. var hideDelay = 500;
  123.  
  124. var hideDelayTimer = null;
  125.  
  126. var beingShown = false;
  127. var shown = false;
  128. var trigger = $('.underbar-tag0', this);
  129. var info = $('.popup', this).css('opacity', 0);
  130.  
  131.  
  132. $([trigger.get(0), info.get(0)]).mouseover(function () {
  133. if (hideDelayTimer) clearTimeout(hideDelayTimer);
  134. if (beingShown || shown) {
  135. // don't trigger the animation again
  136. return;
  137. } else {
  138. // reset position of info box
  139. beingShown = true;
  140.  
  141. info.css({
  142. top: 20,
  143. left: 0,
  144. display: 'block'
  145. }).animate({
  146. top: '-=' + distance + 'px',
  147. opacity: 1
  148. }, time, 'swing', function() {
  149. beingShown = false;
  150. shown = true;
  151. });
  152. }
  153.  
  154. return false;
  155. }).mouseout(function () {
  156. if (hideDelayTimer) clearTimeout(hideDelayTimer);
  157. hideDelayTimer = setTimeout(function () {
  158. hideDelayTimer = null;
  159. info.animate({
  160. top: '-=' + distance + 'px',
  161. opacity: 0
  162. }, time, 'swing', function () {
  163. shown = false;
  164. info.css('display', 'none');
  165. });
  166.  
  167. }, hideDelay);
  168.  
  169. return false;
  170. });
  171. });
  172. });
  173.  
  174. //-->
  175. </script>
  176.  
  177. </head>
  178.  
  179. <body>
  180.  
  181. <div class="bg"></div>
  182.  
  183. <div class="underbar">
  184.  
  185. <div>
  186. <a href="" class="underbar-tag0">Köp nu</a>
  187. </div>
  188.  
  189. <table id="dpop" class="popup"></table>
  190.  
  191. <a href="" class="underbar-tag1">Fördelar</a>
  192.  
  193. <a href="" class="underbar-tag2">Nybörjare?</a>
  194.  
  195. <a href="" class="underbar-tag3">Kostnad</a>
  196.  
  197. </div>
  198.  
  199. </body>
  200.  
  201. </html>
Add Comment
Please, Sign In to add comment