Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Hello</title>
- <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- $("div > p")
- .mouseenter(function (e) {
- $(this).css("color", "red");
- })
- .mouseout(function (e) {
- $(this).css("color", "black");
- }
- );
- });
- </script>
- </head>
- <body>
- <div><p>Hello to you</p></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment