1xptolevitico69

Imagem HTML com título

May 28th, 2020 (edited)
2,523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.20 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title></title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width">
  7. <style>
  8.  
  9.  
  10. #box {
  11. position:absolute;
  12. top:50%;
  13. left:50%;
  14. transform:translate(-50%,-50%);
  15. width:800px;
  16. height:450px;
  17. border:5px solid olive;
  18. display: flex;
  19. justify-content: center;
  20. padding:3px;
  21. }
  22.  
  23.  
  24. .soft {
  25. position:absolute;
  26. font-size:80px;
  27. font-family:arial black;
  28. color:red;
  29. cursor:pointer;
  30. text-shadow:3px 3px 2px white;
  31. }
  32.  
  33.  
  34.  
  35. </style>
  36. </head>
  37. <body>
  38.  
  39.  
  40.  
  41.  
  42. <img id='image' style='width:100%;height:100%;' src='https://pix10.agoda.net/hotelImages/108419/-1/62ef31d50a32b1082fd81c42d3aa442f.jpg?s=1024x768' />
  43.  
  44.  
  45.  
  46. <script>
  47.  
  48.  
  49. box=document.createElement('div');
  50. document.body.appendChild(box);
  51. soft=document.createElement('span');
  52. soft.innerHTML="<span onclick='choose()'>RELAX</span>";
  53. box.appendChild(image);
  54. box.appendChild(soft);
  55. box.id='box';
  56. soft.className='soft';
  57.  
  58.  
  59. function choose(){
  60. x = prompt('View page source\nOptions\nA - Same window\nB - Different window');
  61. if(x=='A'){window.open('https://pastebin.com/w3xP7VtJ','_self');}
  62. if(x=='B'){window.open('https://pastebin.com/w3xP7VtJ','_blank');}
  63. }
  64.  
  65.  
  66.  
  67. </script>
  68. </body>
  69. </html>
Add Comment
Please, Sign In to add comment