Question: Assignment 4 Part 1 : Create a FAQs Rollover application In this assignment, you ll write the jQuery code for an application that displays the
Assignment Part : Create a FAQs Rollover application
In this assignment, youll write the jQuery code for an application that displays the answer to a question in a list of questions when the user hovers the mouse over that question.
Open the starter folder attached zipped to this Assignment folder:
EvaluationsAssignmentsAssignment AssignmentFiles.zip faqsrollover
Review the HTML to see that it includes an unordered list with list items that consist of an h element and a element. The h element contains a question, and the element, which is hidden, contains the answer to the question.
Add jQuery code that runs when the user moves the mouse pointer into or out of a question in the list. When the mouse pointer moves into the question, the answer should be displayed. When the mouse pointer moves out of the question, the answer should be hidden.
In index.html change the text in the tag to your name and student number.
Assignment Part : Develop an Image Gallery application with animation
In this assignment, youll develop an Image Gallery application that displays different images when the user clicks on the links at the top of the page. This works like the Image Swap application of figure Youll then use effects to change the way the images are displayed and hidden.
Open the starter folder attached zipped to this Assignment folder:
EvaluationsAssignmentsAssignment AssignmentFiles.zip imagegallery
This folder contains an empty JavaScript file named imagegallery.js You can add your code to this file.
In the JavaScript file, add an event handler for the ready event method.
Use the each method to run a function for each element in the unordered list of items. Then, add jQuery code that gets the URL and caption for each image and preloads the image. You can get the URL from the href attribute of the element, and you can get the caption from the title attribute.
Add an event handler for the click event method of each link. The function for this event handler should accept a parameter named evt. The jQuery code for this event handler should display the image and caption for the link that was clicked. In addition, it should use the evt parameter to cancel the default action of the link.
Add a jQuery statement that moves the focus to the first link on the page when the page is loaded.
Modify the jQuery so that when a link is clicked, the current caption and image are hidden using a sliding motion that takes two seconds.
Modify the jQuery so that after the caption and URL are set for the new image, that caption and image are displayed using a sliding motion that takes two seconds.
In index.html change the text in the tag to your name and student number.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
