Pagination: I have dots, how do I remove the numbers?

1,196 views
Skip to first unread message

VisHorizons

unread,
May 9, 2013, 1:57:54 PM5/9/13
to slid...@googlegroups.com
I have working pagination dots, but the numbers are still showing up. Here's my test:
 
How do I get rid of the pagination numbers?
 
Thanks for any help on this.

STAVROS CHALARIS

unread,
May 13, 2013, 10:23:47 AM5/13/13
to slid...@googlegroups.com
Do you have any news about this?

Can you please let me know how do you get the active link?

VisHorizons

unread,
May 13, 2013, 10:45:31 AM5/13/13
to slid...@googlegroups.com
Sorry, I haven't figured it out yet! I think I'll have to go back to one of the examples provided in the original download file and start from there. Erg.

Thom van Ledden

unread,
May 13, 2013, 1:12:40 PM5/13/13
to slid...@googlegroups.com
Here is a piece from my own project:

#images .slidesjs-pagination .slidesjs-pagination-item a{
  background:transparent url('images/SlideSelector.png') no-repeat scroll left center;
  height:1px;
  overflow:hidden;
  padding-top:20px;
  display:block;
  width:21px;
}
#images .slidesjs-pagination .slidesjs-pagination-item a.active{
  background-position:right center;
}

So the trick is to add the backgroundimage to the 'a', then a height of 1px, display block and a padding to stretch the 'a' up back to the size of your image ;-)
in my case i have an image including an active and a non-active dot.
I hope this will help ya out

Op donderdag 9 mei 2013 19:57:54 UTC+2 schreef VisHorizons het volgende:

VisHorizons

unread,
May 13, 2013, 1:47:29 PM5/13/13
to slid...@googlegroups.com
So it's basically shoving the text outside of the visible area? Huh. I came up with a different solution: set the font size to 0px. Seems to work, but I'm going with your solution. Thanks.

stavroc

unread,
May 15, 2013, 2:47:35 AM5/15/13
to slid...@googlegroups.com
I figure out with background image and color set to text link.


2013/5/13 VisHorizons <visho...@gmail.com>
So it's basically shoving the text outside of the visible area? Huh. I came up with a different solution: set the font size to 0px. Seems to work, but I'm going with your solution. Thanks.

--
You received this message because you are subscribed to a topic in the Google Groups "SlidesJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/slidesjs/vHcFnLmvETE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to slidesjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Thom van Ledden

unread,
May 15, 2013, 9:30:02 AM5/15/13
to slid...@googlegroups.com
Thats an option, but not all browsers can use fontsize 0px, in some cases you can still see tiny numbers in there. I used to do the same untill i found this solution..
Another way is to use text-indent:-999999 which pushes it out of the screen!

Op maandag 13 mei 2013 19:47:29 UTC+2 schreef VisHorizons het volgende:

VisHorizons

unread,
May 15, 2013, 9:35:50 AM5/15/13
to slid...@googlegroups.com
Yeah, I had a feeling that font-size:0px wasn't a perfect solution. I'm using your suggestion. Thanks.

Mark Bubel

unread,
May 20, 2013, 3:25:47 PM5/20/13
to slid...@googlegroups.com
Hi, you don't need to use CSS at all. If you don't want the numbers to show up, open up the slides.js code and make this change. Note that I'm assuming you're using the latest, minfied version of slides.js - version 3.0.

Find in code: .appendTo(e),d=a("<a>",{href:"#","data-slidesjs-item":b,html:b+1})
Change to: .appendTo(e),d=a("<a>",{href:"#","data-slidesjs-item":b /*,html:b+1*/ }) 

You're slides will still function, but the anchor tags in each list item won't contain the slide number. Make sure you comment out the comma directly after 'b' value. Also, since you;re not changing the href value for each anchor tag, you can still click on each one to move to that slide.
Reply all
Reply to author
Forward
0 new messages