You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the arrows not appear if first or last item #37
It's a little misleading if there are arrows on the first or last item. People click but there are no more to display anyway.
Any way to hide arrows if there are no more items to cycle?
Good point... I just updated the plugin to version 2.1.4 with a new disabled option which contains the css class added to the arrow. Please note that this class is only added when the wrap option is false, when it is true, the arrows will rewind/fast forward the slides.
Oh cool thanks. The site I'm working on uses dynamic content to fill moving boxes...sometimes there is only one item though so looping or fast forwarding / rewinding still gives the illusion that it's not doing anything. If the arrows weren't there at all on these items it would be better, but since this was not how it was intended to be used I can fully understand if you choose not to make it so.
Anyway I appreciate the work you have done and very fast reply. Thank you.
/*** Slider panel ***/
.mb-slider .mb-panel {
width:350px; /* default, this is overridden by script settings */margin:5px0;
padding:5px;
display: block;
cursor: pointer;
float: left;
list-style: none;
}
/* Cursor to arrow over current panel, pointer for all others,change .current class name using plugin option, currentPanel : 'current' */
.mb-slider .mb-panel.current {
cursor: auto;
}
It is opposite of what you think. The top part makes ALL panels have a cursor:pointer set, but the second panel used only on the current or middle panel has the cursor set to auto to make the cursor back into an arrow. If you only want arrows, then just change cursor:pointer to cursor:auto or completely remove it from the css.
If I only have 3 images and all of them are shown in slider panel completed. No other images to slide anymore...
I could hide scroll button and buildNav but don't know how to make right / left image unclickable.
Activity
Mottie commentedon Sep 12, 2011
Good point... I just updated the plugin to version 2.1.4 with a new
disabledoption which contains the css class added to the arrow. Please note that this class is only added when thewrapoption is false, when it is true, the arrows will rewind/fast forward the slides.jase7777 commentedon Sep 12, 2011
Oh cool thanks. The site I'm working on uses dynamic content to fill moving boxes...sometimes there is only one item though so looping or fast forwarding / rewinding still gives the illusion that it's not doing anything. If the arrows weren't there at all on these items it would be better, but since this was not how it was intended to be used I can fully understand if you choose not to make it so.
Anyway I appreciate the work you have done and very fast reply. Thank you.
Mottie commentedon Sep 12, 2011
If you want to completely hide the arrows, just add this css:
Hmmm, it should hide both arrow buttons if there is only one panel. Is there something else you needed changed to make this better work for you?
jase7777 commentedon Sep 15, 2011
Oh I didn't even need to add that CSS. I updated to the latest version and it all looks and works beautifully.
Thank you so much!
tengallen commentedon Nov 29, 2011
how to use arrow instead of pointer for left and right panel?
I still don't know how to modify css....
Mottie commentedon Nov 29, 2011
@tengallen Look in the movingboxes.css file for these lines:
It is opposite of what you think. The top part makes ALL panels have a
cursor:pointerset, but the second panel used only on the current or middle panel has the cursor set toautoto make the cursor back into an arrow. If you only want arrows, then just changecursor:pointertocursor:autoor completely remove it from the css.tengallen commentedon Nov 29, 2011
got it and thanks for your promptly reply...
If I only have 3 images and all of them are shown in slider panel completed. No other images to slide anymore...
I could hide scroll button and buildNav but don't know how to make right / left image unclickable.
thanks for reply
Mottie commentedon Nov 29, 2011
I guess I'm confused... if you have all slides showing and don't want the scrolling to work, then why even use the plugin?
tengallen commentedon Nov 29, 2011
never mind.
is it possible to make right / left image unclickable in slider panel?? I wish to slide images by scrollButtons only.
Mottie commentedon Nov 29, 2011
The easiest method, without modifying the plugin, would be to add this line of code in the
initializedcallback (demo)tengallen commentedon Nov 30, 2011
awesome!!!! many thanks.