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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:17:48+00:00 2026-05-21T12:17:48+00:00

A few hitches in a bit of my code. I’ve got several HTML5 audio

  • 0

A few hitches in a bit of my code. I’ve got several HTML5 audio players on a page, each of which is played by clicking on an image that fades in when you enter its container. To accomodate the use of the same play image on all the players, I made it a class.

My issue is that when you fade into any of the .thumbnail containers the image fades in. I need to somehow hone it in to whichever container you entered.. maybe with (this) or something.

HTML:

        <div class="thumbnail" id="paparazzi">
            <a class="playback">
                <img class="play" src="http://www.lucisz.com/imgs/play.png" />
            </a>
            <audio>
                <source src="../audio/fernando_garibay_paparazzisnlmix.ogg" type="audio/ogg" />
                <source src="../audio/fernando_garibay_paparazzisnlmix.mp3" type="audio/mpeg" />
                Your browser does not support HTML5 audio.
            </audio>
        </div>

JavaScript:

$('.play').hide();
$('.thumbnail').hover(function(){
    $('.play').fadeToggle(400);
});

Conceptual JavaScript:

$('.play').hide();
$('this, .thumbnail').hover(function(){
    $('.play').fadeToggle(400);
});
  • 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-21T12:17:49+00:00Added an answer on May 21, 2026 at 12:17 pm

    Should be this:

    $('.thumbnail').hover(function(e){
        $('.play', this).fadeToggle(400);
    });
    

    So you were nearly right.

    For an example:
    http://jsfiddle.net/4NYqv/4/

    Edit: Sorry, had it the wrong way around.

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

Sidebar

Related Questions

Few weeks ago my code was all fine, but recently I've been unable to
A few years ago I developed a web app for which we wanted to
few months ago I've been using some ruby library ( I can't recall which
A few questions: Do Delphi XE2 64-bit apps link in borlndmm.dll when sharemem.pas is
Few years ago I've developed a windows service app (VB.NET framework 1.1) which was
Few of us would deny the awesomeness of debuggers, but to make it more
Few months ago, I have came across a Silverlight tutorial of Eric Cartman (South
Few basic doubts I have: 1. Is primary key column automatically indexed? 2. What
few days ago i asked about how to get all running processes in the
few days ago i read tutorial about GenericRepository and Unit Of Work patterns http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application

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.