Corrections and Typos 1st edition, February 2010 * p.12 callout The callout says to check Appendix A for information on dealing with multiple libraries. In fact, that information is in Chapter 9, on page 362. * p.39 last paragraph "As you can see in Figure 2.6, our new elements have been added to the start and end of the actual disclaimer div," should say paragraph rather than div. * p.48 1st code block The code block shows the insertion of a span element, but the text refers to a button, and Figure 2.7 shows the modified DOM as containing a button rather than a span. For consistency, the 2nd line in the code block should be: $('') * p.56 bullet points The two last bullet points mention 300 pixels, but the code block on the previous page uses values of 150 pixels. * p.66 code block The line: {left: $('navigation li:first a').position().left; } should be {left: $('navigation li:first a').position().left } (without the semi-colon) * p.80 There is a bug in jQuery 1.4 where loading a new stylesheet will not apply the styles in Internet Explorer (works in other browsers). For this example the sample code is using jQuery 1.3.2. This is likely to be resolved in an upcoming jQuery release, but if you need this functionality right now you should use jQuery 1.3.2. * p.85 2nd para The example in the last sentence, { handles : 'n', 'se' }, should instead be: { handles : 'n, se' } (with one string containing the comma, not two strings). * p.93-94 lightbox.css code block The ID and class names here are inconsistent with the ones in the JavaScript listing. Instead of #lightbox_overlay and #lightbox_container they should be #overlay and #lightbox. * p.95 tip In the code block in the "quick element construction" tip, click should not be preceded by a period. * p.120 1st code block The element IDs in the markup shown do not correspond to those in the CSS and script files. Use photos and photos_inner throughout or refer to the code archive. This has been corrected both in the code archive and in the web PDF. * p.122 code block On the line marked with a 6, the variable currentScrollPos is used, which has not been defined. The variable that should be used is currentPos. * p.124 1st code block The element IDs in the markup shown do not correspond to those in the CSS and script files. Use pic_container and pic_scroller throughout or refer to the code archive. Also, the width and height values in the CSS should be as follows: #pic_container { overflow: hidden; height: 200px; width: 200px; margin-bottom: 15px; } #pic_scroller { height: 600px; width: 800px; overflow: hidden; } * p.166 last paragraph "which will look for an overlay without the class class" should say "which will look for an overlay without the active class" * p.203 code block The line immediately after the comment ends with a semi-colon. That should not be there, there should only be a closing curly bracket on that line. * p.248 code sample There is a bug in jQuery 1.4 which prevents this code from working. If you use jQuery 1.4.2 it will function as intended.