Re: offestTop et scrollTop always zero



"Claude Schneegans" wrote:
I need to control the select scroll to make sure that a certain
option is visible in the select box, WITHOUT having this option
selected (the currently selected option must remain the same).

How do you plan to account for this?

"Visual user agents are not required to present a SELECT
element as a list box; they may use any other mechanism,
such as a drop-down menu."

http://www.w3.org/TR/html401/interact/forms.html#edef-SELECT


Or this?

Replaced element
An element for which the CSS formatter knows only the
intrinsic dimensions. In HTML, IMG, INPUT, TEXTAREA,
SELECT, and OBJECT elements can be examples of replaced
elements. For example, the content of the IMG element
is often replaced by the image that the "src" attribute
designates. CSS does not define how the intrinsic
dimensions are found.

http://www.w3.org/TR/REC-CSS2/conform.html#replaced-element


If you *need* the behavior you describe, then you probably should not depend on a windowed element (of all things), but rather a solution like the one suggested by dNagel.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms.

.


Loading