I
I
Ivan Semenov2015-12-29 14:04:03
Drupal
Ivan Semenov, 2015-12-29 14:04:03

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":
f714ee6192744f2ab08f6f9a0402070f.jpg
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:
44e5dc36aab4469bb899048af9662fe1.jpg

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:
b0ee04b1d66d4a95b70e209b866e0029.jpg

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ivan Semenov, 2015-01-12
@kokman_semenov

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);

R
Rikcon, 2015-12-29
@Rikcon

Why the hell do you need jquery 1.4 and 1.11 together? What writes in the console?

M
mr_dev1l, 2015-12-29
@mr_dev1l

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

D
Dmitry Kamyannoy, 2015-12-30
@redfieldone

$(document).ready(function($) { 
$("#owl-example").owlCarousel(); 
});

And the conclusion of the kosolka, please, to the studio.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question