Beginning JavaScript with DOM Scripting and Ajax, Second Edition by Christian Heilmann & Russ Ferguson
Author:Christian Heilmann & Russ Ferguson [Christian Heilmann]
Language: eng
Format: epub
Tags: JavaScript
Publisher: Apress
Published: 2013-06-25T21:00:00+00:00
Figure 6-9 . A slide show with small preview images (thumbnails)
Visitors without JavaScript will get only a row of images linking to larger images, as shown in Figure 6-10.
Figure 6-10. The slide show with small preview images without JavaScript
Again, let’s plan the skeleton of the script: you define a class to recognize which lists are to become slide shows, a class to give to the list item that contains the large photo, and alternative text to add to the large photo.
The methods are the same as the last time: one global initialization method, one method to initialize each slide show, and one method to show the current photo.
miniSlides.js (skeleton)
minislides = {
// CSS classes
triggerClass : 'minislides',
largeImgClass : 'photo',
// Text added to the title attribute of the big picture
alternativeText : 'large view',
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Coding Theory | Localization |
Logic | Object-Oriented Design |
Performance Optimization | Quality Control |
Reengineering | Robohelp |
Software Development | Software Reuse |
Structured Design | Testing |
Tools | UML |
Deep Learning with Python by François Chollet(11924)
Hello! Python by Anthony Briggs(9391)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9355)
The Mikado Method by Ola Ellnestam Daniel Brolund(9321)
Dependency Injection in .NET by Mark Seemann(8868)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7864)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7355)
Grails in Action by Glen Smith Peter Ledbrook(7306)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7131)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5969)
Kotlin in Action by Dmitry Jemerov(4654)
Practical Vim (for Kathryn Amaral) by Drew Neil(3734)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(3603)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3456)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3253)
Learning Java by Patrick Niemeyer & Daniel Leuck(2876)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(2868)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2847)
Microservices with Go by Alexander Shuiskov(2660)