English 中文(简体)
j Query.slides () is not work
原标题:jQuery.slides() is not working

http://slidesjs.com/rel=“nofollow” j Query plugin and calls

jQuery.slides();

然而,这并不正确。 相反,这些图像只是被展示的(因为你期望没有花钱)。

为什么不开展这项工作,我如何能够做到这一点?

我把<代码>alert()放在以上和我的幻灯片(测试)发言后面,因此,有人正在打上某种 j。

Here is my markup:

<div class="slides">
    <div class="slides_container">
        <div>
            <img src="Images/sample_banner.png" />
        </div>
        <div>
            <img src="http://placehold.it/984x111" />
        </div>
        <div>
            <img src="http://placehold.it/984x111/ff0000" />
        </div>
    </div>
</div>


 <div class="left_arrow"><a href="#"><img src="Images/left_arrow.png" alt="left arrow control" /></a></div>
 <div class="right_arrow"><a href="#"><img src="Images/right_arrow.png" alt="right arrow control" /></a></div>

Here is my CSS:

.banner
{
    width:984px;
    border-left:solid 7px #FFFFFF;
    border-right: solid 7px #FFFFFF;    
    z-index:1;
    position:relative;
}

    .banner .slides
    {
    }
        .banner .slides .slides_container {
            width:984px;
            height:111px;
        }
            .banner .slides .slides_container div
            {
                width:984px;
                height:111px;
                display:block;
            }


.left_arrow
{
    position:absolute;
    z-index:2;
    width:25px;
    left:0px;
    top:38px;

}

.right_arrow
{
    position:absolute;
    z-index:3;
    width:25px;
    left:960px;
    top:38px;
}

这里是我的联合材料:

$(document).ready(function () {
        $( .slides ).slides({
           next:  right_arrow 
           , prev:  left_arrow 
           , pagination: false
         });
    });
最佳回答

尽管你的问题基本上已经解决。 然后,在布局方面还存在其他一些问题。

  1. How can .banner .slides apply, if there is no <div class="banner" /> ?
  2. Arrow placements were wrong and their css was not optimal
  3. You don t need to set the width or height on so many places
  4. Pagination was still appearing, though you didn t want it
  5. Weird issue with arrows and z-index

而且,我确定,一些小问题使守则成为最佳和干.。

My example: http://jsfiddle.net/hobobne/RSncf/1/

问题回答

您的javascript中,你正在把目标定在#slides上,在您的标记中,含有干.元素的标记有一类声明——从而改变你对“滑坡”的标识;并给它带来一种 whi。

是的,我这样做了。

这是因为这一功能是 t的。

至少,这给我带来了什么。





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签