Solved

Problem with jCarouselLite

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

632 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