开发者

how to make flash page scroll to top?

开发者 https://www.devze.com 2022-12-23 02:09 出处:网络
I have an AS2 site where all the pages are different lenghts and have navigation at the top and the bottom.

I have an AS2 site where all the pages are different lenghts and have navigation at the top and the bottom.

When you click on the bottom navigation on one of the longer pages in order to get to another shorter page, you land on the same place where the bottom navigation was on the page before; ie you land at the bottom of the page.

How can I get around this so that every time you land on a ne开发者_如何学JAVAw page it has scrolled to the top?

Thanks!!


JavaScript:

window.scroll( 0, 0 );

Or give the object tag an id as an anchor, and link to it.

navigateToURL( new URLRequest( '#top' ) );
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号