chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<script>
    function goTopEx(){
        var obj=document.getElementById("goTopBtn");
        function getScrollTop(){
                return document.documentElement.scrollTop;
            }
        function setScrollTop(value){
                document.documentElement.scrollTop=value;
            }    
        window.onscroll=function(){getScrollTop()>0?obj.style.display="":obj.style.display="none";}
        obj.onclick=function(){
            var goTop=setInterval(scrollMove,10);
            function scrollMove(){
                    setScrollTop(getScrollTop()/1.1);
                    if(getScrollTop()<1)clearInterval(goTop);
                }
        }
    }
</script>
<div class="clear"></div>
<div id="goTopBtn" class="png none" ><img  border=0 src="{yun:}$style{/yun}/images/lanren_top.png" class="png"></div>
<script type=text/javascript>goTopEx();</script>
<style>
#goTopBtn {
    POSITION: fixed; 
    TEXT-ALIGN: center; 
    WIDTH: 47px; 
    BOTTOM:3px; 
    HEIGHT: 78px; 
    FONT-SIZE: 12px; 
    CURSOR: pointer; 
    RIGHT:  40px; 
    _position: absolute; 
    _right: 40;
    _position:absolute;
    _bottom:auto;
    _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||15)-(parseInt(this.currentStyle.marginBottom,10)||15)));
    _background:url({yun:}$style{/yun}/images/lanren_top.png) no-repeat
}
*html{
background-image:url(about:blank);
background-attachment:fixed;
}
</style>