Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 817
  • Last Modified:

Problem with jCarouselLite

I'm having trouble getting jCarouselLite to look right.  This is a first attempt at using this library.

The following code creates a page with a jCarouselLite carousel on it (which I can hide/show via the toggle).

The problem is that the previous and next arrows show up above the carousel.  I can't get them to be on the left and right of it.  I've downloaded the jQuery and jCarouselLite libraries to the folders shown and they're working.

Can someone/anyone point out what's missing/wrong?

Thanks

<html>
<head>
<script type="text/javascript" src="/JavaScript/jquery.js"></script>
<script type="text/javascript" src="/JavaScript/jcarousellite.js"></script>
<script>
function testtoggle(){$("#foo").toggle();}
$(document).ready(function() {
      $("#bar").jCarouselLite({
            btnPrev: "#prevbtn",
            btnNext: "#nextbtn"
      });
});
</script>
</head>
<body>
<br><a href="#" onclick=testtoggle()>Toggle</a><br><br>
<div id="foo">
<button id="prevbtn"><<<</button>
<button id="nextbtn">>>></button>
<div id="bar">
<ul id="cartest">
<li><img src="/temp/one.jpg"></li>
<li><img src="/temp/two.jpg"></li>
<li><img src="/temp/three.jpg"></li>
<li><img src="/temp/four.jpg"></li>
</ul>
</div>
</div>
</body>
</html>
0
Gene Klamerus
Asked:
Gene Klamerus
1 Solution
 
CodebotCommented:
Check css file
0
 
Gene KlamerusTechnical ArchitectAuthor Commented:
It turned out that I did need some style entries (or css), but the answer didn't specify that there was/is a jCarouselLite css file which needs to be downloaded/reference along with the js library.  By downloading and referencing that it helped and I now have arrows and stuff.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now