- This topic is empty.
-
AuthorPosts
-
February 27, 2012 at 3:11 pm #36879
hexxd
MemberI’m trying to install the slider on a site, and I’d like to add custom forward and backward buttons, as well as a custom thumbnav. However, there’s no html that indicates these, so I assume that they’re built into the jquery and css. However if I want to use an
as my forward button for example, how can I do that? Do I have to modify the jquery?
February 28, 2012 at 1:27 pm #97675Mottie
MemberI have a few demos on modifying the navigation, check out the demos on the main document page.
In particular, check out these demos:
* Move the navigation controls
* Use “appendForwardTo” and “appendBackTo” options – no demo, but here are the docs.
* Control Multiple sliders with one set of arrows.
* Custom controls (navigation only here, but combining the above demo with this one would work)Honestly, I wouldn’t recommend using an H3 as a control button. It’s not semantically correct to do that, but it would be fine to add an
link inside of it to control the slider.
February 29, 2012 at 11:41 am #97759hexxd
MemberMarch 1, 2012 at 9:44 am #97835hexxd
MemberAt this point I’ve implemented the script to change the navigation, I think. However it somehow isn’t applying, as the default nav is still fully functional. This is the script I input:
March 1, 2012 at 10:40 am #97838Mottie
MemberDoes “nav-slider” exist? Could you share a demo?
March 1, 2012 at 4:53 pm #97855hexxd
MemberI have no demo that I can post, but see below.
March 1, 2012 at 4:55 pm #97858hexxd
MemberMarch 2, 2012 at 10:56 am #97941Mottie
MemberHere is a demo using all of the navigation append to functions.
HTML
- ...
Script
$('#slider').anythingSlider({
appendBackTo: $('#nav-slider span:eq(0)'),
appendControlsTo: $('#nav-slider span:eq(1)'),
appendForwardTo: $('#nav-slider span:eq(2)'),
// Details at the top of the file on this use (advanced use)
navigationFormatter: function(index, panel) {
// This is the default format (show just the panel index number)
return "" + index;
}
});Wait… so, “#nav-slider” isn’t empty? If you already have the HTML set up then you’ll need to assign the navigation controls to them using code similar to that used in this demo. Then make sure the buildNavigation and buildArrows options are false.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.