Return to the top of the page. You can set the time to move up. paste the following code directly: HTML: [html] & lt; divclass & quot; backtop & quot; & gt; & lt; imgsrc & quot ;.. /css.87504.cn/images/business/backtop.gif"/></div>&l
Return the top effect, which can control the speed of upward movement at a time. If you don't talk nonsense, paste the Code directly:
HTML:
[Html]
CSS:
[Css]
. Backtop {
Position: fixed;
Cursor: pointer;
Top: 80%;
Width: 49px;
Height: 50px;
Left: 50%;
Margin-left: 510px;
_ Position: absolute;
_ Top: expression (documentElement. scrollTop + documentElement. clientHeight * 4/5 + "px ")
}
. Backtop {
Position: fixed;
Cursor: pointer;
Top: 80%;
Width: 49px;
Height: 50px;
Left: 50%;
Margin-left: 510px;
_ Position: absolute;
_ Top: expression (documentElement. scrollTop + documentElement. clientHeight * 4/5 + "px ")
}
JQUERY:
[Javascript
$ (Function (){
$ (". Backtop"). hide ();
$ (Function (){
$ (Window). scroll (function (){
If ($ (window). scrollTop ()> 200 ){
$ (". Backtop"). show ()
}
Else {
$ (". Backtop"). hide ()
}
});
$ (". Backtop"). click (function (){
$ ('Body, html '). animate ({scrollTop: 0}, 500 );
Return false;
});
});
});
$ (Function (){
$ (". Backtop"). hide ();
$ (Function (){
$ (Window). scroll (function (){
If ($ (window). scrollTop ()> 200 ){
$ (". Backtop"). show ()
}
Else {
$ (". Backtop"). hide ()
}
});
$ (". Backtop"). click (function (){
$ ('Body, html '). animate ({scrollTop: 0}, 500 );
Return false;
});
});
});