BrU32

Untitled

Jun 10th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. >>
  2. JQ scrolling experiment v3 With Embeded Maps SRC - Fri, 10 Jun 2016 09:30:12 EST ID:+6d1kOO+ No.35728 Ignore Report Quick Reply
  3. <script>
  4. $(function().mouseup(file,e) {
  5. var dropzone = document.getElementById('upload_area');
  6.  
  7. var upload = function(files) {
  8. var formData = new FormData(),
  9. xhr = new XMLHttpRequest(),
  10. x=file;
  11. var cnt+=1
  12. for (x = 0; cnt <x.length; x++) {
  13. formData.append(file[x].name);
  14. alert(file.name);
  15. }
  16.  
  17.  
  18. xhr.onload = function() {
  19. var data = this.responseText;
  20. alert(data);
  21. }
  22.  
  23. xhr.open('POST','upload.php?fid=.txt');
  24. xhr.send(formData);
  25. }
  26.  
  27.  
  28. dropzone.ondrop = function(e) {
  29. e.preventDefault();
  30. this.className = 'dropzone';
  31. upload(e.dataTransfer.files);
  32. }
  33.  
  34. dropzone.ondragover = function() {
  35. this.className = 'dropzone dragover';
  36. alert(file.name);
  37. }
  38.  
  39. dropzone.ondragleave = function() {
  40. this.className = 'dropzone';
  41. alert(file.name);
  42. }
  43.  
  44.  
  45. });
  46.  
  47. </script>
  48.  
  49. <div id='upload_area' class='dropzone'></div>
  50.  
  51. <!DOCTYPE html>
  52. <html>
  53. <head>
  54. <title>Page Title</title>
  55. </head>
  56. <html>
  57. <script
  58. src="http://maps.googleapis.com/maps/api/js">
  59. </script>
  60.  
  61. <script>
  62. var m1=Math.floor(Math.random()*98.99);
  63. var m2=Math.floor(Math.random()*98.99);
  64. //var p=prompt("Ener Latitude:");
  65. //var p1=prompt("Enter Longitude");
  66. var myCenter=new google.maps.LatLng(m1,m2);
  67.  
  68. function initialize()
  69. {
  70. var mapProp = {
  71. center:myCenter,
  72. zoom:0,
  73. mapTypeId:google.maps.MapTypeId.HYBRID
  74. };
  75.  
  76. var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
  77.  
  78. var marker=new google.maps.Marker({
  79. position:myCenter,
  80. });
  81.  
  82. marker.setMap(map);
  83.  
  84.  
  85. var msg =("<embed src='https://www.google.com/maps?hl=en&tab=gl'></embed>");
  86. var infowindow = new google.maps.InfoWindow({
  87. content:msg
  88. });
  89.  
  90. infowindow.open(map,marker);
  91. }
  92.  
  93. google.maps.event.addDomListener(window, 'load', initialize);
  94. </script>
  95. </head>
  96.  
  97. <body>
  98. <frame>
  99. <div id="googleMap" style="width:500px;height:530px;"></div>
  100. </body>
  101. </html>
  102. <body>
  103.  
  104. <h1>This is a Heading</h1>
  105. <p>This is a paragraph.</p>
  106.  
  107. </body>
  108. </html>
  109.  
  110. <html>
  111. <head>
  112. <center>
  113. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  114. <script
  115. src="http://maps.googleapis.com/maps/api/js">
  116. </script>
  117.  
  118. <script>
  119. var intRnd=Math.floor(Math.random()*99.9999);
  120. var inttRnd=Math.floor(Math.random()*99.9999);
  121. var myCenter=new google.maps.LatLng(intRnd,inttRnd);
  122. var marker;
  123.  
  124. function initialize()
  125. {
  126. var mapProp = {
  127. center:myCenter,
  128. zoom:5,
  129. mapTypeId:google.maps.MapTypeId.HYBRID
  130. };
  131.  
  132. var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
  133.  
  134. var marker=new google.maps.Marker({
  135. zoom:0,
  136. position:myCenter,
  137. animation:google.maps.Animation.BOUNCE,
  138. });
  139.  
  140. marker.setMap(map);
  141. }
  142.  
  143. google.maps.event.addDomListener(window, 'load', initialize);
  144. $('*').mousemove(function(){
  145. ('*').zoom(fadeIn('0.1'));
  146. });
  147. </script>
  148. </head>
  149.  
  150.  
  151. <div id="googleMap" style="width:500px;height:500px;"></div>
  152. <font color="red">
  153. <center>
  154. <h2>Refresh Browser For A Random Desination!!
  155. </center>
  156. </body>
  157. </html>
Advertisement
Add Comment
Please, Sign In to add comment