js原生写的用鼠标控制图片滚动方向

来源:https://www.sucaihuo.com/js/906.html 2016-07-29 07:20浏览(1260) 收藏

js手写的图片连续滚动,不间断滚动,鼠标悬浮左侧区域向左滚动,在右侧区域则向右滚动。
js原生写的用鼠标控制图片滚动方向
分类:图片代码 > 鼠标滑过 难易:初级
查看演示 下载资源 下载积分: 20 积分
关注公众号,免费赠送安装视频教程、环境和学习视频,后面会不断更新。

鼠标放置 容器的左侧或右侧 可以控制图片滚动方向哦

<div class="scroll" id="scrollbox" onMouseMove="MoveDiv(event);" onMouseOut="MoveOutDiv();">
    <div id="scrollcon" style="width:100%;">
        <table>
            <tbody>
                <tr>
                    <td valign="top">							
                        <table width="100%">
                            <tr>
                                <td><a href="http://www.sucaihuo.com/js/633.html" target="_blank"><img height="150" width="150" alt="slotMachine:jQuery水果老虎机插件" src="images/1.jpg" /></a></td>
                                <td><a href="http://www.sucaihuo.com/js/634.html" target="_blank"><img height="150" width="150" alt="flipbook有书本翻阅效果的图片轮播插件" src="images/2.jpg" /></a></td>
                                <td><a href="http://www.sucaihuo.com/js/635.html" target="_blank"><img height="150" width="150" alt="cssSlidy响应式手机图片轮播插件" src="images/3.jpg" /></a></td>
                                <td><a href="http://www.sucaihuo.com/js/636.html" target="_blank"><img height="150" width="150" alt="Slideshow3D动画视觉广告插件" src="images/4.jpg" /></a></td>
                                <td><a href="http://www.sucaihuo.com/js/637.html" target="_blank"><img height="150" width="150" alt="Thinkphp原创Ajax分页加搜索查询" src="images/5.jpg" /></a></td>
                                <td><a href="http://www.sucaihuo.com/js/638.html" target="_blank"><img height="150" width="150" alt="javascript手机端图像延迟加载插件" src="images/6.jpg" /></a></td>
                                <td><a href="http://www.sucaihuo.com/js/639.html" target="_blank"><img height="150" width="150" alt="PHP长文章分页教程与演示" src="images/7.jpg" /></a></td>
                            </tr>
                        </table>
                    </td>
                    <td><div id="scrollcopy" style="width:100%;"></div></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
document.getElementById("scrollcopy").innerHTML = document.getElementById("scrollcon").innerHTML;
MyMar = setInterval(Marquee, speed);
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2