【jQuery插件】slideImg-广告轮播,焦点图的实例页面

演示

回到相关文章 >>

代码

CSS代码:
        .flash_img {
            overflow: hidden;
            width: 710px;
            height: 144px;
            position: relative
        }

        .flash_img .img-box {
            position: absolute;
        }

        .flash_img img {
            display: block;
        }

        .flash_item {
            position: absolute;
            right: 10px;
            bottom: 10px;
            height: 18px;
            padding-top: 2px;
        }

        .flash_item li {
            background-color: #FFE0EB;
            border: 1px solid #FF6699;
            color: #D94B01;
            cursor: pointer;
            float: left;
            font-size: 12px;
            height: 16px;
            line-height: 16px;
            margin-left: 3px;
            text-align: center;
            width: 16px;
        }

        .flash_item li.on {
            background-color: #EB3C65;
            border-color: #9A102F;
            color: #FFFFFF;
            font-weight: bold;
            height: 18px;
            line-height: 18px;
            margin-top: -2px;
            width: 18px;
        }

        .flash_item li img {
            display: block
        }
                
JS代码:
            $("#fadImgs").slideImg({
                speed: "normal",
                timer: 3000
            });