JavaScript实战(影印版)
JavaScript实战(影印版)
David Sawyer McFarland
出版时间:2009年04月
页数:528
答案就在这里!
《JavaScript实战》。一个现代网站需要传递的内容不止是文字信息。网站的访客期望智能表格、导航标签、弹出式帮助,还有互动的图片浏览。《JavaScript实战》带来你正好需要的知识,用有风格而且优雅的方式来发布这些组件 —— 即使你不是一个编程高手。

您需要了解的重要内容
开始就构建结构良好并且能和你的HTML和CSS网页协同运行的JavaScript程序。
定制你的代码——本书循序渐进的指导让你增加网页正好要调用的功能。
通过查看本书的实时在线示例开发你自己的网站解决方案。
避免常见错误——找出什么是应该避免的用法。
用预先写好的大量jQuery函数库代码来节省时间和精力。
使用基本的Ajax编程整合来自一台网络服务器或者Google地图的实时数据。

为什么创建Missing Manual系列丛书?
当内容生动、清楚和有趣时,人们能获得最佳的学习效果。不幸的是,绝大多数计算机图书读起来都像乏味的购物目录。这就是我为什么开发The Missing Manual系列图书。这一系列图书有趣,也不怕提到无用或者运行不正确的功能,而且——哦,顺便提一下——是由有实践经验的作者写成的。在书的每一页上我们都回答这个直接的问题:“这个功能有什么用处?”
DavidAPogue是《纽约时报》的技术专栏作家、畅销书作者和The MissingAManual系列图书的创始人。
  1. The Missing Credits
  2. Introduction
  3. Part One: Getting Started with JavaScript
  4. Chapter 1: Writing Your First JavaScript Program
  5. Introducing Programming
  6. What’s a Computer Program?
  7. How to Add JavaScript to a Page
  8. External JavaScript Files
  9. Your First JavaScript Program
  10. Writing Text on a Web Page
  11. Attaching an External JavaScript File
  12. Tracking Down Errors
  13. The Firefox JavaScript Console
  14. Displaying the Internet Explorer Error Dialog Box
  15. Accessing the Safari Error Console
  16. Chapter 2: The Grammar of JavaScript
  17. Statements
  18. Commands
  19. Types of Data
  20. Numbers
  21. Strings
  22. Booleans
  23. Variables
  24. Creating a Variable
  25. Using Variables
  26. Working with Data Types and Variables
  27. Basic Math
  28. The Order of Operations
  29. Combining Strings
  30. Combining Numbers and Strings
  31. Changing the Values in Variables
  32. Tutorial: Using Variables to Create Messages
  33. Tutorial: Asking for Information
  34. Arrays
  35. Creating an Array
  36. Accessing Items in an Array
  37. Adding Items to an Array
  38. Deleting Items from an Array
  39. Adding and Deleting with splice( )
  40. Tutorial: Writing to a Web Page Using Arrays
  41. Comments
  42. When to Use Comments
  43. Comments in this Book
  44. Chapter 3: Adding Logic and Control to Your Programs
  45. Making Programs React Intelligently
  46. Conditional Statement Basics
  47. Adding a Backup Plan
  48. Testing More Than One Condition
  49. More Complex Conditions
  50. Nesting Conditional Statements
  51. Tips for Writing Conditional Statements
  52. Tutorial: Using Conditional Statements
  53. Handling Repetitive Tasks with Loops
  54. While Loops
  55. Loops and Arrays
  56. For Loops
  57. Do/While Loops
  58. Functions: Turn Useful Code Into Reusable Commands
  59. Mini-Tutorial
  60. Giving Information to Your Functions
  61. Retrieving Information from Functions
  62. Keeping Variables from Colliding
  63. Tutorial: A Simple Quiz
  64. Chapter 4: Working with Words, Numbers, and Dates
  65. A Quick Object Lesson
  66. Strings
  67. Determining the Length of a String
  68. Changing the Case of a String
  69. Searching a String: indexOf( ) Technique
  70. Extracting Part of a String with slice( )
  71. Finding Patterns in Strings
  72. Creating and Using a Basic Regular Expression
  73. Building a Regular Expression
  74. Grouping Parts of a Pattern
  75. Useful Regular Expressions
  76. Matching a Pattern
  77. Replacing Text
  78. Trying Out Regular Expressions
  79. Numbers
  80. Changing a String to a Number
  81. Testing for Numbers
  82. Rounding Numbers
  83. Formatting Currency Values
  84. Creating a Random Number
  85. Dates and Times
  86. Getting the Month
  87. Getting the Day of the Week
  88. Getting the Time
  89. Creating a Date Other Than Today
  90. Tutorial
  91. Overview
  92. Writing the Function
  93. Chapter 5: Dynamically Modifying Web Pages
  94. Modifying Web Pages: An Overview
  95. Understanding the Document Object Model
  96. Selecting a Page Element
  97. Adding Content to a Page
  98. The Moon Quiz Revisited
  99. The Problem with the DOM
  100. Introducing JavaScript Libraries
  101. Getting Started with jQuery
  102. Selecting Page Elements (Revisited)
  103. Basic Selectors
  104. Advanced Selectors
  105. jQuery Filters
  106. Understanding jQuery Selections
  107. Adding Content to a Page
  108. Replacing and Removing Selections
  109. Setting and Reading Tag Attributes
  110. Classes
  111. Reading and Changing CSS Properties
  112. Changing Multiple CSS Properties at Once
  113. Reading, Setting, and Removing HTML Attributes
  114. Creative Headlines
  115. Acting on Each Element in a Selection
  116. Anonymous Functions
  117. this and $(this)
  118. Automatic Pull Quotes
  119. Overview
  120. Programming
  121. Chapter 6: Action/Reaction: Making Pages Come Alive with Events. 201
  122. What Are Events?
  123. Mouse Events
  124. Document/Window Events
  125. Form Events
  126. Keyboard Events
  127. Using Events with Functions
  128. Inline Events
  129. The Traditional Model
  130. The Modern Way
  131. The jQuery Way
  132. Tutorial: Highlighting Table Rows
  133. More jQuery Event Concepts
  134. Waiting for the HTML to Load
  135. jQuery Events
  136. The Event Object
  137. Stopping an Event’s Normal Behavior
  138. Removing Events
  139. Advanced Event Management
  140. Tutorial: A One-Page FAQ
  141. Overview of the Task
  142. The Programming
  143. Chapter 7: Improving Your Images
  144. Swapping Images
  145. Changing an Image’s src Attribute
  146. Preloading Images
  147. Rollover Images
  148. Tutorial: Adding Rollover Images
  149. Overview of the Task
  150. The Programming
  151. jQuery Effects
  152. Basic Showing and Hiding
  153. Fading Elements In and Out
  154. Sliding Elements
  155. Animation
  156. Tutorial: Photo Gallery with Effects
  157. Overview of Task
  158. The Programming
  159. Advanced Gallery with jQuery lightBox
  160. The Basics
  161. Customizing lightBox
  162. Tutorial: lightBox Photo Gallery
  163. Animated Slideshows with Cycle
  164. The Basics
  165. Customizing the Cycle Plug-in
  166. Tutorial: An Automated Slideshow
  167. Part Two: Building Web Page Features
  168. Chapter 8: Improving Navigation
  169. Some Link Basics
  170. Selecting Links with JavaScript
  171. Determining a Link’s Destination
  172. Don’t Follow That Link
  173. Opening External Links in a New Window
  174. Creating New Windows
  175. Window Properties
  176. Opening Pages in a Window on the Page
  177. Customizing the Look of a Greybox Window
  178. Tutorial: Opening a Page Within a Page
  179. Tutorial: Making Bigger Links
  180. Overview
  181. The Programming
  182. Animated Navigation Menus
  183. The HTML
  184. The CSS
  185. The JavaScript
  186. The Tutorial
  187. Chapter 9: Enhancing Web Forms
  188. Understanding Forms
  189. Selecting Form Elements
  190. Getting and Setting the Value of a Form Element
  191. Determine Whether Buttons and Boxes Are Checked
  192. Form Events
  193. Adding Smarts to Your Forms
  194. Focus the First Field in a Form
  195. Disabling and Enabling Fields
  196. Hiding and Showing Form Options
  197. Tutorial: Basic Form Enhancements
  198. Focusing a Field
  199. Disabling Form Fields
  200. Hiding Form Fields
  201. Form Validation
  202. jQuery Validation Plug-in
  203. Basic Validation
  204. Advanced Validation
  205. Styling Error Messages
  206. Validation Tutorial
  207. Basic Validation
  208. Advanced Validation
  209. Validating Checkboxes and Radio Buttons
  210. Formatting the Error Messages
  211. Chapter 10: Expanding Your Interface
  212. Hiding Information with Accordion Panels
  213. Customizing an Accordion
  214. Accordion Tutorial
  215. Organizing Information in Tabbed Panels
  216. Formatting Tabs and Panels
  217. Customizing the Tabs Plug-in
  218. Tabbed Panels Tutorial
  219. Tooltips
  220. Tooltips Using the Title Attribute
  221. Tooltips Using Another Web Page
  222. Tooltips Using Hidden Content
  223. Controlling the Display of Tooltips
  224. Formatting Tooltips
  225. Cluetip Tutorial
  226. Creating Sortable Tables
  227. Styling the Table
  228. Tablesorter Tutorial
  229. Part Three: Ajax: Communicating with the Web Server
  230. Chapter 11: Introducing Ajax
  231. What Is Ajax?
  232. Ajax: The Basics
  233. Pieces of the Puzzle
  234. Talking to the Web Server
  235. Ajax the jQuery Way
  236. Using the load( ) Function
  237. Tutorial: The load( ) Function
  238. The get( ) and post( ) Functions
  239. Formatting Data to Send to the Server
  240. Processing Data from the Server
  241. Tutorial: Using the get( ) Function
  242. JSON
  243. Accessing JSON Data
  244. Complex JSON Objects
  245. Chapter 12: Basic Ajax Programming
  246. Tabs Plug-in
  247. Changing the Loading Text and Icon
  248. Ajax Tabs Tutorial
  249. Adding Google Maps to Your Site
  250. Setting a Location for the Map
  251. Other jMap Options
  252. Adding Markers and HTML Bubbles
  253. Get Driving Directions
  254. jMaps Tutorial
  255. Part Four: Troubleshooting, Tips, and Tricks
  256. Chapter 13: Troubleshooting and Debugging
  257. Top JavaScript Programming Mistakes
  258. Non-Closed Pairs
  259. Quotation Marks
  260. Using Reserved Words
  261. Single Equals in Conditional Statements
  262. Case-Sensitivity
  263. Incorrect Path to External JavaScript File
  264. Incorrect Paths Within External JavaScript Files
  265. Disappearing Variables and Functions
  266. Debugging with Firebug
  267. Installing and Turning On Firebug
  268. Viewing Errors with Firebug
  269. Using console.log( ) to Track Script Progress
  270. Tutorial: Using the Firebug Console
  271. More Powerful Debugging
  272. Debugging Tutorial
  273. Chapter 14: Going Further with JavaScript
  274. Putting It All Together
  275. Using External JavaScript Files
  276. Writing More Efficient JavaScript
  277. Put Preferences in Variables
  278. Ternary Operator
  279. The Switch Statement
  280. Using the jQuery Object Efficiently
  281. Creating Fast-Loading JavaScript
  282. Using YUI Compressor for Windows
  283. Using YUI Compressor for Mac .
  284. Part Five: Appendix
  285. Appendix A: JavaScript Resources
  286. Index
书名:JavaScript实战(影印版)
国内出版社:中国电力出版社
出版时间:2009年04月
页数:528
书号:978-7-80205-733-3
原版书出版商:O'Reilly Media
David Sawyer McFarland
 
Sawyer McFarland Media公司总裁,资深Web应用开发工程师、培训讲师和技术作家。在Web开发方面拥有将近20年的工作经验,具有非常高的知名度和非常大的影响力。曾担任加州大学伯克利分校的网络负责人,他还在加州大学伯克利分校新闻学研究生院和波特兰州立大学任教。他居住在波特兰,并撰写了Adobe Dreamweaver 和CSS方面的Missing Manual系列畅销书。
 
 
购买选项
定价:72.00元
书号:978-7-80205-733-3
出版社:中国电力出版社