2016. 3. 15. 17:16 Web/Mobile
<div id="wrapper"></div>
#toTop {
display:none;
text-decoration:none;
position:fixed;
bottom:10px;
right:10px;
overflow:hidden;
width:51px;
height:51px;
border:none;
text-indent:100%;
background:url(../img/ui.totop.png) no-repeat left top;
}
#toTopHover {
background:url(../img/ui.totop.png) no-repeat left -51px;
width:51px;
height:51px;
display:block;
overflow:hidden;
float:left;
opacity: 0;
-moz-opacity: 0;
filter:alpha(opacity=0);
}
#toTop:active, #toTop:focus {
outline:none;
}
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/easing.js" type="text/javascript"></script>
<script src="js/jquery.ui.totop.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
Download: http://mattvarone.com/web-design/uitotop-jquery-plugin/
일정위치에서 상단으로 스크롤되는 스크립트 (0) | 2016.03.15 |
---|---|
[JQuery UI]버튼 UI (0) | 2013.01.25 |
[JQuery UI]폼 UI (0) | 2013.01.25 |
[JQuery UI]콘텐츠 영역 접이식 패널 (0) | 2013.01.25 |
간편한 header, footer (0) | 2013.01.25 |