Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7071559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:42:09+00:00 2026-05-28T05:42:09+00:00

impress.js is a new web presentation written using Javascript. I want to create custom

  • 0

impress.js is a new web presentation written using Javascript. I want to create custom events to go to the next page. For example, I might create a “Next” and “Previous” button.

The entire impress.js file is a function, calling selectPrev(); from within the function will go to the next page. However, I’m not very good with Javascript, I don’t know how to call selectPrev(); from outside the function.

The file can be found here: https://github.com/bartaz/impress.js/blob/master/js/impress.js

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:42:10+00:00Added an answer on May 28, 2026 at 5:42 am

    By the looks of it, the whole file is inside a closure, and selectNext is local to that closure. Additionally, it is only used indirectly in the key listener, so getting it from there is also impractical.

    Thus, without modifying the source, I do not see any easy way to get at selectPrev/selectNext.

    Here is the message from a commit about six hours ago:

    impressive refactoring of slide selection - getting closer to API
    

    It seems the developer is planning to add a proper API soon. If you wait a little, there should be some standard, sanctioned and (hopefully) documented way to interact with impress.js programatically.

    If you just want a quick hack, you could always have your button trigger a key event. If you’re using jQuery, you can do it like this:

    $(document).trigger($.Event("keydown", { keyCode: 38 }))
    

    38 will go to the next slide and 40 to the previous.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I create an Impress presentation from a series of image files. I can create
I want some whizz-bang browser graphics to impress management - for SCADA/process control. Until
I have a web page I'm designing, and I am trying to have icons
I'm really impress by jsfiddle.net where we get to try out html/css/js right in
so essentially I have the task to learn matlab decently well in the next
Using ecryptfs or encfs (Possibly more) the actual decryption passphrase is kept in a
I have an html page with jqgrid. This jqgrid retrieve data from a php
I have an html page with a jqgrid. These hqgrid retreve data in json
Its my last semester of college and I have to do a big presentation
I am using Zend framework for the site which sends email for the voucher

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.