HTML
  Home arrow HTML arrow Page 4 - 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 
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 - Code continued


    (Page 4 of 5 )


    //toggle the toggle variable

    switch(toggleVarS)

    {

    case 1:

    toggleVarS = 0;

    break;

    case 0:

    toggleVarS = 1;

    break;

    }

     

     

    TS = setTimeout("togglingSpain()",500);

    }

     


    function startTogglingSpain()

    {

    mouseHasBeenOverOnceS = mouseHasBeenOverOnceS + 1;

    if (mouseHasBeenOverOnceS == 1)

    {

    togglingSpain()

    }

    }

     

     

    var toggleVarP = 1; //for toggling the initial image and that of Portugal

    var mouseHasBeenOverOnceP = 0; //to indicate that mouse pointer has just come over the region of Portugal


    function togglingPortugal()

    {

    clearTimeout(TF)

    clearTimeout(TS)

    toggleVarF = 1;

    toggleVarS = 1;

    mouseHasBeenOverOnceF = 0;

    mouseHasBeenOverOnceS = 0;

     


    switch(toggleVarP)

    {

    case 1: //the initial image has the highest z-index

     

    document.getElementById("initial").style.zIndex = 1;

     

    document.getElementById('Portugal').style.zIndex = 2;

    document.getElementById('Spain').style.zIndex = 1;

    document.getElementById('France').style.zIndex = 1;

    break;

    case 0: //the image for Portugal has the highest z-index

    document.getElementById("initial").style.zIndex = 2;

     

    document.getElementById('Portugal').style.zIndex = 1;

    document.getElementById('Spain').style.zIndex = 1;

    document.getElementById('France').style.zIndex = 1;

    break;

    }


    //toggle the toggle variable

    switch(toggleVarP)

    {

    case 1:

    toggleVarP = 0;

    break;

    case 0:

    toggleVarP = 1;

    break;

    }

     

    TP = setTimeout("togglingPortugal()",500);

    }

     


    function startTogglingPortugal()

    {

    mouseHasBeenOverOnceP = mouseHasBeenOverOnceP + 1;

    if (mouseHasBeenOverOnceP == 1)

    {

    togglingPortugal()

    }

    }

     

    function resetAll()

    {

    clearTimeout(TF)

    clearTimeout(TS)

    clearTimeout(TP)

    toggleVarF = 1;

    toggleVarS = 1;

    toggleVarP = 1;

    mouseHasBeenOverOnceF = 0;

    mouseHasBeenOverOnceS = 0;

    mouseHasBeenOverOnceP = 0;

    clearTimeout(TF)

    clearTimeout(TS)

    clearTimeout(TS)

     

    //reset the images

    document.getElementById("initial").style.zIndex = 2;

     

    document.getElementById('Portugal').style.zIndex = 1;

    document.getElementById('Spain').style.zIndex = 1;

    document.getElementById('France').style.zIndex = 1;

    }


    </script>


    </head>


    <body>


    <table cellpadding="0" cellspacing="0" border="0">

    <tbody>

    <tr>

    <td width="100">

    </td>

    <td id="forMap">

    <img src="Portugal.jpg" usemap ="#MP" id="Portugal">

    <map id="MP">


    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

    - 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 4 hosted by Hostway
    Stay green...Green IT