jCarouselLite problem: Images refusing to display in jQuery

My website currently has jCarouselLite integrated, but I'm facing an issue where the PREV and NEXT buttons are visible, yet no IMAGES are showing up. The image links seem to be correct.

Do you have any suggestions?

jQUERY:

<script type="text/javascript">
    //jCarouselLite
    $(function() {
        $(".slider").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible: 4
    });
});
</script>

HTML:

<div id="list">           
<div class="prev"><img src="images/prev.jpg" alt="prev" /></div>
<div class="slider">
<ul>
<li><a href="#" title="Title 1"><img src="images/store_item_img.jpg" alt="Image 1" class="captify" /></a></li>
...
</ul>
</div>
<div class="next"><img src="images/next.jpg" alt="next" /></div> 
</div>

CSS:

.slider {
 background-color:#3399FF;
 float:left;
 margin:15px; 
 position:relative; 
 visibility:hidden; 
}

.slider ul {
 height:180px;
 width:840px; 
}
...

SCRIPT:

<script type="text/javascript" src="http://www.theratio.net/js/jquery.js"></script>
<script type="text/javascript" src="js/jcarousellite_1.0.1.pack.js"></script>
<script type="text/javascript" src="js/captify.tiny.js"></script>

Any assistance would be greatly appreciated!

:)

UPDATE:

If I remove

  $("#store_container").hide();

..and modify it as below, it works properly, except that the div is opened initially instead of closed.

<script type="text/javascript">
$(function(){
  $('#toggle').toggle(function(){
     $('#store_container').slideDown("slow", function() { $('#store_data').fadeIn(); });
   }, function() {
     $('#store_data').fadeOut("fast", function() { $('#store_container').slideUp("slow"); });
  });
});
</script>

Is there a way to keep #store_container closed using .hide? Or perhaps display it after the function is clicked?

Answer №1

I have no experience with jCarouselLite, but it seems like your .slider is being hidden with visibility:hidden;. You may need to add some code to make it visible.

UPDATE:

Remember:

$('document').ready(function(){
    // include your jQuery script here
})

Answer №2

Have you double-checked your jQuery and jCarouselLite script implementations? Check Firebug for any script-related errors.

Answer №3

Were you able to solve this issue? Remember, the images must have specific height and width attributes set.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Form validation displaying only the initial error message

When validating a form, I am encountering an issue where only the first error message can be displayed: ContactUs.prototype.desktopErrors = function(){ var THIS = this; THIS.$el.find('#submit').on('click', function(){ ...

How to Show Byte Array Image in AngularJS HTML Using a Web API Service

I am in the process of developing an AngularJS Application and for my service, I am utilizing .NET C# for coding purposes. I am currently following the code structure outlined in a previous post about loading images from a C# Byte array and placing them in ...

Troubleshooting problem with CSS combinators

I'm having trouble with this, if I have these two tag combinations in my CSS: aside h4 { color:yellow; } article h4 { color:blue; } And I apply them to the following HTML: <div> <h4>International new</h4> ...

Issues within html language

The formatting of this table is causing issues with printing <tr height="95%"> <td width="100%"> <div id="placeSchedule"> <table bgcolor="red" width="100%" height="100%" border="1"> <tr> < ...

Tips for implementing an HTML dropdown menu for two select elements

Having an issue with the HTML select element. I am trying to create a dropdown select that displays two different prices based on location. For example, when selecting country (Australia) and city (Canberra or Sydney), I want to display prices for 30 days ...

Step-by-step guide to implementing a sticky header while scrolling

How can I implement a fixed header on scroll, like the one seen on this website: www.avauntmagazine.com Here is the HTML for my header: <div class="bloc bgc-wild-blue-yonder l-bloc " id="bloc-1"> <div class="container bloc-sm"> &l ...

Tips for designing a CSS Grid that features a maximum width for the main content and a minimum width for the sidebar

I'm attempting to design a two-column CSS grid with a main content area that has a maximum width of 800px and a sidebar that has a minimum width of 200px: https://codepen.io/dash/pen/gOmXqGr The grid needs to be responsive: The yellow sidebar should ...

Send a bunch of checkbox values to the controller upon clicking in order to apply a filter to a query using

How can I filter the number of students by campus, year, and group using checkboxes? I have successfully filtered the result by Campus using this code, but the uncheck functionality is not working as expected. It still sends the checked value. I need to ...

How can I avoid duplicating code in HTML? I find myself utilizing the Bootstrap 4 collapse feature around 20 times on a single page

<div class="card" style> <div class="card-header" id="headingOne"> <h5 class="mb-0"> <button class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" aria- expanded="true" aria-controls="collapseO ...

Floating Elements Centralized

I have a relatively straightforward HTML layout with a heading div at the top, followed by a Main div that contains a NavBar on the left side and a ContentDiv on the right. The issue I'm facing is that I can't seem to get my NavBar and ContentDi ...

When it comes to ThreeJS, the debate between using a new

I'm curious about the most effective approach for creating a new mesh or cloning one. For instance, if I have a loop that generates multiple instances of the "same mesh," I've noticed that changing the opacity of one mesh affects all others with ...

After a brief pause of x seconds, continue forward without the AJAX response

I have a jQuery Ajax snippet that calls a CHAT functionality. I would like to introduce a 2-second delay before displaying the output when response.available is not equal to 1 in the Ajax response. How can I achieve this using a setTimeout function? See ...

What is the best way to create a jQuery object that encapsulates a snapshot of a DOM element?

Recently, I discovered that a JQuery object retains a reference to a DOM object. As the HTML is modified, the context of the JQuery object also changes. However, my concern now is how to log these changes without altering the history records of the JQuer ...

Add HTML content to a specific div according to the option selected in a drop-down menu

I am currently working on a project where I need a button to insert HTML content into a div based on the value selected in a select box. However, the functionality is not working as intended. Upon clicking the button, nothing happens. I am unsure of what t ...

Suggestions for creating a <div> that takes up the entire space when using the display property set to flex

html, body { height: 100%; margin: 0px; } .container { display: flex; width: 100%; height: 100%; background-color: yellow; } .box { flex-shrink: 0; } <div> <div class="container"> <div class="box"&g ...

Issue with Modal Box: Datepicker not Displaying Correctly

I have implemented a modal box in my webpage. When I click on a text field where a datepicker is added, it does not display anything. However, when inspecting the element using Chrome's developer tools, I can see that the 'hasDatepicker' cla ...

Implementing audio effects in IE6 HTML

I've implemented the following code to play a sound effect on my website in Firefox, Chrome, and IE9: <body> <audio id="audio1"> <source src="audio.wav" type="audio/wav"> <source src="audio.mp3" type="audio/mpeg"> audio tag no ...

Having trouble getting CSS and Bootstrap to work in Laravel 5.8. Any suggestions on how to resolve this issue?

Facing a major issue while using Laravel 5.8 - unable to read CSS and Bootstrap. 1. Tried to run rm storage in order to execute php artisan storage:link, but it didn't work as expected. 2. After running php artisan serve failed, I switched to chdir( ...

Shopify's feature prevents users from entering negative numbers in the quantity field

Struggling with Shopify coding, specifically the issue of negative numbers being accepted as input in my Shopify ajax setup. I've implemented a solution to reload the page if the quantity is less than 1, but ideally, I want to restrict the input to a ...

Issues with ng-bind-html in AngularJS and JavaScript are preventing it from functioning

I am experimenting with creating a dynamic webpage that can change its contents without being limited to predefined templates (potentially offering infinite template options). Below is the code I am currently testing: <!DOCTYPE html> <html lang= ...