通过按钮控制图片左右滚动

来源:百度知道 编辑:UC知道 时间:2024/05/26 13:09:36
http://www.konglong-sh.com/brand/esprit/list.htm
我要的效果和这个页面上的图片滚动效果一样
谁能帮忙给说下这个效果是怎么做的

给你他的代码 直接另存为htm文件即可看到效果

主页中画一个框 然后粘贴上下面的代码就可以了

注意里面的图片文件路径没改 要根据需要自己设置 祝你成功

<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../../include/main.css" type="text/css">
<script language="JavaScript" src="../../include/main.js"></script>
<script language="JavaScript">
function verifyCompatibleBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;

this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || th