Home arrow JavaScript arrow Improving an Image Zooming Application with JavaScript
JAVASCRIPT

Improving an Image Zooming Application with JavaScript


Among the plethora of JavaScript applications that can be developed to extend the existing functionality of a web site, zooming into and out of bitmapped images is quite possibly one of easiest to build and implement. Thus, if you’re a web developer who’s interested in learning how to incorporate basic zooming capabilities into your own web applications, then don’t waste any more time. Start reading this article now!

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
March 11, 2008
TABLE OF CONTENTS:
  1. · Improving an Image Zooming Application with JavaScript
  2. · Listing the complete source code of the initial JavaScript zooming application
  3. · Shortening the JavaScript code
  4. · Listing the improved source code

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Improving an Image Zooming Application with JavaScript
(Page 1 of 4 )

Welcome to the second part of the series "Image zooming with JavaScript." As its title clearly implies, this series walks you through the development of a highly modular JavaScript-driven application that implements an extensible behavioral layer aimed at providing existing web sites with the capability of zooming into and out of some of its embedded bitmapped images.

Now that you know what this series is about, it's time to rehash the topics that were covered in the previous tutorial. This will give you a better idea of how that article and this one fit together. All right, having said that, you'll surely recall that during the first installment of the series, I built a couple of JavaScript functions whose primary task was performing a basic zoom in/out effect on a unique targeted image.

You'll also remember that the zooming in/out effect was handled by a pair of simple controls built by way of two web form buttons. This mechanism can undoubtedly be improved, but not at this very moment.

Nonetheless, it's perfectly worthwhile to mention that the zooming controls in question were directly included in the pertinent web document. It used some basic structural markup, which is certainly a questionable and rather clumsy approach since these controls should be created dynamically with DOM scripting. But since my plan consists basically of addressing one issue at a time, this one will be fixed in upcoming tutorials of the series.

For now, in the next few lines I'm going to introduce some important improvements to its original structure to make the source code much shorter and more compact. Sounds really interesting, right?

Well, having established the goal of this second article of the series, let's learn how to turn the source code of this JavaScript zooming application into a tight and clean piece of software. Let's begin this educational journey now!


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials