HTML
  Home arrow HTML arrow Another Look at Animation of Geographical ...
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

Another Look at Animation of Geographical Map Regions
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-06-23

    Table of Contents:
  • Another Look at Animation of Geographical Map Regions
  • How to Stop the Blinking
  • Complete Code
  • Code continued
  • More Code

  • 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


    Another Look at Animation of Geographical Map Regions


    (Page 1 of 5 )

    We finished the last article with unanswered questions about the onmouseover and onmouseout events for a blinking map region. When does the event actually occur? And what event specifically is occurring? We will answer these questions and more in this article, so join us for the exciting conclusion.

    This is the way some browsers, including mine, behave: the onmouseover event occurs at the first instant the mouse pointer comes over an element. As long as the mouse pointer is over the element, the onmouseover event will be recurring. Now, if the onmouseover event recurs while the pointer is over the element, it means that the onmouseout event must have occurred for the element as well. As you can see this project is delicate; that is why I have to be very explicit below.

    The example discussed in the last article was simple, so no problem was noticed. In this example, the interpretation of the onmouseover and onmouseout event poses a problem. So, we approach this example differently from the way we approached the previous example. We shall only have the onmouseover event in our code; we shall not have the onmouseout event. There will be a fourth image-map region for each of our 4 images. The image regions of interest are those for Portugal, Spain, and France. The fourth image region is the rest of the image that does not have Portugal, Spain, or France. The question here is: how do we get such an image area?

    A clickable region, as we know, is an enclosed region. For our two examples, it is a polygon. The gray portion of the following image shows how I made a polygon out of the fourth region.

    Fig.5. Enclosed Polygon of the fourth Region

    Note the white gap in the image near Portugal. With this white gap the gray portion of the image forms an enclosed polygon. When you take your mouse pointer away from Portugal, Spain, and France, it must first find itself on this gray region before it can be out of the image entirely. The chances are small that it will it find itself on the white gap before it leaves the image.

    More HTML Articles
    More By Chrysanthus Forcha


       · At last, you too can also do it.Chrys
       · Please give one tip for <div> with table in ie browesr
     

    HTML ARTICLES

    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP
    - Background Images for a Menu for All Browsers
    - React and ToChoose Functions for a Menu for ...
    - Fast FAQ Session with ACP
    - Functions for a Menu for All Browsers
    - Browser Compatibility Modifications for a We...
    - Building a Drop-Down Menu with Nested HTML L...
    - Table Attributes for a Menu for all Browsers
    - Modifying a Web Page Calendar
    - Styling Elements of Nested HTML Lists
    - Configuring Tables for a Menu for All Browse...
    - Showing a Full Year with a Web Page Calendar
    - Designing with Nested HTML Lists







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