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 years ago I've developed a windows service app (VB.NET framework 1.1) which was
Few questions: I'm using CI and JQuery AJAX. In my code below, I assemble
Few facts first: 1. I can only use ActionScript 2. 2. All files are
Few months back, I had come across this interesting scenario asked by a guy
Few minutes ago I asked about looping, see Asynchronous for cycle in JavaScript .
few month ago i write something to get the latitude or longitude from google
Few questions on over riding. I am interiting a method openRead from another class,
Few weeks ago I asked a question on increasing the speed of a function
A few years ago Dean Edwards brought us this workaround to the document.onload problem.
a few minutes ago i asked here how to get parent records with a

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.