This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 18th, 2012  |  syntax: None  |  size: 1.64 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head><title>
  4.         Animate Circle
  5. </title>
  6. <style>
  7. .gpscircle img {
  8.   position:absolute;
  9.   width:139px;
  10.   height:139px;
  11.   top:100px;
  12.   left:280px;
  13.   z-index:51;
  14. }
  15. #map_canvas {
  16.   z-index:50;
  17. }
  18. </style>
  19.   <script type="text/javascript"
  20.     src="http://maps.googleapis.com/maps/api/js?key=MASKEDAPIKEYHERE&sensor=true">
  21.   </script>
  22.   <script type="text/javascript">
  23.     function initialize() {
  24.       var mapOptions = {
  25.         center: new google.maps.LatLng(-34.397, 150.644),
  26.         zoom: 8,
  27.         mapTypeId: google.maps.MapTypeId.ROADMAP
  28.       };
  29.       var map = new google.maps.Map(document.getElementById("map_canvas"),
  30.           mapOptions);
  31.          
  32.         var marker1 = new google.maps.Marker({
  33.                 position: new google.maps.LatLng(-34.397, 150.644),
  34.                 map: map,
  35.                 icon: 'mapMarker.png' // This path is the custom pin to be shown. Remove this line and the proceeding comma to use default pin
  36.             });
  37.  
  38.     }
  39.   </script>
  40. </head>
  41. <body onload="initialize()">
  42.  
  43. <span class="gpscircle"></span>
  44.  
  45.     <script src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js" type="text/javascript"></script>
  46.     <script src="jquery.animateImages.min.js" type="text/javascript"></script>
  47.     <script type="text/javascript">
  48.         $(function () {
  49.             $(".gpscircle").animateImages("images/cir-@.png", 24, 50);
  50.         });
  51.     </script>
  52.    
  53.     <div id="map_canvas" style="width:500px; height:500px">
  54.     </div>
  55.  
  56.  
  57. </body>
  58. </html>
clone this paste RAW Paste Data