MooTools Question:
Download Job Interview Questions and Answers PDF
Suppose I want to change the way I feed the slideshow. How can I change the elements and classes it is using?
Answer:
Doing so is very simple. SmoothGallery uses CSS Selectors to select elements and values. Just keep in mind that values are contained by an element.
Here are the options to change the selectors used, and their default values:
elementSelector: "div.imageElement",
titleSelector: "h3",
subtitleSelector: "p",
linkSelector: "a.open",
imageSelector: "img.full",
thumbnailSelector: "img.thumbnail"
Here are the options to change the selectors used, and their default values:
elementSelector: "div.imageElement",
titleSelector: "h3",
subtitleSelector: "p",
linkSelector: "a.open",
imageSelector: "img.full",
thumbnailSelector: "img.thumbnail"
Download MooTools Interview Questions And Answers
PDF
Previous Question | Next Question |
How to set up the slideshow to automatically go to the next image after a certain amount of time? | How to call the gallery from outside in MooTools? |