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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:28:02+00:00 2026-06-14T10:28:02+00:00

I have a youtube iframe embedded in a page with a transparent div placed

  • 0

I have a youtube iframe embedded in a page with a transparent div placed exactly on top of it.

I have links in the div on which I use CSS :hover to make visible only while the mouse is over the video.

Is it possible to allow the user to click through the div to play the video without turning off the hover effect on the div? I cannot make the div smaller.

I’m looking for something similar to pointer-events:none but which maintains the hover event for the div element. Is there a javascript solution perhaps?

Code demo:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Video test</title>
<style>
#storymenu{position:absolute; width:515px; height:386px;}
#storymenu a{display:none; margin-left:10px; margin-top:20px; padding:5px; background:#FFF;}
#storymenu:hover a{display:inline-block}
</style>
</head>

<body>
<div id="storymenu">
<a href="#" onclick="alert('next');return(false);"><span>Next Story</span> &gt;</a>
<a href="#" onclick="alert('prev');return(false);">&lt; <span>Prev Story</span></a>
</div>
<iframe width="515" height="386" src="http://www.youtube-nocookie.com/embed/5It4y8834Zd" frameborder="0" allowfullscreen></iframe>
</body>
</html>
  • 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-06-14T10:28:04+00:00Added an answer on June 14, 2026 at 10:28 am

    Here you go…

    Here is a Working Fiddle

    CSS

    #video {
    width:500px;
    height:200px;
    background-color:#333333;
    display:block;
    position:absolute;
    left:0px; top:0px;
    z-index:1;
    }
    
    #video a {
    color:#ffffff;
    }
    
    #overlay{
    display:none;
    position:absolute;
    left:30px; top:50px;
    z-index:5;
    }
    
    #overlay a {
    color:orange;
    }
    

    HTML

    <div id='holder'>
    <div id='video'><a href=''>Link</a></div>
    <div id='overlay'><a href=''>Overlay Link</a></div>
    </div>
    

    JQuery

    $('#holder').on('mouseenter', function(){
    $('#overlay').fadeIn(250);
    });
    
    $('#holder').on('mouseleave', function(){
    $('#overlay').fadeOut(250);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have navigation fixed to the top of my page, but if an iframe-embedded
I have a page which displays multiple (usually 10) embedded videos. The videos use
I have a slider which includes 4 youtube videos that are embedded via the
I have a YouTube video embedded on my site using an iFrame . I
On my site, I have a static-width embedded chromeless YouTube player (iframe) that plays
I have an iFrame that displays an embedded youtube video. <iframe width=560 height=315 src=http://www.youtube.com/embed/xxx
I have a YouTube video embedded on a page in ModX. To place it,
I have created a function which will set height, width and wmode=transparent for youtube
I have an embedded youtube video iframe in my html that I need to
I have YouTube videos loading in via Iframe. Is it possible to check if

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.