SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Anne Boehm, Zak Ruvalcaba
Chapter:
How To Use Jquery Ui And Jquery Plugins To Enhance Your Web Pages
Exercise:
Exercises
Question:2 | ISBN:9781890774837 | Edition: 3

Question

Exercise 16-2 Use the Cycle 2 plugin for a slide show

In this exercise, you'll enhance a page so it uses the Cycle 2 plugin to runra slide show that displays the speakers.


Open and review the HTML for this page

1. Use your text editor to open the HTML file for this page: c:\htm15_cs.3_2\exercises\town_ha11_3\speakers\slideshow.html

2. Review the link and style elements for this page. Note that there isn't a CSS file for the Cycle 2 plugin, and that the script element gets the JavaScript file for the plugin from a CDN. Note too that a second script element gets a cycle2.shuffle JavaScript file from a CDN.

3. Test this page to see that it runs a default Cycle 2 slide show.

 

Change the way the Slide Show works and looks

4. With figure 16-11 as a guide, add a data-cycle-timeout attribute to the div element to the slide show so each slide is shown for 2 seconds.

5. With figure 16-11 as a guide, add a data-cycle-fx attribute so the shuffle transition is used for the slides. This option requires the use of the cycle2.shuffle.js file that's included by the third script element.

6. Add a data-cycle-pause-on-hover attribute set to a value of "true" so the slide show will pause when the user hovers the mouse over a slide. 
7. Go the website for the Cycle 2 plugin, and then go to the demo for providing captions that get their text from the all attributes of the images. Then, see if you can add the code to the HTML file that will make this work. The caption should be displayed below the images as shown above.

8. Test the page to be sure these changes work. 
 

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Sorry the answer is not available at the moment…

If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.

Spread the 'tradition of sharing'.