Need help with Impossible JavaScript website assignment to finish coding
1. Make the entire contents of the web page fade in slowly once all of the files have been loaded into the browser.
2. For the section with id sec3 change the text color
3. Change the height of the spider images so that they are 80% of the middle of the column (section) if the user clicks anywhere section 3.
[Section 3] .click (function () {} [spider image. [ jQuery function (data)
4. Change the window onload so that you use the .ready() function of jQuery instead
Source Code
<!-- <!DOCTYPE HTML> -->
<html>
<head>
<title>Combining all we have learned</title>
<link rel="stylesheet" type="text/css" href="week6.css">
<script src="jquery-1.11.1.min.js"></script><!--always JQ first-->
<script type="text/javascript" src="utilities.js"></script>
<script type="text/javascript" src="week6.js"></script>
</head>
<body>
<div id="wrapper"> <!-- used to help center the page content -->
<!-- Top of page header - not a section header-->
<header>
Combining Everyything We have Learned<br>
<span id="forward"></span><br>
<span id="backward"></span>
</header>
<!-- Section 1 to be used for the rollover -->
<section id="sec1">
<p>This image will be used for the rollover of the panda and polar bear images</p>
<img id="img1" src="panda.jpg">
</section>
<!-- Section 2 to be used for the slide show-->
<section id="sec2">
<p>This image will be used for the slideshow of all the wonderfull spiders</p>
<img id="img2" src="buick.jpg">
</section>
<!-- Section 3 to be used for the simulated form and data retrieval from client-->
<section id="sec3">
<p>This section will be used for the form events and manipulation</p>
<table>
<tr>
<td><label for "firstName">Name:</label></td>
<td><input type="text" value="Enter your first name here" id="firstName" name="firstName" size=30></td>
</tr>
<tr>
<td><label for "lastName">Family Name:</label></td>
<td><input type="text" value="Enter your last name here" id="lastName" name="lastName" size=30></td>
</tr>
<tr>
<td><label for "sign">Horoscope Name:</label></td>
<td><input type="text" value="Enter your horoscope sign here" id="sign" name="sign" size=30></td>
</tr>
<tr>
<td></td>
<td><input type="button" name="submit" id="submit" value="submit"></td>
</tr>
</table>
<img src="" id="img3">
</section>
<section id="1">
<h2>Change Para</h2>
<p id="text">My Stuff</p>
</section>
<!-- Footer to be used for student name and ID-->
<footer>
</footer>
</div>
</body>
</html>
CSS Code
*{
margin: 0px;
padding: 0px;
}
body{
width: 100%;
height: 100%;
background-color: lightBlue;
}
header{
height: 10%;
}
section {
float: left;
width: 32.45%;
height: 70%;
min-height: 70%;
padding: 5px;
text-align: center;
}
footer{
clear: both;
height: 10%;
}
img{
width: 90%;
margin-left: auto;
margin-right: auto;
}
#wrapper{
width: 90%;
margin-left: auto;
margin-right: auto;
}
#sec1{
background-color: yellow;
}
#sec2{
background-color: orange;
}
#sec3{
background-color: yellow;
}
#img3{
display: none;
width: 75%;
margin-left: auto;
margin-right: auto;
padding-top: 10px;
}
#text{
position:absolute;
top:757;
left:327;
}
utilities.js Code
function addEvent(obj, type, fname){
//alert("addEvent");
if (obj.addEventListener){
obj.addEventListener(type, fname, false);
}
else if (obj.attachEvent){
obj.attachEvent("on"+type, fname);
}
else {
alert("your Browser is too old and does not support some of the features in this web site");
}
}