By Kishori Sharan
Learn how to make extra effective apps, with only one language!
* includes various hands-on examples
* Explains implementation of real-time apps together with Socket. IO and HTML5, and WebSockets
* Addresses sensible Node. js benefits from particular layout choices
* comprises an interactive on-line part with pattern chapters
* Explains elements of stand out apps together with brevity and benchmarks
- Mobile Web Development
- Pro Grunt.js
- Ruby in a Nutshell: A Desktop Quick Reference
The first thing we want our event handler to do is to call our on function. To call a function you simply call its name and enclose any values you wish to pass along to the function in parentheses separated by commas. on('Products'); The preceding statement will call the on function and pass it the value Products; again, we are passing it Products because that is the name of the image that we want our function to affect. Another common addition to rollovers is the displaying of a relevant phrase in the browser's status bar.
Therefore, when the user rolls over one of the other categories, both that graphic and the graphic for the section that the user is currently in will be highlighted. This could lead to some confusion on the part of the user, so what we need to do is turn off the graphic of the section we are currently in while the user rolls over one of the other categories. To do this we are going to have to make slight modifications to both the on and the off functions, as well as create a new function, off1, that will handle some of the extra functionality we are going to need.