HTML
  Home arrow HTML arrow Page 4 - Completing the HTML Magic Edges Project
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

Completing the HTML Magic Edges Project
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-04-06

    Table of Contents:
  • Completing the HTML Magic Edges Project
  • Code to Shift Right and Left
  • The shiftRight() Function
  • Code to Shift Down and Up
  • Remarks

  • 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


    Completing the HTML Magic Edges Project - Code to Shift Down and Up


    (Page 4 of 5 )

    For each variable and function related to the left edge, there is an equivalent variable or function to shift down and up (related to the top edge), but with different names. You can get the complete code, which includes this section, from the following link:

    < -- MagicEdges.zip -->

    Functions Related to the Left and Top Edge

    There are two functions that are related to the left and top edge. One of them is:


    function removePane()

    {

    if (edge == "left")

    removePaneL();

    else if (edge == "top")

    removePaneU();

    }


    This is the function called to remove the pane which comes out from the left mimic edge or the top mimic edge. When the BODY element receives a click, this function is called. It first checks to see if the pane came out of the left edge. If it did, it calls the removePaneL() function, which would cause the pane to go back into the left edge. Remember that the removePaneL() function will first have to verify whether the click is from the pane or the BODY alone. If the pane was not from the left edge, the function goes on to see if it was from the top edge. If it was from the top edge, it calls the equivalent removePaneU() function for the top edge.

    The other function which is common to both the left and top edge is:


    function checkRemSit()

    {

    if (edge == "left")

    leftPaneShown = true;

    else if (edge == "top")

    topPaneShown = true;

    }


    The name of this function is checkRemSit(), meaning Check Removal Situation. The aim of this function is to indicate whether the pane is shown (leftPaneShown) from the left edge or the top edge, with the ultimate purpose of differentiating between the click from pane and click from BODY outside pane. Note that we are dealing with the same outer and inner DIV elements, whether the pane is coming out of the left edge or the top edge.

    Another aim of this function is to avoid conflicts between the functions for the left edge and those for the top edge. It first of all checks to see if the value of the edge variable is “left.” If it is, it sets the leftPaneShown variable to true. Otherwise, the function checks to see if the value of the edge variable is “top;” if it is, it sets the topPaneShown variable to true.

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