473,385 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Page flickers due to forced scrolling

I've got some javascript that will show or hide an element on the page
when a user activates it. The problem I'm having is that the content
changes the length of the page, so if the user scrolls to the bottom
of the page with the element showing, and then said user hides the
element, the page has to shrink down back to its original length.
The problem is that while it's shrinking, the page flickers badly. It
looks bad enough to give someone seizures.
I'm not sure if this happens in other browsers because the page
currently only works in Firefox.

I've considered just automatically scrolling to the top of the page
when content is hidden, but I feel that could be just as disorienting
to the user. My other thought was to include the whole result inside a
div with a set height and allow that to scroll, but I'm not sure if
the div would handle changing content length any better than Firefox
does. Does anyone have experience with that?

Basically, I'm just wondering if anyone has any suggestions on how to
reduce/remove the effect.
Thanks.
Mar 6 '08 #1
3 1477
Basically, I'm just wondering if anyone has any suggestions on how to
reduce/remove the effect.

only to try to reduce : you cant want to keep same place except if you
work with style 'visibility' instead of 'display'
Thanks for the response, but I want the stuff to change the page's
length. I just don't like how Firefox handles it (again, I'm still not
sure about IE). The odd thing about it is, Firefox handles horizontal
changes just fine. It leaves the page scrolled to the right, and just
shows nothing. Then it waits for the user to scroll left. Maybe I've
simply found a genuine FF bug.
Mar 13 '08 #2
SAM
Spizzat2 a écrit :
>
Thanks for the response, but I want the stuff to change the page's
length. I just don't like how Firefox handles it (again, I'm still not
sure about IE). The odd thing about it is, Firefox handles horizontal
changes just fine. It leaves the page scrolled to the right, and just
shows nothing. Then it waits for the user to scroll left. Maybe I've
simply found a genuine FF bug.

that smells errors about CSS

I can't see what you say (horizontal scroll) with my little example
given in my previous answer.

can you give an url for a test ?

--
sm
Mar 13 '08 #3
that smells errors about CSS
>
I can't see what you say (horizontal scroll) with my little example
given in my previous answer.

can you give an url for a test ?

--
sm
The horizontal scroll example was in reference to my site, not to your
code.
Unfortunately, I can't give the url because it's a restricted access
site.
Mar 13 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David Graham | last post by:
Hi I have a page at: http://p0c79.phpwebhosting.com/~p0c79/testbusiness.html which opens as expected, but an identical page, (except for the text content of the scrolling div:)...
4
by: Ben | last post by:
I have a page for my company that I need assistance with: http://www.eastex.net/ben/NewETN/subPage.htm When you resize the window (NS or IE) small enough that you have to scroll horizontally...
13
by: al jones | last post by:
I guess one question at a time will work better. URL http://aljones.us (yes, I'm back again) I'd like to cause this whole page to fill the viewable window if I can. Meaning that I'd like the...
2
by: Paul | last post by:
Hi I have a page broken into two sections, the first top section is selection criteria for my datagrid. The second section is the actual datagrid. I would like the selection criteria section...
4
by: Nehmo Sergheyev | last post by:
After reading about text line length http://psychology.wichita.edu/surl/usabilitynews/72/columns.htm , I'm thinking about experimenting with columns of text on a page. Is it possible on an HTML...
1
by: Martin Russ | last post by:
Hi, Playing around with Atlas (March CTP). I have a block of tables followed by a timercontrol that is supposed to update an UpdatePanel for the date/time. The timercontrol is working great,...
8
by: nirdeshonline | last post by:
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me...
4
by: jobs | last post by:
the javascript: function ShowTooltip(L1in) { document.getElementById("L1").innerText=L1in; y = event.clientY + document.documentElement.scrollTop; var Popup= document.getElementById("Popup")...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.