javascript 自动转到命名锚记

[ 2009-01-06 10:58:40 | Author: zhenhua ]
Font Size: Large | Medium | Small
1.自动转到命名记
<script laguage="javascript">
 window.location.hash = "#bottom";
 </script>
<a name="bottom">底部</a>

2.自动定位到指定高度
<script laguage="javascript">
 <!--
 //function scrollwin() {
 //document.body.scrollTop
 var scroll_y = parseInt(1000);
 window.scrollBy(0, scroll_y);
 //}
 //-->
 </script>

Comments Feed Comments Feed: http://www.zhenhua.org/feed.asp?q=comment&id=644
UTF-8 Encoding Trackback URL: http://www.zhenhua.org/trackback.asp?id=644

There is no comment on this article.

If you feel this site you find this information helpful, please click on the donation, which is voluntary,Thank you.
Post Comment
Smilies
[arrow] [biggrin] [confused] [cool]
[cry] [eek] [evil] [exclaim]
[frown] [idea] [lol] [mad]
[mrgreen] [neutral] [question] [razz]
[redface] [rolleyes] [sad] [smile]
[surprised] [twisted] [wink]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code