Home arrow HTML arrow Maximizing and Restoring HTML Images with the Image Map Method
HTML

Maximizing and Restoring HTML Images with the Image Map Method


This article is a follow up to the article "Maximizing and Restoring HTML Images with the Absolute Method." It offers an alternative method, which I call "Image Map." So if you want another way to display an image on your web page with maximization and restoration capabilities, then by all means read this article.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 5
April 16, 2008
TABLE OF CONTENTS:
  1. · Maximizing and Restoring HTML Images with the Image Map Method
  2. · The Method
  3. · Image Map
  4. · Testing and Finalizing

print this article
SEARCH DEVARTICLES

Maximizing and Restoring HTML Images with the Image Map Method
(Page 1 of 4 )

The phenomenon

Just as a quick review, in case you didn't read the earlier article, let me remind you of what we'll be trying to accomplish. Many web pages feature images that can be enlarged (maximized) and restored within the same page. There is normally a small clickable area on the image. When you click this area, the image is maximized. While the image is maximized, there is still a small clickable area on the image; if you click that area, the image is restored to its smaller size. This phenomenon is common in e-commerce or shopping websites.

You can get this effect by purchasing a program that will produce the image with the small clickable area. When this area is clicked, the image will maximize or restore itself; you do not need to know how the program was written, you just use it to produce an image with the maximization and restoration characteristics. Another way is to do it yourself, using JavaScript and CSS. That is what I want to show you in this article. I call the method, the Image Map Method.

You need to know the basics of HTML, JavaScript, and CSS in order to understand this method. I will use the image of a watch to explain the method. Two sizes of a watch are given below (Fig.1 & Fig.2). The small one is the watch at its normal size. The bigger one is the watch at the maximized size.




The small triangle with a black border at the bottom right of the normal-sized image is the clickable area used to maximize the image. The same small triangle (proportionally enlarged) at the bottom right of the maximized image is the clickable area used to restore the image.


blog comments powered by Disqus
HTML ARTICLES

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




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