HTML
  Home arrow HTML arrow Maximizing and Restoring HTML Images: Laye...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Maximizing and Restoring HTML Images: Layer Method
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-11-04

    Table of Contents:
  • Maximizing and Restoring HTML Images: Layer Method
  • The Method
  • Operation
  • Other Image Types

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Maximizing and Restoring HTML Images: Layer Method


    (Page 1 of 4 )

    If you're writing web pages for an e-commerce web site, you might want to give visitors the ability to enlarge thumbnail images of your products so they can see more detail. You can buy a program that will do this for you -- or you can save your money and read this article to learn how to do it yourself, with a little HTML, JavaScript, and CSS.

    The phenomenon

    You must have come across web pages with 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 which, if you click it, the image is restored to its former size. This phenomenon is common in e-commerce or shopping web sites.

    I have a special method to achieve this, involving no clickable area on the image. You click the image and it maximizes itself, covering any element (text) it has to cover at its maximum size. When you click the maximized image, it restores itself.

    One way to do this on your web page is to obtain (buy) a program, which will produce the image with the effects. When the image is clicked, it would maximize or restore itself -- you do not need to know how the program was written, you just use it to produce an image that can be maximized and restored. Another way is to do it yourself, using JavaScript and CSS. I want to show you a special method to achieve this using HTML, JavaScript and CSS. I do not know if anybody has done this before, so I refer to it as my Special Method.

    At the moment I am writing an article series on the topic of database forms with HTML. In one part of that series, I explained how to maximize and restore images that are in an HTML tabular form. The method in this article is one of the methods I used; it is my favorite, in fact. Note that in that part of the series I only used the principles established here, and did not explain the details. There I only explained how the principles I will illustrate here fit with HTML tabular forms.

    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 it. Two sizes of a watch are given below (Fig.1 & Fig.2). The first figure shows the web page when the watch is at its normal size (restored) and the second figure shows the situation when the watch is at its maximized size.

    Fig.1 Normal Size

    Fig.2 Maximized Size



    More HTML Articles
    More By Chrysanthus Forcha


       · Thanks for stopping by to read my article. If you have any comments, questions, or...
       · Hi, This article I would like if it had become with Ajax. I mean that if I have many...
       · Officially Ajax would download text or XML information. Officially Ajax would not...
     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT