RobG a écrit :
> Ross wrote:
>
>> Hi,
>>
>> I have a problem with non ie browsers
>>
>> <script type="text/javascript">
>> window.onload = function(){
>> var strCook = document.cookie;
>> if(strCook.indexOf("!~")!=0){
>> var intS = strCook.indexOf("!~");
>> var intE = strCook.indexOf("~!");
>> var strPos = strCook.substring(intS+2,intE);
>> document.getElementById("menu_holder_inside").scro llTop =
>> strPos;
>> }
>> }
>> function SetDivPosition(){
>> var intY =
>> document.getElementById("menu_holder_inside").scro llTop;
>> // document.title = intY;
>> document.cookie = "yPos=!~" + intY + "~!";
>> }
>>
>>
>> The follwing function shou;d return a DIV to its positon before
>
>
> Your problem is with scrollTop. One of three separate routines need to
> be used to get it correctly. IE will behave differently in quirksmode
> to strict mode, other browsers differently again. The following should
> help:
>
> <URL:http://www.quirksmode.org/viewport/compatibility.html>
>
That reference is regarding the browser window viewport scrolling, not
an element which is clearly the case here. The OP says and wants to
store the inside scroll position/view of an element id-ed as
"menu_holder_inside". Nowhere do I see any reference to the inner
browser window viewport.
http://www.gtalbot.org/BugzillaSecti...roperties.html
http://www.mozilla.org/docs/dom/domr...p.html#Example
http://developer.mozilla.org/en/docs...lTop#scrollTop
Gérard
--
remove blah to email me