Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title> Mrb. :) </title>
  5. <style>
  6. h1{
  7. text-align: center;
  8. }
  9. #finishImage {
  10. width:64px;
  11. height:64px;
  12. }
  13. #palette{
  14. position: absolute;
  15. height: 535px;
  16. border: 1px solid orangered;
  17. top: 10px;
  18. left: 10px;
  19. right: 1125px;
  20. }
  21. #content{
  22. position: absolute;
  23. height: 400px;
  24. border: 1px solid black;
  25. top: 135px;
  26. left: 250px;
  27. right: 10px;
  28. }
  29. #header{
  30. position: absolute;
  31. height: 115px;
  32. border: 1px solid orange;
  33. left: 250px;
  34. right: 10px;
  35. }
  36. </style>
  37.  
  38. <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
  39. <script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
  40. </head>
  41.  
  42. <body>
  43. <div id="parent">
  44. <div id="header">
  45. <h1>HEADER</h1>
  46. </div>
  47.  
  48. <div id="palette">
  49. <h1>PALETTE</h1>
  50. <hr>
  51. <div class="tbutton"><img id="finishImage" src="finish.png" /></div>
  52. </div>
  53. <div id="content">
  54. </script>
  55. <script type="text/javascript">
  56. $("#finishImage").draggable({
  57. helper: "clone"
  58. });
  59.  
  60. $("#content").droppable({
  61. drop: function(event, ui) {
  62. $("#content").append("<img id='finishImage' src='as.jpg'/>");
  63. }
  64. });
  65. </script>
  66. </div>
  67. </div>
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement