31 lines
907 B
HTML
Executable file
31 lines
907 B
HTML
Executable file
<!DOCTYPE html>
|
|
<html>
|
|
<title>Exercici 02</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
|
|
<head>
|
|
<script>
|
|
window.addEventListener("load", main);
|
|
function main() {
|
|
document.getElementById("webs").addEventListener("mouseover", function(){
|
|
this.setAttribute("src", "http://www.tranevietnam.com/uploads/files/Apply/RTWS.PNG")
|
|
})
|
|
document.getElementById("webs").addEventListener("mouseout", function(){
|
|
this.setAttribute("src", "http://s3-eu-west-1.amazonaws.com/ebayproductphotos/si/gfx1263.jpg")
|
|
})
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="w3-container">
|
|
<h1>Exercici 02</h1>
|
|
</div>
|
|
|
|
<div class="w3-container">
|
|
<img id="webs" src="http://s3-eu-west-1.amazonaws.com/ebayproductphotos/si/gfx1263.jpg" alt="">
|
|
</div>
|
|
|
|
</body>
|
|
</html> |