Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Horizontal Scrolling Button

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #147968
    cantou
    Participant

    Hello ! I’m not sure i’m in the good section, but i’m trying to put arrows buttons to scrolling horizontally my image gallery. I already searched in google and on this site, but no scripts works.

    Here <<<, the page, made with the CMS Indexhibit.

    You can see my image of arrow that I want to transform in button.

    With my poor description, I suppose you can notice that i’m not an expert in developing.

    Thank you so much for your help.

    #148003
    Kuzyo
    Participant

    Hi.
    I right understood you want clicking on arrow to make horizontal scrolling?

    #148004
    cantou
    Participant

    Hi Kuzyo,
    Yes, that’s it !

    #148006
    Kuzyo
    Participant

    here my try http://codepen.io/Kuzyo/full/lLaAj but I’m only studing JS, but with your help we can setting it better. I saw your site is fixed, not responsive than we can try to set variables in code to fixed too. What width has to be every step?

    #148022
    cantou
    Participant

    Woah thanks, it looks great !

    The width of each step depends of the width of images on each exhibit. What are the differents codes I need to use and insert ? (i’m a little bit lost even with firebug..)
    Thereby, i can try to use what you did with the width you already configured.

    -pardon my english :)-

    #148023
    Kuzyo
    Participant

    Do you want it to scroll for full screen or only for one image? here I made step in 400px you can change step variable in code to make it bigger or smaller http://cdpn.io/lGDsd

    #148158
    cantou
    Participant

    Hey Kuzyo
    your script seems really great. Thank you very much.
    But I try to insert in my page and nothing works…
    I put first the script with and then the arrow button in the div.
    but the arrow is not clickable…

    a solution ?

    #148163
    Kuzyo
    Participant

    For the script I used JS library http://jquery.com/ you have to first download library and insert in your page and then insert my script

    #148165
    cantou
    Participant

    Indexhibit use already jquery….that’s not the problem….

    #148185
    Kuzyo
    Participant

    maybe you miss with selectors in JS and your html?

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.