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 3282114
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:53:29+00:00 2026-05-17T19:53:29+00:00

I have a web app that has a list of user comments. I want

  • 0

I have a web app that has a list of user comments. I want extra options for these comments (vote, reply, etc..) to appear only when the comment itself is mouseover-ed

The best example of what I am looking for would be a youtube video:

http://www.youtube.com/watch?v=s2VzLn6DMCE&ob=av3e

When you go to the comments the options (reply, vote up/down) are only displayed when that specific comment is rolled-over. How is this achieved? Is it simply a matter of using jquery (or similar javascript library) and displaying hidden divs?

Edit:

Ok so the element I am rolling over is complicated that I need to do it with javascript. I’m using rails, so prototype it is! Each of the individual list items has a unique id, but I have no idea how to pass this id variable into the prototype! This way it can display/hide the elements from a specific list item. How do I go about doing this?

  • 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-17T19:53:30+00:00Added an answer on May 17, 2026 at 7:53 pm

    CSS is the best way, in my opinion. Here’s a vertical way:

    HTML:

    <div class='roller'>
      <div>Options</div>
      <div>Comments</div>
    </div>
    

    CSS:

    .roller { overflow:hidden; height:30px;line-height:30px }
    .roller:hover { height:60px }
    

    And here’s a horizontal way, with the same HTML:

    CSS:

    .roller { overflow:hidden;width:100px }
    .roller div { width:100px;float:left }
    .roller:hover { width:200px }
    

    A little creative margin/padding work and you can get different results.

    Also, you can use first-child and/or next sibling selectors, or others.

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

Sidebar

Related Questions

I have a web app that has a big and complex form (fields, checks,
I have an existing web app that has a data layer and a bll
I have C# MVC web app that has some textboxes that in IE9 you
I have a very simple Mac Cocoa app that just has a Web View
I'm creating a web app that has a list of commands that change elements
I have a web app that has to do something every, let's say first
I have a C#.NET MVC3 web app. I have a View that has a
I have an MVC 3 web app that has an Action which I need
This is the scenario i have: im developing a web app that will list
I have a Django webapp that has both a front-end, web-accessible component and an

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.