Home › Forums › JavaScript › [solved] Chris’ ‘anything slider’ how to remove numbers
- This topic is empty.
-
AuthorPosts
-
July 26, 2010 at 2:57 pm #29731
jbope
ParticipantI want the link to be there but not the numbers. Don’t know Jquery yet. Hoping for some advice Thanks.
<http://s70539.gridserver.com/index.php#panel-1>
Here is the portion of the code that I think needs to be changed:
July 26, 2010 at 3:46 pm #80395jamygolden
MemberCode:$(function () {$(‘#slide-jump’).anythingSlider({
easing: "easeInOutExpo", // Anything other than "linear" or "swing" requires the easing plugin
autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not.
delay: 10000, // How long between slide transitions in AutoPlay mode
startStopped: false, // If autoPlay is on, this can force it to start stopped
animationTime: 600, // How long the slide transition takes
hashTags: true, // Should links change the hashtag in the URL?
buildNavigation: false, // If true, builds and list of anchor links to link to each slide
pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover
startText: "Go", // Start text
stopText: "Stop", // Stop text
navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
});
});I’ve changed "buildNavigation" to false.
July 27, 2010 at 10:45 am #80483jbope
ParticipantI changed it to false and nothing seems to happen. Even if it did wouldn’t it remove the buttons altogether? I want the circles to stay. I just want the numbers removed.
July 27, 2010 at 4:06 pm #80493jamygolden
MemberCode:$("#thumbNav a").text(”);That will remove the text.
July 28, 2010 at 10:36 am #80582jbope
ParticipantThanks jamy_za.
Sorry for the ignorance. Where do I put that line?
July 28, 2010 at 12:41 pm #80526jamygolden
Member99% of the time, things go within:
Code:$(function () {
// Content goes here
});Or within
Code:$(document).ready(function () {
// Content goes here
});The first is just a shorthand version of the second.
I would put it right at the bottom of the javascript you pasted earlier:
Code:$(function () {$(‘#slide-jump’).anythingSlider({
easing: "easeInOutExpo", // Anything other than "linear" or "swing" requires the easing plugin
autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not.
delay: 10000, // How long between slide transitions in AutoPlay mode
startStopped: false, // If autoPlay is on, this can force it to start stopped
animationTime: 600, // How long the slide transition takes
hashTags: true, // Should links change the hashtag in the URL?
buildNavigation: false, // If true, builds and list of anchor links to link to each slide
pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover
startText: "Go", // Start text
stopText: "Stop", // Stop text
navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
});$("#thumbNav a").text(”);
});July 28, 2010 at 1:57 pm #80601jbope
ParticipantMan, thanks again for all the help. I must be doing something wrong.
I put it in like below and nothing changed. Guessed at a couple of changes and they either had no effect or broke the whole thing.
Code:$.anythingSlider.defaults = {
easing: "swing", // Anything other than "linear" or "swing" requires the easing plugin
autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not
startStopped: false, // If autoPlay is on, this can force it to start stopped
delay: 3000, // How long between slide transitions in AutoPlay mode
animationTime: 600, // How long the slide transition takes
hashTags: true, // Should links change the hashtag in the URL?
buildNavigation: false, // If true, builds and list of anchor links to link to each slide
pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover
startText: "Start", // Start text
stopText: "Stop", // Stop text
navigationFormatter: null // Details at the top of the file on this use (advanced use)
};$(function () {
$("#thumbNav a").text(”);
});$.fn.anythingSlider = function(options){
if(typeof(options) == "object"){
return this.each(function(i){
(new $.anythingSlider(this, options));July 28, 2010 at 3:10 pm #80606jamygolden
MemberI went to your site and had a look at the current javascript. You have this:
Code:$(document).ready(function(){
$(‘#still a’).click(function(){
$(‘#still’).hide();
$(‘#video’).show();
});
});Replace it with this:
Code:$(document).ready(function(){
$(‘#still a’).click(function(){
$(‘#still’).hide();
$(‘#video’).show();
});
$("#thumbNav a").text(”);
});The only difference is the little bit at the bottom. I’ve just added spacing to make it more readable.
July 28, 2010 at 5:45 pm #80612jbope
ParticipantWorked!
Thanks so much.
Jeane
March 25, 2012 at 12:40 pm #99909ericrotramel
MemberEasier fix: the ul is a span, so to solve by css just add
div.anythingSlider .anythingControls ul a span {
display: none;
} -
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.