Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- .example-class:hover {
- background: red;
- }
- </style>
- </head>
- <body>
- <div id="example-id">example text</div>
- <script>
- setTimeout(function () {
- document.getElementById('example-id').className = 'example-class';
- }, 1);
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment