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

  • SEARCH
  • Home
  • 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 6076919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:39:44+00:00 2026-05-23T10:39:44+00:00

I have very little HTML knowledge, so this is probably a very trivial question.

  • 0

I have very little HTML knowledge, so this is probably a very trivial question. I would really appreciate any help!

When I’m creating presentations with the LaTeX beamer class there is the very useful command:

\begin{itemize} 
\item<x-> Alpha
\item<x-> Beta
\item<x-> Gamma  
\end{itemize}

This creates three bullet points that appear incrementally after a mouseclick or forward/backward arrow like in Powerpoint for example.

I would like to have the same function in a .html file for very long lists, maybe more than 50 items. So it really wouldn’t work in a slide environment, but only in a browser by scrolling down.

Is there an easy way to achieve this with HTMl5 or jQuery or some other way? Googling throws up thousands of presentation tools, and I don’t really know where to begin.

  • 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-23T10:39:45+00:00Added an answer on May 23, 2026 at 10:39 am

    With jQuery you could bind a keypress event to the window, and show the next list item every time a key is pressed:

    var curIndex = 0;
    $(window).keypress(function() {
       $("li").eq(curIndex).show();
       curIndex++;
    });
    

    To make this work with only the arrow keys, a slight change is required (you need to use keydown instead of keypress):

    var curIndex = 0;
    $(window).keydown(function(e) {
        if(e.keyCode === 37) {
            if(curIndex > 0) curIndex--;
            $("li").eq(curIndex).hide();
        }
        else if(e.keyCode === 39) {
            $("li").eq(curIndex).show();
            if(curIndex < 3) curIndex++; 
        }
    });
    

    Your HTML list will look something like this:

    <ol>
        <li>1</li>
        <li>2</li>
        <li>3</li>
    </ol>
    

    The list items will need to be hidden by default, using something like li { display:none } in your CSS.

    Also note that the above example does not handle the case when the last element is shown – what were you intending to happen in this case?

    Here is an example fiddle showing this in action (you need to click on the “Result” frame to give it focus, then press any key to trigger the event handler).

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

Sidebar

Related Questions

I have very little programming knowledge; only a fair bit in Visual Basic. How
I just started out with C and have very little knowledge about performance issues
first of all I have very little experience with CSS/HTML, I'm not a webdesigner/coder,
I know how to approach this problem but i have very little experience dealing
Trying to add public methods to this slider I purchased but have little knowledge
I warn you now very little experience at jquery. My question is this. I
I'm a little new to asp.net mvc and I have a question (very basic).
I know very little html and pretty much no css. I would like to
I am working on this site: http://www.problemio.com and I have very little clue about
I have very little experience in web development, so this may be a very

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.