Solved

Problem with jCarouselLite

Posted on 2010-11-21
2
811 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
2 Comments
 
LVL 6

Accepted Solution

by:
Codebot earned 500 total points
Comment Utility
Check css file
0
 
LVL 1

Author Closing Comment

by:klamerus
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now