Wednesday, July 18, 2012

Yet Another Post About JavaScript Scopes and Closures

For ThanksGiving, I am offering 5 exclusive website templates for just $3.99. Purchase Here. When discussing scope it’s important to consider where a variable is defi ned as well as its lifetime.Where is the variable accessible? In the case of JavaScript, scope is maintained at the function level,not the block level. Hence, variables defi ned with the keyword var and parameters are visible only inside the function in question. A nested function...

Friday, July 6, 2012

Organize your CSS Code

Are you a HTML5/CSS/jQuery Web Developer? Check out these templates Organizing your CSS helps with future maintainability of the site. Start with a master style sheet. Within this style sheet import your reset.css, global.css, flash.css (if needed) and structure.css and on occasion a typography style sheet. Here is an example of a “master” style sheet and how it is embedded in the document: 1. h2 { } 2. #snapshot_box h2 { 3. padding: 0 0 6px 0; 4....
Posted on 9:30 PM | Categories: