来自:http://vietxf.org/threads/xenplaza-toolbox-1-0.879/ 右侧显示此工具栏,可以自动滚屏,快捷至底部、顶部、刷新等功能。 安装说明: 1、创建xenplaza_toolbox 模板 PHP: <xen:require css="xenplaza_toolbox.css" /> <script language="javascript" type="text/javascript">function confirmRefresh() {var okToRefresh = confirm("Do you really want to refresh this page?");if (okToRefresh) { setTimeout("location.reload(true);",1000); }}</script> <script language="javascript"> suspendcode="<div id='xenplaza_toolbox' align='center'><a onclick='javascript:amutop();return false;' href='#' title='顶部'><img border=0 src=\"styles/xenplaza/toolbox/up.png\" width=\"24\"></a><br><a onclick='javascript:history.back();return false;' href='#' title='后退'><img border=0 src=\"styles/xenplaza/toolbox/back.png\" width=\"24\"></a><br><a href='misc/contact' class='OverlayTrigger' title='联系我们'><img border=0 src=\"styles/xenplaza/toolbox/contact.png\" width=\"24\"></a><br><a href='javascript:confirmRefresh();' title='刷新'><img border=0 src=\"styles/xenplaza/toolbox/refresh.png\" width=\"24\"></a><br><a onclick='javascript:sc();return false;' href='#' title='停止滚动'><img border=0 src=\"styles/xenplaza/toolbox/pause.png\" width=\"24\"></a><br><a onclick='javascript:clearInterval(timer);initialize();return false;' href='#' title='滚动'><img border=0 src=\"styles/xenplaza/toolbox/autodown.png\" width=\"24\"></a><br><a onclick='javascript:amubutton();return false;' href='#' title='底部'><img border=0 src=\"styles/xenplaza/toolbox/down.png\" width=\"24\"></a></div>" document.write(suspendcode); var currentpos,timer; function initialize() { timer=setInterval ("scrollwindow ()",30); } function sc() { clearInterval(timer); } function scrollwindow() { currentpos = document.documentElement.scrollTop || document.body.scrollTop; window.scrollTo(0,++currentpos); } function amutop() { window.scrollTo(0,0) clearInterval(timer); } function amubutton() { window.scrollTo(0,80000) clearInterval(timer); }</script> 2、创建xenplaza_toolbox.css 模板 PHP: #xenplaza_toolbox { z-index: 99; width:26px; position:fixed; right:1px; top:250px; background: transparent; -moz-border-radius: 5px;}#xenplaza_toolbox a:hover { opacity:1} 3、加入到page_container_js_body 底部 PHP: <xen:include template="xenplaza_toolbox" /> 4、上传图片包即可