开发者

Jquery Anything Slider - Cannot Link to External Websites

开发者 https://www.devze.com 2023-03-09 09:23 出处:网络
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..

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

精彩评论

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