HTML
  Home arrow HTML arrow Page 3 - Mimic Edge for HTML Magic Edges
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

Mimic Edge for HTML Magic Edges
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-03-16

    Table of Contents:
  • Mimic Edge for HTML Magic Edges
  • Scrolling from the web page edge
  • Basic Implementation of Magic Edge
  • Scrolling from the Left Edge

  • 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


    Mimic Edge for HTML Magic Edges - Basic Implementation of Magic Edge


    (Page 3 of 4 )

    In this section, we shall consider the case where the calculator (inner DIV element) comes out of the left edge of the page and goes back when required.

    Scrolling Out From and Back into the Left Edge

    We need to put a mimic edge just next to the left edge. Our mimic edge is a DIV element. So we create a DIV element whose height is that of the height of the client area of the screen. The width is 1px. The element is given zero padding, zero border and zero margin.

    It is also given a CSS value of “inline” to its display property. In this way, you put it as the first element of the web page. As such it will be located next to the left edge. Because of its CSS inline value, web page elements will be placed on its right. It is given an onmouseover event, which triggers the scrolling out of the inner DIV element.

    Getting the Height of the Client Area of the Web Page

    The DOM screen object has the availHeight property. This is the height of the screen without the taskbar. We shall use the screen object and this property to obtain the height of the screen. For simplicity, we shall use this as the height of the mimic edge.

    Since the web page has toolbars, and we usually do not know how many toolbars the user will have, the mimic edge will extend below the taskbar. If we want to have the exact height of the client area, then we would need to know the number of toolbars and their heights. In theory this can be done, but browsers today would not support your efforts. In theory we can also look for the height of the entire page, but that is difficult. So we shall use the screen height for the client height.

    More HTML Articles
    More By Chrysanthus Forcha


     

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek