public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Dustin C. Hatch" <admiralnemo@dchweb.com>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Re: Unstable images in Firefox
Date: Mon, 30 Apr 2007 06:49:12 -0500	[thread overview]
Message-ID: <4635D7B8.60403@dchweb.com> (raw)
In-Reply-To: <200704301219.38593.harmgeerts@home.nl>

[-- Attachment #1: Type: text/plain, Size: 2277 bytes --]

This is in fact a scripting error.  It doesn't have anything to do with
the scroll bar, though.  I have my resolution at 1066x1200 which
provides ample room for the page to render and the scrollbar is never
invoked.

At any rate, I have seen this error before with my own scripts.  In
essence, this is what happens

   1. Mouse hovers over specified area and triggers onmouseover event
   2. onmouseover event calls a function that places a new image at the
      mouse cursor
   3. The mouse cursor is now over the new image so onmouseout is
      triggered from the original image
   4. onmouseout removes the new image
   5. The mouse cursor is now over the original image again, triggering
      onmouseover
   6. Go to step 2

This looping is what causes the flickering image.  If you are the
developer of the page, I would suggest you look into one of these solutions:

    * When the new hovering image is created, its absolute position
      should be such that it does not appear under the mouse cursor
    * When the new hovering image receives focus, a variable is set and
      unset when focus is lost. onmouseout on the original image should
      check to see if this variable is set before removing the original
      image

If you are not the developer, feel free to forward this message to
whoever is.  Hope this helps.

Dustin C. Hatch
http://www.dchweb.com



Harm Geerts wrote:
> On Monday 30 April 2007, Peter Humphrey wrote:
>   
>> Quite often, when I'm viewing a Web page that uses Javascript to overlay a
>> picture with enlarged sections of itself, I find a very rapid flickering of
>> the overlaid section alternating with the background picture. Here's an
>> example: http://heritage.stsci.edu/2007/16/supplemental.html. Does anyone
>> else find this? About Firefox says: Mozilla/5.0 (X11; U; Linux x86_64;
>> en-GB; rv:1.8.1.3) Gecko/20070411 Firefox/2.0.0.3.
>>     
>
> That's a scripting error, when you see the enlargement on mouseover the height 
> of the page increases. The increase causes the loss of the mouseover event en 
> then the page restores to it's original height.
>
> If you increase the size of the browserwindow/desktop so that the enlarged 
> picture doesn't cause the page to scroll the javascript function works fine.
>   

[-- Attachment #2: Type: text/html, Size: 2980 bytes --]

  reply	other threads:[~2007-04-30 11:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-30  9:24 [gentoo-amd64] Unstable images in Firefox Peter Humphrey
2007-04-30  9:37 ` Bernhard Berger
2007-04-30  9:47   ` Barry Walsh
2007-04-30 10:15   ` Etaoin Shrdlu
2007-04-30 10:19 ` [gentoo-amd64] " Harm Geerts
2007-04-30 11:49   ` Dustin C. Hatch [this message]
2007-05-01  7:54     ` Peter Humphrey
2007-05-03  9:58       ` Peter Humphrey
2007-05-06  9:34         ` Peter Humphrey
2007-04-30 11:12 ` [gentoo-amd64] " Richard Freeman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4635D7B8.60403@dchweb.com \
    --to=admiralnemo@dchweb.com \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox