Advertisement
hdmasters

index.php

Nov 2nd, 2011
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <script type="text/javascript">
  7.     function acao(){
  8.         var xmlhttp;
  9.         if(window.XMLHttpRequest){
  10.             xmlhttp = new XMLHttpRequest();
  11.         }else{
  12.             xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");  
  13.         }
  14.        
  15.         xmlhttp.onreadystatechange = function(){
  16.             if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
  17.                 document.getElementById("msg").innerHTML = xmlhttp.responseText;   
  18.             }  
  19.         }
  20.        
  21.         xmlhttp.open("GET", "view.php?url="+document.getElementById("website").value+"", true);
  22.         xmlhttp.send();
  23.     }
  24. </script>
  25. </head>
  26.  
  27. <body>
  28.  
  29. <form id="form1" name="form1" method="post" action="">
  30.   <table width="338" border="0">
  31.     <tr>
  32.       <td width="66">Website:</td>
  33.       <td width="256"><label for="website"></label>
  34.       <input name="website" type="text" id="website" size="40" /></td>
  35.     </tr>
  36.     <tr>
  37.       <td>&nbsp;</td>
  38.       <td><input type="button" name="btn" id="btn" value="Buscar Thumb" onclick="acao();" /></td>
  39.     </tr>
  40.   </table>
  41. </form>
  42.  
  43. <div id="msg"></div>
  44. </body>
  45. </html>
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement