Answer the question
In order to leave comments, you need to log in
Slider not working in drupal 6?
Happy Holidays everyone!
I'm making a slider on the site and ran into a problem that I can't solve in any way.
1. I tried to implement the task set through the "Dynamic display block" module, but it arose. It refuses to work when you exit the site administration (here is the test site mggeu.tw1.ru ), and if you go through Opera and not through Chrome, it does not work from under the administrator either. I just can't figure out what the problem is...
2. On the Internet, I found a lot of simple sliders based on the jquery plugin, but trying to attach them to my site there was a problem, the plugin refuses to work:
Connecting the plugin itself and the design theme in the "page.tpl" file .php":
Here I suppose that I have an extra connection of the jquery-1.4.1.min.js library, since there is already jquery-1.11.0.min.js
Next, I create a block in which I insert the following code in the html editing mode:
And in the same in the theme file "page.tpl.php" I write the following:
$(document).ready(function() {
$("#owl-example").owlCarousel();
});
But all this turns out to work, instead I get just images in the form of a list.
Link to the slider: www.owlgraphic.com/owlcarousel/index.html
Good people, tell me where to dig, I've been fighting with this thing for two weeks already...
This is what the console outputs:
Answer the question
In order to leave comments, you need to log in
I added a console screen, figured it out for the last three terms, it turns out I just didn’t notice that I don’t have these files, since I use another plugin. But about the first line, the question arose what was wrong with the code:
jQuery(document).ready(function ($) {
$("img[src*='.jpeg'], img[src*='.jpg'], img[src*='.JPEG'], img[ src*='.JPG']")
.css('border', '1px solid black');
})(jQuery);
Why the hell do you need jquery 1.4 and 1.11 together? What writes in the console?
It seems to me that there is something with the paths to the linked libraries. Check again if it finds the library at the given paths and try to set the absolute path
$(document).ready(function($) {
$("#owl-example").owlCarousel();
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question