Gallery Homework
How do I make an gallery homework?
What is a gallery homework? How do you make a gallery homework? This script and codes were developed by Colleen Van Lent on 26 August 2022, Friday.
Gallery Homework - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Gallery Homework</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <hi> <div id = "image"> Hover over an image below to display here. </div> <img class = "preview" alt = "Styling with a Bandana" src = "https://s3-us-west-2.amazonaws.com/s.cdpn.io/389177/bacon.jpg" onmouseover = "upDate(this)" onmouseleave = "unDo()";> <img class = "preview" alt = "With My Boy" src = "https://s3-us-west-2.amazonaws.com/s.cdpn.io/389177/bacon2.JPG" onmouseover = "upDate(this)" onmouseleave = "unDo()";> <img class = "preview" src = "https://s3-us-west-2.amazonaws.com/s.cdpn.io/389177/bacon3.jpg" alt = "Young Puppy" onmouseover = "upDate(this)" onmouseleave = "unDo()";> <script src="js/index.js"></script>
</body>
</html>
Gallery Homework - Script Codes CSS Codes
body{ margin: 2%; border: 1px solid black; background-color: #b3b3b3;
}
#image{ line-height:650px; width: 575px; height: 650px; border:5px solid black; margin:0 auto; background-color: #8e68ff; background-image: url(''); background-repeat: no-repeat; color:#FFFFFF; text-align: center; background-size: 100%; margin-bottom:25px; font-size: 150%;
}
.preview{ width:10%; margin-left:17%; border: 10px solid black;
}
img{ width:95%;
}
Gallery Homework - Script Codes JS Codes
function upDate(previewPic){ /* In this function you should 1) change the url for the background image of the div with the id = "image" to the source file of the preview image 2) Change the text of the div with the id = "image" to the alt text of the preview image */ document.getElementById('image').innerHTML = previewPic.alt; } function unDo(){ var pic = document.getElementById('image'); pic.style.backgroundImage = url('') pic.innerHTML ="HOVER" /* In this function you should 1) Update the url for the background image of the div with the id = "image" back to the orginal-image. You can use the css code to see what that original URL was 2) Change the text of the div with the id = "image" back to the original text. You can use the html code to see what that original text was */ }
Developer | Colleen Van Lent |
Username | ColleenEMc |
Uploaded | August 26, 2022 |
Rating | 3 |
Size | 2,239 Kb |
Views | 42,504 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
JS - Checkbox Example | 2,002 Kb |
JS - Gallery Homework | 2,282 Kb |
Consistent Browser styling - with prefixes | 1,918 Kb |
Document.write | 1,237 Kb |
Consistent Browser style - with default | 2,418 Kb |
JS Events - Modify The DOM | 0 Kb |
Teams.html | 2,210 Kb |
Code Together 3 No CSS - Classes | 1,796 Kb |
Index.html | 2,316 Kb |
Code Together 1 - With CSS | 2,136 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
FCC Portfolio | Cmwebby | 4,304 Kb |
Filtre ile Arama Kutusu - Search Box with Filter | AyhanALTINOK | 3,448 Kb |
Toolbar | Onsen | 5,414 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Portfolio Page | KaylaMT | 1,983 Kb |
Christ the Redeemer | Prashantsani | 2,208 Kb |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 Kb |
Animated Donut Chart | Jplhomer | 3,808 Kb |
Search field | Jamesbarnett | 2,100 Kb |
Responsive slide | Thorien | 2,400 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!