daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.     <head>
  3.         <script type="text/javascript">
  4.             function setBG()
  5.             {
  6.                 var img_path = unescape(document.URL.substring(document.URL.indexOf('?img=')+6,document.URL.length));
  7.                 document.body.style.backgroundImage="url("+img_path+")";
  8.                 document.body.style.backgroundColor="#f3f3f3";
  9.             }
  10.         </script>
  11.     </head>
  12.  
  13.     <body>
  14.         <h1>CSS Background Image<br /></h1>
  15.         <button type="button" onclick="setBG()">Set background image</button>
  16.     </body>
  17. </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