Starting from:

$29.99

ISIT207 Assignment 2 Solution


Aim:
The objectives of this assignment include learning:
• jQuery (Syntax, Selector, Events)
• jQuery (Effects & HTML)
• jQuery (User Interface)


For all the tasks, you can only make use of jQuery, HTML5, CSS, and JavaScript. No other library/framework should be used.



Part A (6 marks)


Task 1:

Create a web page using jQuery with a panda image, together with 1 button and 1 link on it. The button causes the panda to move from left to right and vice versa continuously at 2000 ms on the screen. The link causes the panda to stop. When you click on the button again after the panda has stopped, the panda will move again in the same direction as before.

Note: if the panda originally moved from left to right and it stopped, then it should continue from the stop position after it has resumed movement.


Task 2:

Create a web page to illustrate the following task:

Write a piece of jQuery code so that when you click a paragraph, an image or a button, it will disappear (with effects) from the screen.

Note: use the respective html elements (do not use id or class)



Part B (9 marks)

Task 3:

Create a web page with a table with at least 4 rows and 4 columns. Both colspan and rowspan must be used.

Write a piece of jQuery code so that when you hover over any of the cell in the table, the particular cell will be highlighted in pink colour. In addition, the content of the highlighted cell needs to be displayed outside the table.

Note: no matter how many cells you hover over, only the latest cell that you hover over should be highlighted and the cell content to be displayed outside the table.


Task 4:

Create a web page using jQuery to illustrate the following task:

Create a dice object such that each of its six faces is a different image, with a number from 1 to 6 (the image needs to show the number). The dice object should have a method called “Dice” which causes one of the faces of the dice to be selected randomly. Whenever you click a button on the screen, the function of “Dice” is called and hence one of the images on the dice will randomly appear on the screen.


Task 5:

Create a web page and incorporate 6 different functionalities of jQuery UI (User Interface) in your web page. You must number the functionalities sequentially in the web page and explain their usage.






Demo: to be advised

Submission:


You are to create five folders, all files needed for task 1 must be in a folder call “Task1”, all files needed for task 2 must be in a folder call “Task 2”, and so on. Zip the five folders together and upload it to Moodle. Include your student name and student ID (UOW ID) as comments in all the files.

More products