Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Garulian Empire Map</title>
  4. <link rel="shortcut icon" href="fire.ico">
  5. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  6. <script src="index.js"></script>
  7. </head>
  8. <body>
  9.  
  10.  
  11. <img src="gem_2000x.png" alt="" usemap="#Map" />
  12.  
  13.  
  14.  
  15. <map name="Map" id="Map">
  16. <div class="mappoints">
  17. <area alt="" title="" href="" id="area1" shape="circle" coords="1055,662,8" />
  18. <area alt="" title="" href="" id="area2" shape="circle" coords="1205,656,8" />
  19. <area alt="" title="" href="" id="area3" shape="circle" coords="1055,742,8" />
  20. <area alt="" title="" href="" id="area4" shape="circle" coords="1333,1005,8" />
  21. <area alt="" title="" href="" id="area5" shape="circle" coords="1329,1038,8" />
  22. <area alt="" title="" href="" id="area6" shape="circle" coords="1028,1364,8" />
  23. <area alt="" title="" href="" id="area7" shape="circle" coords="1046,1364,8" />
  24. <area alt="" title="" href="" id="area8" shape="circle" coords="935,1423,8" />
  25. <area alt="" title="" href="" id="area9" shape="circle" coords="1029,1437,8" />
  26. <area alt="" title="" href="" id="area10" shape="circle" coords="1030,1462,8" />
  27. <area alt="" title="" href="" id="area11" shape="circle" coords="1121,1470,8" />
  28. <area alt="" title="" href="" id="area12" shape="circle" coords="1333,1380,8" />
  29. <area alt="" title="" href="" id="area13" shape="circle" coords="1361,1405,8" />
  30. </div>
  31. </map>
  32.  
  33. <div id="infodiv"></div>
  34.  
  35. </body>
  36. </html>
  37.  
  38.  
  39.  
  40.  
  41.  
  42. <style>
  43. body {
  44. background-color: rgb(157,145,105);
  45. }
  46.  
  47. #infodiv {
  48. float: left;
  49. position: absolute;
  50. display: none;
  51. -webkit-border-radius: 28;
  52. -moz-border-radius: 28;
  53. border-radius: 28px;
  54. text-shadow: 1px 1px 3px #666666;
  55. font-family: Arial;
  56. color: #ffffff;
  57. font-size: 20px;
  58. background: #b5a602;
  59. padding: 10px 20px 10px 20px;
  60. border: solid #227dcc 3px;
  61. text-decoration: none;
  62. }
  63. </style>
  64.  
  65.  
  66.  
  67. <script>
  68. $(".mappoints").on({
  69. mouseleave: function () {
  70. $('#infodiv').css({display: "none"});
  71. }
  72. });
  73.  
  74.  
  75.  
  76. $("#area1").on({
  77. mouseenter: function () {
  78. $('#infodiv').css({display: "block"});
  79. $('#infodiv').text("Pirate Hub");
  80. }});
  81.  
  82. $("#area2").on({
  83. mouseenter: function () {
  84. $('#infodiv').css({display: "block"});
  85. $('#infodiv').text("Empire Hub");
  86. }});
  87.  
  88. $("#area3").on({
  89. mouseenter: function () {
  90. $('#infodiv').css({display: "block"});
  91. $('#infodiv').text("Boats");
  92. }});
  93.  
  94. $("#area4").on({
  95. mouseenter: function () {
  96. $('#infodiv').css({display: "block"});
  97. $('#infodiv').text("Ice Pyramid");
  98. }});
  99.  
  100. $("#area5").on({
  101. mouseenter: function () {
  102. $('#infodiv').css({display: "block"});
  103. $('#infodiv').text("TnT Shisha Bar");
  104. }});
  105.  
  106. $("#area6").on({
  107. mouseenter: function () {
  108. $('#infodiv').css({display: "block"});
  109. $('#infodiv').text("Radiant Tower");
  110. }});
  111.  
  112. $("#area7").on({
  113. mouseenter: function () {
  114. $('#infodiv').css({display: "block"});
  115. $('#infodiv').text("PvP Arena");
  116. }});
  117.  
  118. $("#area8").on({
  119. mouseenter: function () {
  120. $('#infodiv').css({display: "block"});
  121. $('#infodiv').text("PvP Arena");
  122. }});
  123.  
  124. $("#area9").on({
  125. mouseenter: function () {
  126. $('#infodiv').css({display: "block"});
  127. $('#infodiv').text("Radiant Chaple");
  128. }});
  129.  
  130. $("#area10").on({
  131. mouseenter: function () {
  132. $('#infodiv').css({display: "block"});
  133. $('#infodiv').text("Old Hub");
  134. }});
  135.  
  136. $("#area11").on({
  137. mouseenter: function () {
  138. $('#infodiv').css({display: "block"});
  139. $('#infodiv').text("PvP Arena");
  140. }});
  141.  
  142. $("#area12").on({
  143. mouseenter: function () {
  144. $('#infodiv').css({display: "block"});
  145. $('#infodiv').text("PvP Arena");
  146. }});
  147.  
  148. $("#area13").on({
  149. mouseenter: function () {
  150. $('#infodiv').css({display: "block"});
  151. $('#infodiv').text("Julias Church");
  152. }});
  153.  
  154.  
  155.  
  156.  
  157. $(document).bind('mousemove', function(e){
  158. $('#infodiv').css({
  159. left: e.pageX + 20,
  160. top: e.pageY - 20,
  161. });
  162. });
  163. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement