我想修改pikachoose以仅显示缩略图。我已经修改了代码,这就是我所拥有的:

http://i.stack.imgur.com/deQdG.png

这是我在base.css中修改的

/* Style the thumbnails */
.pika-thumbs {
    padding: 0 16px;
    height: 75px;
}

.pika-thumbs li {
    width: 144px;
    height: 74px;
    margin: 10px 0 0 17px;
    padding: 0;
    overflow: hidden;
    float: left;
    list-style-type: none;
    padding: 3px;
    margin: 0 5px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

.pika-thumbs li .clip {
    position: relative;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
}

/*for the tool tips*/
.pika-tooltip {
    font-size: 12px;
    position: absolute;
    color: white;
    padding: 3px;
    background-color: rgba(0,0,0,0.7);
    border: 3px solid black;
}

.pika-counter {
    position: absolute;
    bottom: 45px;
    left: 15px;
    color: white;
    background: rgba(0,0,0,0.7);
    font-size: 11px;
    padding: 3px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/* If using user thumbnails there's a pause while the new large image loads. This is the loader for that */
.pika-loader {
    background: url(loading.gif) 3px 3px no-repeat #000;
    background-color: rgba(0,0,0,0.9);
    color: white;
    width: 60px;
    font-size: 11px;
    padding: 5px 3px;
    text-align: right;
    position: absolute;
    top: 15px;
    right: 15px;
}


为此,我必须在jquery.pikachoose.js中进行哪些修改?

我正在工作的网站是http://brassds.com/

最佳答案

假设您指的是http://brassds.com/servicios.html,则Pikachoose的文档指出:


  PikaChoose将为您创建缩略图,但是如果您想使用
  拥有它很容易。您将图片的src设置为缩略图
  图片。然后,您将添加完整尺寸的ref属性(不相关!)
  图片如下例所示。 PikaChoose将拉全尺寸
  自动图像。


<img src="thumbnail.jpg" ref="fullsize.jpg" >


进一步假设Servicios-pequena1.jpg指向缩略图,而Servicos-1.jpg是全尺寸图像,则您应该能够将源修改为如下所示:

<ul id="pikame" class="jcarousel-skin-pika">
    <li><a href="#"><img src="images/trabajos/Servicios-pequena1.jpg" ref="images/trabajos/Servicos-1.jpg" alt=""/></a><span></span></li>
    <li><a href="#"><img src="images/trabajos/Servicios-pequena2.jpg" ref="images/trabajos/Servicos-2.jpg" alt=""/></a><span></span></li>
    <li><a href="#"><img src="images/trabajos/Servicios-pequena3.jpg" ref="images/trabajos/Servicos-3.jpg" alt=""/></a><span></span></li>
    ...
</ul>


Pikachoose应该为您设置缩略图。

10-02 01:04