Richard, thanks for the assist, but the code is in the onmouseup
eventlistener. Here is a sample of the offending code. And as I mentioned in
my follow-up not, I've only noted this in IE 5.0 on Win2K. It works fine on
IE5.5 on NT 4.

// Create an event listener for the facilities Label
        facListener = new EventListener(DynAPI.document);
        facListener.onmouseup = function(e) {
                var temp = document.forms[1].hdnArrow.value;
                
                temp = temp ^ 1;

                if (temp == 1) {
                        filtersLayer.setVisible(true);
                        lblFacilities.setFontColor('#ffff00');
                        arrow.setImage(blueDnImg);
                }
                else {
                        filtersLayer.setVisible(false);
                        lblFacilities.setFontColor('#f8f8ff');
                        arrow.setImage(blueImg);
                }

                document.forms[1].hdnArrow.value = temp;
        }
        
        // Add the listener to the Image
        lblFacilities.addEventListener(facListener);



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Bennett
Sent: Wednesday, February 07, 2001 9:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] Flakey behavior after clicking on a label
object


Hi,
> I have a label object that I've added an event listener to. This event
> listener essentially changes the color of the font in the label when the
> label is clicked. All is fine there. However, after the label has been
> clicked, moving the mouse causes  the remainder of items on the layer to
> become highlighted as if I was selecting them to copy from the page.

put the code in the onmouseup eventlistener, instead of the onmousedown.
that should help.

Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)

----- Original Message -----
From: "James Koennicke" <[EMAIL PROTECTED]>
To: "Dynapi (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 5:57 PM
Subject: [Dynapi-Help] Flakey behavior after clicking on a label object


> First of all I have two thank yous, one for the wonderful effort of the
> folks that have put the DynAPI together; it is truly a marvelous piece of
> work. The second is for you folks tolerating a newby such as myself and
his
> seemingly endless, beginners questions.
>
> On to my problem.
>
> I have a label object that I've added an event listener to. This event
> listener essentially changes the color of the font in the label when the
> label is clicked. All is fine there. However, after the label has been
> clicked, moving the mouse causes  the remainder of items on the layer to
> become highlighted as if I was selecting them to copy from the page. This
> behavior continues until I click the mouse again, but not on the label.
Does
> anyone know what might be causing this behavior?
>
> James F. Koennicke
> Consultant
> Vista Information Technologies, Inc.
> 2195 Fox Mill Road
> Herndon, VA 20171
>
> email: [EMAIL PROTECTED]
> ph: (703) 561-4132
> fax: (703) 561-4160
>
>
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> ____________________________________________________________
> Get your free domain name and domain-based e-mail from
> Namezero.com. New!  Namezero Plus domains now available.
> Find out more at: http://www.namezero.com
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to