homepage Welcome to WebmasterWorld Guest from 23.20.61.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Opera Browser Usage and Support
Forum Library, Charter, Moderator: open

Opera Browser Usage and Support Forum

    
Mozilla and Opera: no document.getElementById('dirsub').doScroll('scro
I want to set the scroll bar position, but it works only in MSIE
jetteroheller

WebmasterWorld Senior Member jetteroheller us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 433 posted 4:51 am on May 29, 2005 (gmt 0)

<body onload=do_scroll>

<div style=overflow:auto;width:150;height:150>
Here goes a long menu

Much down the menu, there is the current page
high lighted
</div>

<script>
function do_scroll
{
for(i=0;i<15;i++){document.getElementById('dirsub').doScroll('scrollbarDown')}

}
</script>

It works fine in MSIE,
I can test it in MSIE also by the command line

javascript:document.getElementById('dirsub').doScroll('scrollbarDown')

but it does not work in Opera 7 and Mozilla 1.7.6

Any idea to make it work in Opera and Mozilla?

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 433 posted 9:05 pm on May 29, 2005 (gmt 0)

doScroll is a proprietary Microsoft method for their jscript - it's not part of the current ECMAscript standard, so for now, you only have IE support here.

[msdn.microsoft.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Opera Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved