468,119 Members | 1,972 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,119 developers. It's quick & easy.

scrollLeft and scrollRight cause image flicker in IE

Hi, I have set up the following page http://gertrudischale.com/cgi/
viewart.pl?lang=en&i=22 to scroll in the same direction one moves the
mouse. This works fine -except in IE- where the image tends to flicker
when the scrolling takes place.

Is there an alternative way to achieve the scrolling with out the
causing the flicker?

The code is as follows:
function moveImage(event)
{

if(!event) event = window.event;

if(document.lastX!=null&&document.lastY!=null) {

document.body.scrollLeft = (event.screenX document.lastX) ?
document.body.scrollLeft+3:
(event.screenX ==
document.lastX) ?
document.body.scrollLeft:document.body.scrollLeft-3;

document.body.scrollTop = (event.screenY document.lastY) ?
document.body.scrollTop+3:
(event.screenY ==
document.lastY) ? document.body.scrollTop:document.body.scrollTop-3;

}

document.lastX = event.screenX;
document.lastY = event.screenY;
}
document.onmousedown=new Function('return false');
document.onmousemove=moveImage;

Jan 30 '07 #1
4 9366
<hu**************@gmail.comwrote in message
news:11**********************@q2g2000cwa.googlegro ups.com...
Hi, I have set up the following page http://gertrudischale.com/cgi/
viewart.pl?lang=en&i=22 to scroll in the same direction one moves the
mouse. This works fine -except in IE- where the image tends to flicker
when the scrolling takes place.

Is there an alternative way to achieve the scrolling with out the
causing the flicker?

The code is as follows:
<snip script>

Using Internet Explorer 6 I did see the flicker, but *only* when the Image Toolbar
appeared on the image. Otherwise, if I put my cursor above the image and quickly move it
about (before the toolbar appears) the page scrolls fine without flickering the image. Is
this when you noticed it?

If so, my guess would be that the *only* solution is to:

Tools Internet Options... Advanced (tab) Multimedia "Enable Image Toolbar
(requires restart)"

....remove the check from that box and of course restart (as required). The image stopped
flickering for me then.

You could always state somewhere on the page or on a disclaimer page that if using
Internet Explorer you must disable the "Image Toolbar" and give instructions on how to do
so.

Hope this helps.

-Lost
Jan 30 '07 #2
On Jan 29, 9:44 pm, "-Lost" <spam_ninjaREMOV...@REMOVEMEcomcast.net>
wrote:
<huntingseason...@gmail.comwrote in message

news:11**********************@q2g2000cwa.googlegro ups.com...
Hi, I have set up the following pagehttp://gertrudischale.com/cgi/
viewart.pl?lang=en&i=22 to scroll in the same direction one moves the
mouse. This works fine -except in IE- where the image tends to flicker
when the scrolling takes place.
Is there an alternative way to achieve the scrolling with out the
causing the flicker?


<snip script>

Using Internet Explorer 6 I did see the flicker, but *only* when the Image Toolbar
appeared on the image.
If so, my guess would be that the *only* solution is to:

Tools Internet Options... Advanced (tab) Multimedia "Enable Image Toolbar
(requires restart)"

...remove the check from that box and of course restart (as required). The image stopped
flickering for me then.

You could always state somewhere on the page or on a disclaimer page that if using
Internet Explorer you must disable the "Image Toolbar" and give instructions on how to do
so.

Hope this helps.

-Lost
Yes, that would seem to be the cause. Ok, well thanks, I'll have to
decide what I'm going to do.

Jan 30 '07 #3
On Jan 30, 5:44 pm, huntingseason...@gmail.com wrote:
On Jan 29, 9:44 pm, "-Lost" wrote:
<snip>
>Using Internet Explorer 6 I did see the flicker, but *only* when the Image
Toolbar appeared on the image.
If so, my guess would be that the *only* solution is to:
<snip>
Yes, that would seem to be the cause. Ok, well thanks, I'll have to
decide what I'm going to do.- Hide quoted text -- Show quoted text -
Adding the Microsoft proprietary - galleryimg="no" - attribute to IMG
elements discourages IE from putting up the image toolbar.

Richard.

Jan 30 '07 #4
On Jan 30, 10:08 am, "Richard Cornford" <Rich...@litotes.demon.co.uk>
wrote:
On Jan 30, 5:44 pm, huntingseason...@gmail.com wrote:
On Jan 29, 9:44 pm, "-Lost" wrote:
<snip>
Using Internet Explorer 6 I did see the flicker, but *only* when the Image
Toolbar appeared on the image.
If so, my guess would be that the *only* solution is to:
<snip>
Yes, that would seem to be the cause. Ok, well thanks, I'll have to
decide what I'm going to do.- Hide quoted text -- Show quoted text -

Adding the Microsoft proprietary - galleryimg="no" - attribute to IMG
elements discourages IE from putting up the image toolbar.

Richard.
Alright, that works! Thanks!

Jan 30 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by zelnugget | last post: by
reply views Thread by Deborah V. Gardner | last post: by
reply views Thread by Blue Apricot | last post: by
3 posts views Thread by seamlyne | last post: by
15 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.