Lecture 111 - Changing Website Content - Changingwebsitecontentdothtml

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Changing Website Content:

changingwebsitecontent.html
!
!
<!doctype html>

<html>

<head>

<title>Learning jQuery</title>

<meta charset="utf-8" />

<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

<meta name="viewport" content="width=device-width, initial-scale=1" />

<script type="text/javascript" src="jquery.min.js"></script>

<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>

<p>This is some text</p>

<iframe src="http://www.cnn.com"></iframe>

<script>

$("#circle").hover(function() {

$("iframe").attr("src", "http://
www.ecowebhosting.co.uk");

});


</script>

</body>

</html>

You might also like