Solved

Problem with jCarouselLite

Posted on 2010-11-21
2
814 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 500 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

751 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