Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script>
- <style type="text/css">
- #cir{
- width: 150px;
- height: 150px;
- border-radius: 50%;
- background-color: green;
- }
- .squ{
- width: 150px;
- height: 150px;
- margin: 10px;
- background-color: red;
- }
- </style>
- </head>
- <body>
- <div id="cir"></div>
- <p> this is some text</p>
- <iframe src="https://edition.cnn.com/"></iframe>
- <script type="text/javascript">
- $("#cir").hover(function() {
- $("iframe").attr("src","https://www.ecowebhosting.co.uk");
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement