Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem with jCarouselLite

Posted on 2010-11-21
2
Medium Priority
?
816 Views
Last Modified: 2012-08-13
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
Comment
Question by:klamerus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Codebot earned 1500 total points
ID: 34189713
Check css file
0
 
LVL 1

Author Closing Comment

by:klamerus
ID: 34238634
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

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

671 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question