Professional Documents
Culture Documents
Lecture 111 - Changing Website Content - Changingwebsitecontentdothtml
Lecture 111 - Changing Website Content - Changingwebsitecontentdothtml
Lecture 111 - Changing Website Content - Changingwebsitecontentdothtml
changingwebsitecontent.html
!
!
<!doctype html>
<html>
<head>
<title>Learning jQuery</title>
<style>
#circle {
width:200px;
height:200px;
background-color:green;
border-radius:100px;
.square {
width:200px;
height:200px;
background-color:red;
margin-top:10px;
</style>
</head>
<body>
<div id="circle"></div>
<iframe src="http://www.cnn.com"></iframe>
<script>
$("#circle").hover(function() {
$("iframe").attr("src", "http://
www.ecowebhosting.co.uk");
});
</script>
</body>
</html>