Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 9

Preface

1: Getting Started
2: Selectors—How to Get Anything You Want
3: Events—How to Pull the Trigger
4: Effects—How to Add Flair to Your Actions
5: DOM Manipulation—How to Change Your Page on Command
6: AJAX—How to Make Your Site Buzzword-Compliant
7: Table Manipulation Free Chapter
8:
Forms with Function  
9: Shufflers and Rotators
10:
Plug-ins

Appendix A: Online Resources

Appendix B: Development Tools
Appendix C: JavaScript Closures

Index

Latest Updates

Free Chapter:
Chapter 7: Table Manipulation [1.31 MB PDF]

Contact us

Chapter 9: Shufflers and Rotators

Spin that wheel
Go along for the ride
    —Devo, "Spin the Wheel"

It's not enough anymore to craft literary masterpieces on the web. People clamor for more. They want the words to move. They want pretty pictures on demand. They want Shufflers and Rotators! In this third and final how-to chapter, we'll use advanced animations, ultra-hip AJAX, and superfluous eye candy in an attempt to give the people what they want and really shuffle things around.

Chapter 9: Shufflers and Rotators

  • Headline Rotator
    • Setting Up the Page
    • Retrieving the Feed
    • Setting Up the Rotator
    • The Headline Rotate Function
    • Pause on Hover
    • Retrieving a Feed from a Different Domain
    • Gratuitous Inner-fade Effect
  • An Image Carousel
    • Setting Up the Page
    • Revising the Styles with JavaScript
    • Shuffling Images when Clicked
    • Adding Sliding Animation
    • Displaying Action Icons
  • Image Enlargement
    • Hiding the Enlarged Cover
      • Displaying a Close Button
    • More Fun with Badging
    • Animating the Cover Enlargement
      • Deferring Animations Until Image Load
      • Adding a Loading Indicator
  • The Finished Code
  • Summary

 

   

 

Paperback 380 pages
Released: July 2007
ISBN: 1847192505
ISBN 13:
978-1-847192-50-9

     

 




View the book details
on PacktPub.com

 


 
  This website is owned and maintained by Packt Publishing Ltd, 2007. All rights reserved. Terms and Conditions