scrollLeft and scrollRight cause image flicker in IE

H

huntingseasonson

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;
 
L

-Lost

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
 
H

huntingseasonson

<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.
 
R

Richard Cornford

On Jan 29, 9:44 pm, "-Lost" wrote:
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.
 
H

huntingseasonson

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

Richard.

Alright, that works! Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top