SHARE
TWEET

Imagem HTML com título

1xptolevitico69 May 28th, 2020 (edited) 1,261 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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:block;
  19. display: flex;
  20. justify-content: center;
  21. padding:3px;
  22. }
  23.  
  24.  
  25. .soft {
  26. position:absolute;
  27. font-size:80px;
  28. font-family:arial black;
  29. color:darkred;
  30. cursor:pointer;
  31. text-shadow:3px 3px 2px white;
  32. }
  33.  
  34.  
  35.  
  36. </style>
  37. </head>
  38. <body>
  39.  
  40.  
  41.  
  42.  
  43. <img id='image' style='width:100%;height:100%;' src='file:///C:/Users/Utilizador/Desktop/LINKS/YOUTUBE/carro.jpg' />
  44.  
  45.  
  46.  
  47. <script>
  48.  
  49.  
  50. box=document.createElement('div');
  51. document.body.appendChild(box);
  52. soft=document.createElement('span');
  53. soft.innerHTML="<span onclick='choose()'>RELAX</span>";
  54. box.appendChild(image);
  55. box.appendChild(soft);
  56. box.id='box';
  57. soft.className='soft';
  58.  
  59.  
  60. function choose(){
  61. x = prompt('View page source\nOptions\nA - Same window\nB - Different window');
  62. if(x=='A'){window.open('file:///C:/Users/Utilizador/Desktop/LINKS/Imagem%20HTML%20com%20t%C3%ADtulo/index.txt','_self');}
  63. if(x=='B'){window.open('file:///C:/Users/Utilizador/Desktop/LINKS/Imagem%20HTML%20com%20t%C3%ADtulo/index.txt','_blank');}
  64. }
  65.  
  66.  
  67.  
  68. </script>
  69. </body>
  70. </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