1 |
This is in fact a scripting error. It doesn't have anything to do with |
2 |
the scroll bar, though. I have my resolution at 1066x1200 which |
3 |
provides ample room for the page to render and the scrollbar is never |
4 |
invoked. |
5 |
|
6 |
At any rate, I have seen this error before with my own scripts. In |
7 |
essence, this is what happens |
8 |
|
9 |
1. Mouse hovers over specified area and triggers onmouseover event |
10 |
2. onmouseover event calls a function that places a new image at the |
11 |
mouse cursor |
12 |
3. The mouse cursor is now over the new image so onmouseout is |
13 |
triggered from the original image |
14 |
4. onmouseout removes the new image |
15 |
5. The mouse cursor is now over the original image again, triggering |
16 |
onmouseover |
17 |
6. Go to step 2 |
18 |
|
19 |
This looping is what causes the flickering image. If you are the |
20 |
developer of the page, I would suggest you look into one of these solutions: |
21 |
|
22 |
* When the new hovering image is created, its absolute position |
23 |
should be such that it does not appear under the mouse cursor |
24 |
* When the new hovering image receives focus, a variable is set and |
25 |
unset when focus is lost. onmouseout on the original image should |
26 |
check to see if this variable is set before removing the original |
27 |
image |
28 |
|
29 |
If you are not the developer, feel free to forward this message to |
30 |
whoever is. Hope this helps. |
31 |
|
32 |
Dustin C. Hatch |
33 |
http://www.dchweb.com |
34 |
|
35 |
|
36 |
|
37 |
Harm Geerts wrote: |
38 |
> On Monday 30 April 2007, Peter Humphrey wrote: |
39 |
> |
40 |
>> Quite often, when I'm viewing a Web page that uses Javascript to overlay a |
41 |
>> picture with enlarged sections of itself, I find a very rapid flickering of |
42 |
>> the overlaid section alternating with the background picture. Here's an |
43 |
>> example: http://heritage.stsci.edu/2007/16/supplemental.html. Does anyone |
44 |
>> else find this? About Firefox says: Mozilla/5.0 (X11; U; Linux x86_64; |
45 |
>> en-GB; rv:1.8.1.3) Gecko/20070411 Firefox/2.0.0.3. |
46 |
>> |
47 |
> |
48 |
> That's a scripting error, when you see the enlargement on mouseover the height |
49 |
> of the page increases. The increase causes the loss of the mouseover event en |
50 |
> then the page restores to it's original height. |
51 |
> |
52 |
> If you increase the size of the browserwindow/desktop so that the enlarged |
53 |
> picture doesn't cause the page to scroll the javascript function works fine. |
54 |
> |