一款简洁的html+js类焦点图(幻灯片)代码

这是公司前端发给我的,以后焦点图代码指定他了。

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style-type: none;
        }
        a img {
            border: 0;
        }
        .focus {
            width: 640px;
            height: 480px;
            position: relative;
            margin: 0 auto;
            overflow: hidden;
        }
        .focus ul {
            position: absolute;
        }
        .focus .pic li {
            width: 640px;
            height: 480px;
            overflow: hidden;
        }
        .focus div.btn {
            position: absolute;
            height: 18px;
            bottom: 10px;
            right: 0;
            text-align: right;
            font-family: Verdana;
            font-size: 10px;
            padding-right: 10px;
        }
        .focus div.btn span {
            display: inline-block;
            _display: inline;
            _zoom: 1;
            width: 18px;
            line-height: 18px;
            background: #333;
            color: #fff;
            cursor: pointer;
            text-align: center;
            margin-left: 5px;
        }
        .focus div.btn span.on {
            background: #f00;
        }
        .focus .txt {
            width: 100%;
            height: 40px;
            line-height: 40px;
            bottom: 0;
            overflow: hidden;
        }
        .focus .txt li {
            width: 100%;
            height: 100%;
            position: absolute;
        }
        .focus .txt li a {
            z-index: 1;
            color: #fff;
            position: relative;
            left: 10px;
        }
        .focus .txt li span {
            display: block;
            height: 100%;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background: #333434;
            opacity: 0.5;
            filter: alpha(opacity=50);
        }
    </style>
    <script type="text/javascript" src="jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="focus.js"></script>
</head>
<body>
    <div id="focus" class="focus">
        <ul class="pic">
            <li><a href="#"><img src="10.jpg" alt="" /></a></li>
            <li><a href="#"><img src="11.jpg" alt="" /></a></li>
            <li><a href="#"><img src="12.jpg" alt="" /></a></li>
        </ul>
        <ul class="txt">
            <li><a href="#">文字介绍111</a><span></span></li>
            <li><a href="#">文字介绍222</a><span></span></li>
            <li><a href="#">文字介绍333</a><span></span></li>
        </ul>
    </div>
</body>
</html>

在下面下载完整版:

html+js类焦点图(幻灯片)代码.rar
016e50d69a5bc9ef21b8afa7190b983d.rar (188.57 KB)