Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Joekz on
Hi,
I am trying to convert a template html5 / css into Drupal theme and in this template there is a slideshow (js file) and this code in index.html
<script>
$(function () {
$("#slider4").responsiveSlides({
auto: true,
pager: true,
nav: true,
speed: 500,
namespace: "callbacks",
before: function () {
$('.events').append("<li>before event fired.</li>");
},
after: function () {
$('.events').append("<li>after event fired.</li>");
}
});
});
</script>
and I want to do the same in my theme, creating a module, for example, or anyone, I need help, thank you
Comments
=-=
https://www.drupal.org/node/756722 - should aid
I created module 'slider'
I created module 'slider' with :
slider.tpl.php
then i created 2 js files :
responsiveslides.min.js
and snippet.js :
slider.module :
i have an image in background, i need just text to defile when i click in 'li' , but doesn't work