HTML
  Home arrow HTML arrow Maximizing and Restoring Images in a Tabul...
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 
Sun Developer Network 
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 Images in a Tabular Database Form in HTML
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-10-01

    Table of Contents:
  • Maximizing and Restoring Images in a Tabular Database Form in HTML
  • Image Tags
  • Second Method of Maximizing and Restoring
  • Final Comments on the Client Side Design

  • 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 Images in a Tabular Database Form in HTML


    (Page 1 of 4 )

    Welcome to the twelfth part of a thirteen-part series that shows you how to build database forms with HTML. In the previous part, we dealt with the recordset and began getting everything together for our database. In this part, since we know our shopper may want to see our watch images in different sizes, we will learn how to maximize and restore images.

    We now have images as data in the tabular form. Each image seen is the background of the File Input control. The value of this control is the path (link) to the actual image. In order for these images to fit vertically in the tabular form, they have to be small. The user will want to maximize the image to appreciate it properly. After maximizing, he will want to either restore or remove the maximized image.

    I will show you two ways of doing this. I have enclosed 10 images that you can use to experiment with my code or your own code. They will help you gain experience quickly but they are not really part of this document. If you do not want to experiment with the code, then you do not need the images.

    The first way to maximize and restore images is my favorite. With this method, when you click an image, it is maximized. The maximized image covers the elements (text) behind it. When you click the maximized image it disappears; the small image remains. 

    The second method is one you might have experienced. Here, when you click an image, a new window appears with the image maximized; to remove the image from the screen you close the new window.

    The First Method of Maximizing an Image

    I recently wrote an article about the first method. I will use the principles here without explaining the details. The principles are as follows:

    1. The maximized image is the largest image at its original resolution.

    2. This image (to be maximized) is given the CSS “position:absolute” property.

    3. This image (to be maximized) should not be given the CSS Left and Right properties.

    4. This image (to be maximized) is given a z-index that is higher than those of its surrounding elements.

    5. The dimensions of the image are increased to maximize it.

    6. The vertical align property of the parent element, preferably the TD element should be given a value of “top.”

    7. To restore, reverse the third and fourth points above.

    If you read that article, you would recall that browsers today do not handle the CSS position and associated properties as they should. Also, because of the complexity of our project, I will not follow the above steps strictly. Click on the link below and keep reading to see what I have done.

    More HTML Articles
    More By Chrysanthus Forcha


       · We have done a lot. We have just this chapter and the last one. Let's get it...
     

    HTML ARTICLES

    - Using a 3D HTML Table as a Recordset
    - Building a 3D HTML Table
    - Maximizing and Restoring HTML Images: Layer ...
    - Completing Construction of a Database Form w...
    - Maximizing and Restoring Images in a Tabular...
    - Building the Recordset for an HTML Database ...
    - Laying Out a Database Form with HTML
    - Tabular Database Form Functions with HTML
    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT