Note that there are some explanatory texts on larger screens.

plurals
  1. POiFrame Overlay mousemove event works in Chrome but not Internet Explorer
    primarykey
    data
    text
    <p>Description:</p> <p>I need to access individual elements in an iframe when you hover over them in a transparent overlay. This is for a Online HTML editing software.</p> <p>It works fine on Chrome/Firefox, but not on Internet Explorer (I'm testing with IE10)</p> <p>I've recreated the problem in jsfiddle here: <a href="http://jsfiddle.net/BXSbt/8/" rel="nofollow">demo</a></p> <p>HTML:</p> <pre><code>&lt;div id="frame-content"&gt; &lt;iframe id="frame" style="width: 800px; background:transparent;" allowtransparency="true"&gt;&lt;/iframe&gt; &lt;div id="overlay"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>jQuery: </p> <pre><code>$(function () { var iframe = $("#frame")[0]; var iframewindow = iframe.contentWindow ? iframe.contentWindow : iframe.contentDocument.defaultView; $(iframewindow.document).find("body").append("&lt;img src='http://quickbase.intuit.com/blog/wp-content/uploads/2011/02/CampsBaySunset.jpg'/&gt;"); $("#overlay").mousemove(function (e) { console.log("x:" + (e.pageX) + ", y:" + (e.pageY)); }); }); </code></pre> <p>CSS:</p> <pre><code> #frame-content { overflow: auto; position: relative; width: 100%; height: 600px; display: block; top: 43px; } #frame-content iframe { transition: 0.1s linear; -moz-transition: 0.1s linear; -webkit-transition: 0.1s linear; background-color: #fff; border: 0; z-index: 1; border-radius: 0px; -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.7); -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.7); -o-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.7); box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.7); position:relative; display: block; margin: 0 auto; margin-bottom:-5000px; height: 5000px; } #overlay { position: absolute; top: 0; left: 0; width: 100%; min-height: 100%; z-index: 2; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; height:5000px; } </code></pre> <p>Why doesn't the mousemove event fire when over the image on Internet Explorer?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload