<div id="RTEContent">Hi Paul,<br> <br> Thanks for your advice, I have tried it and works until certain point.&nbsp; It is able to hide the keymap but certain disfunciones take place.<br> <br> 1- It hides fine the keymap, but when is shown, it appears all red (extent outline color) until you press in it. And in the following press operations it remains the previous extension and the actual until you press on it.<br> <br> 2- Because my keymap is on the map, the functions of keymap (zoom) follows alive! When I zoom in on the main map it zoom to keymap :(<br> <br> Do you know how can I deactivate keymap functions?<br> <br> Thanks a lot in advanced!<br><br><b><i>Paul Spencer &lt;pspencer@dmsolutions.ca&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Joan,<br><br>the problem is not with your code but with the way Chameleon does  <br>things.  The keymap is actually created outside of your div so hiding 
 <br>the div won't do what you expect.  However, I think you can do this:<br><br>function hideKeymapDHTML()<br>{<br>     CWCDHTML_HideLayer("KeyMapLayerBG");<br>     CWCDHTML_HideLayer("KeyMapLayerDiv");<br>     CWCDHTML_HideLayer("zKeyMapBoxTop");<br>     CWCDHTML_HideLayer("zKeyMapBoxLeft");<br>     CWCDHTML_HideLayer("zKeyMapBoxBottom");<br>     CWCDHTML_HideLayer("zKeyMapBoxRight");<br>     CWCDHTML_HideLayer("zKeyMapBox2Top");<br>     CWCDHTML_HideLayer("zKeyMapBox2Left");<br>     CWCDHTML_HideLayer("zKeyMapBox2Bottom");<br>     CWCDHTML_HideLayer("zKeyMapBox2Right");<br>}<br><br><br>function showKeymapDHTML()<br>{<br>     CWCDHTML_ShowLayer("KeyMapLayerBG");<br>     CWCDHTML_ShowLayer("KeyMapLayerDiv");<br>     CWCDHTML_ShowLayer("zKeyMapBoxTop");<br>     CWCDHTML_ShowLayer("zKeyMapBoxLeft");<br>     CWCDHTML_ShowLayer("zKeyMapBoxBottom");<br>     CWCDHTML_ShowLayer("zKeyMapBoxRight");<br>     CWCDHTML_ShowLayer("zKeyMapBox2Top");<br>    
 CWCDHTML_ShowLayer("zKeyMapBox2Left");<br>     CWCDHTML_ShowLayer("zKeyMapBox2Bottom");<br>     CWCDHTML_ShowLayer("zKeyMapBox2Right");<br>}<br><br>Cheers<br><br>Paul<br><br>On 16-Nov-05, at 12:18 PM, joanvp wrote:<br><br>&gt; My code is:<br>&gt;<br>&gt; ************html code************<br>&gt; <a href="javascript://" onclick="showhide('mapaguia');">click me</a><br>&gt;<br>&gt; <div id="mapaguia" name="mapaguia"><br>&gt;     <cwc2 type="KeyMapDHTML" visible="TRUE"><br>&gt; </cwc2></div><br>&gt;<br>&gt;<br>&gt; *********css code**************<br>&gt; #mapaguia {<br>&gt;   padding:0px;<br>&gt;   margin:0px;<br>&gt;   position:absolute;<br>&gt;   left:39px;<br>&gt;   top:119px;<br>&gt;   visibility:hidden;<br>&gt;   border: 0px none #000000;<br>&gt; }<br>&gt;<br>&gt; ***********javascript**********<br>&gt; <script language="javascript"><br>><br>> var state = 'hidden';<br>><br>> function showhide(layer_ref) {<br>><br>> if (state == 'visible') {<br>> state = 'hidden';<br>> }<br>> else
 {<br>> state = 'visible';<br>> }<br>> if (document.all) { //IS IE 4 or 5 (or 6 beta)<br>> eval( "document.all." + layer_ref + ".style.visibility = state");<br>> }<br>> if (document.layers) { //IS NET! SCAPE 4 or below<br>> document.layers[layer_ref].visibility = state;<br>> }<br>> if (document.getElementById && !document.all) {<br>> maxwell_smart = document.getElementById(layer_ref);<br>> maxwell_smart.style.visibility = state;<br>> }<br>> }<br>> </script><br>&gt;<br>&gt;<br>&gt;<br>&gt; chameleon-request@lists.maptools.org wrote: Send Chameleon mailing  <br>&gt; list submissions to<br>&gt; chameleon@lists.maptools.org<br>&gt;<br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt; http://lists.maptools.org/mailman/listinfo/chameleon<br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt; chameleon-request@lists.maptools.org<br>&gt;<br>&gt; You can reach the person managing the list at<br>&gt; chameleon-owner@lists.maptools.org<br>&gt;<br>&gt;
 When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of Chameleon digest..."<br>&gt;<br>&gt;<br>&gt; Today's Topics! :<br>&gt;<br>&gt; 1. Show/Hide KeyMapDHTML (joanvp)<br>&gt; 2. Re: Show/Hide KeyMapDHTML (Jason Fournier)<br>&gt;<br>&gt;<br>&gt; ----------------------------------------------------------------------<br>&gt;<br>&gt; Message: 1<br>&gt; Date: Wed, 16 Nov 2005 08:33:35 -0800 (PST)<br>&gt; From: joanvp<br>&gt; Subject: [Chameleon] Show/Hide KeyMapDHTML<br>&gt; To: chameleon@lists.maptools.org<br>&gt; Message-ID: &lt;20051116163335.14228.qmail@web50101.mail.yahoo.com&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt;<br>&gt; Hi list,<br>&gt;<br>&gt; I'm trying to run a javascript function for show and hide  <br>&gt; KeyMapDHTML with a button. My keymap is positioned throw div tags  <br>&gt; and css.The function works fine with the div, but keymap is allways  <br>&gt; on top. Why? how can I hide it without submit
 the whole page?<br>&gt;<br>&gt; Thanks a lot in advanced<br>&gt;<br>&gt;<br>&gt;<br>&gt; ---------------------------------<br>&gt; Yahoo! FareChase - Search multiple travel sites in one click.<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://lists.maptools.org/pipermail/chameleon/attachments/ <br>&gt; 20051116/33266870/attachment-0001.html<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 2<br>&gt; Date: Wed, 16 Nov 2005 11:50:38 -0500<br>&gt; From: Jason Fournier<br>&gt; Subject: Re: [Chameleon] Show/Hide KeyMapDHTML<br>&gt; To: chameleon@lists.maptools.org<br>&gt; Message-ID: &lt;437B635E.1010509@dmsolutions.ca&gt;<br>&gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>&gt;<br>&gt; Joan,<br>&gt;<br>&gt; Can you give us your CSS and the snippet of HTML that contains the<br>&gt; KeyMapDHTML tag?<br>&gt;<br>&gt; Thanks,<br>&gt; Jason<br>&gt;<br>&gt;<br>&gt;<br>&gt; joanvp
 wrote:<br>&gt; &gt; Hi list,<br>&gt; &gt;<br>&gt; &gt; I'm trying to run a javascript function for show and hide  <br>&gt; KeyMapDHTML<br>&gt; &gt; with a button. My keymap is positioned throw div tags and css.The<br>&gt; &gt; function works fine with the div, but keymap is allways on top.  <br>&gt; Why? how<br>&gt; &gt; can I hide it without submit the whole page?<br>&gt; &gt;<br>&gt; &gt; Thanks a lot in advanced<br>&gt; &gt;<br>&gt; &gt;  <br>&gt; ---------------------------------------------------------------------- <br>&gt; --<br>&gt; &gt; Yahoo! FareChase - Search multiple travel sites in one click.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;  <br>&gt; ---------------------------------------------------------------------- <br>&gt; --<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Chameleon mailing list<br>&gt; &gt; Chameleon@lists.maptools.org<br>&gt; &gt;
 http://lists.maptools.org/mailman/listinfo/chameleon<br>&gt;<br>&gt; -- <br>&gt; ________________________<br>&gt; Jason Fournier<br>&gt;<br>&gt; DM Solutions Group Inc.<br>&gt; jfournier@dmsolutions.ca<br>&gt; www.dmsolutions.ca<br>&gt; 613.565.5056 x18<br>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Chameleon mailing list<br>&gt; Chameleon@lists.maptools.org<br>&gt; http://lists.maptools.org/mailman/listinfo/chameleon<br>&gt;<br>&gt;<br>&gt; End of Chameleon Digest, Vol 20, Issue 14<br>&gt; *****************************************<br>&gt;<br>&gt;<br>&gt; Yahoo! FareChase - Search multiple travel sites in one click.<br>&gt; _______________________________________________<br>&gt; Chameleon mailing list<br>&gt; Chameleon@lists.maptools.org<br>&gt; http://lists.maptools.org/mailman/listinfo/chameleon<br><br>+-----------------------------------------------------------------+<br>|Paul Spencer                 
          pspencer@dmsolutions.ca   |<br>+-----------------------------------------------------------------+<br>|Applications &amp; Software Development                              |<br>|DM Solutions Group Inc                 http://www.dmsolutions.ca/|<br>+-----------------------------------------------------------------+<br><br><br><br><br></blockquote><br></div><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>