SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 236 | Next

Jonathan Snook, Aaron Gustafson, Stuart Langridge, and Dan Webb

"Accelerated DOM Scripting with Ajax, APIs, and Libraries"

com) smooth scroll
with a little Shaun Inman (shauninman.com) thrown in */
getScrollLeft: function(){
if( document.all ){
return ( document.documentElement.scrollLeft ) ?
document.documentElement.scrollLeft :
document.body.scrollLeft;
} else {
return window.pageXOffset;
}
},
getScrollTop: function(){
if( document.all ){
return ( document.documentElement.scrollTop ) ?
document.documentElement.scrollTop :
document.body.scrollTop;
} else {
return window.pageYOffset;
}
},
scroll: function(){
// smooth scroll logic
},
CHAPTER 8 n CASE STUDY: FAQ FACELIFT 174
// ----- Element Finder
getDT: function(){
// finds the DT associated with the DD
},
// ----- Process Management
processing: function(){
// let's us know if something is processing
},
wait: function( method ){
// makes a script wait to execute
}
};
You??™ll address each property and method of this object in turn, but I want to give you the
general outline before you go too deep. As the comments mention, Travis Beckham (http://
squidfingers.com) and Shaun Inman (http://shauninman.com) provided a little code and a lot
of inspiration for the scroll manager you??™ll build. With that shout-out complete, let??™s dive right
in and start hacking away on FAQ.initialize().
Starting the Engine
The first thing the script needs to do is scan the document and grab any dl elements classified
as faq so you can work your magic.


Pages:
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6