Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>canvas test</title>
- <style>
- #man1 {
- background-image: url(man1.png);
- width: 100px;
- height: 100px;
- }
- <meta name="description" content=""/>
- <script>
- console.log(document.getelementbyid('man1').style.backgroundimage);
- settimeout("", 1000);
- document.getelementbyid('man1').style.backgroundimage="url(man1.png)";
- </script>
- </head>
- <body>
- <div id="man1"></div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment