你好,实现两个 Spread 滚动条的联动功能,可以在客户端添加以下脚本: - <script type="text/javascript">
- function window.onload() {
- FpSpread1.onScroll = myScrollTo;
- }
- function myScrollTo(){
- var spread = document.getElementById("FpSpread1_view");
- var spread2 = document.getElementById("FpSpread2_view");
- spread2.scrollTop = spread.scrollTop;
- spread2.scrollLeft = spread.scrollLeft;
- }
- </script>
复制代码 |