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  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
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

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

    - 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
    - Building Single Row Database Forms with HTML
    - Introduction to Database Forms with HTML
    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway