开发者

Jquery Anything Slider - Cannot Link to External Websites

HI I installed http://css-tricks.com/examples/AnythingSlider/#panel-4 and it works perfect.

But I cannot link a particular slide to a website. I tried the below code but for nothing.. Can someone offer an alternative?

<li style="width: 650px; height: 270px; class="panel">
    <a href="'.$slide['link'].'">
       <img alt="'.$slide['alt'].'" s开发者_运维问答rc="images/home_slideshow/'.$slide['img'].'"
            style="width: 100%; height: 100%;">
    </a>
</li>

The html/php parses good in the browser... so thats not the issue.. Does this support links ?


You're not closing the style attribute.

<li style="width: 650px; height: 270px; class="panel">

should be:

<li style="width: 650px; height: 270px;" class="panel">

Whilst it may parse well in the browser, if the plugin you are using is looking for a "panel" class for an event then it wouldn't find it.

Also if this is in html and not being generated by php then you need <?=$variable?> rather than '.$variable.' as you've been using

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜