SHARE
TWEET

Untitled

a guest Oct 21st, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head><script type="text/javascript">
  3.     function tomove(topx,leftx){
  4.     pic=document.getElementById("meme").style;    
  5.     pic.top=topx+"px";
  6.      pic.left=leftx+"px";
  7.     }
  8.    
  9.     </script><title></title></head>
  10.     <body>
  11.     <form method="" action="" onsubmit="tomove(x,y)">
  12.     top:<input type="number" id="top">
  13.     LEFT:<input type="number" id="left">  
  14.        
  15. <script type="text/javascript">
  16.             x=document.getElementById("top").value;
  17.             y=document.getElementById("left").value;
  18.         </script>
  19.     <input type="submit" name="do it">
  20.        
  21.         </form>
  22.     <img src="pic.jpg" alt="meme" id="meme" style="width:200px;position:absolute;top=500px;left=0px;">
  23.     </body>
  24.  
  25.  
  26. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top