Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS z-index/javascript working differently in the three major browsers
    text
    copied!<p>here it is hosted so you can see the behavior. (first two keys only, leftmost white key and black key next to it)</p> <pre><code>http://23.23.184.26/miller/cssz/main.html </code></pre> <p>works <em>pefectly</em> in chrome (19.-) produces a blue halo (selection?) box in firefox (12.0) does not work <em>at all</em> in IE9</p> <p>any advice?</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style type="text/css"&gt; #main { position:absolute; left:0px; top:0px; z-index:100 } #key1 { position:absolute; left:0px; top:0px; z-index:98 } #key2 { position:absolute; left:0px; top:0px; z-index:98 } #key1zone { position:absolute; width:50px; height:75px; top:175px; left:55px; z-index:200 } #key2zone { position:absolute; width:50px; height:75px; top:100px; left:85px; z-index:200 } /*uncomment this to show button zones*/ #key1zone:hover, #key2zone:hover { border:1px solid red; } &lt;/style&gt; &lt;script type="text/javascript"&gt; function keyDown(key) { document.getElementById(key).style.zIndex = "102"; } &lt;/script&gt; &lt;script type="text/javascript"&gt; function keyUp(key) { document.getElementById(key).style.zIndex = "98"; } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="key1zone" onMouseDown="keyDown('key1')" onMouseUp="keyUp('key1')" onMouseOut="keyUp('key1')"&gt;&lt;/div&gt; &lt;div id="key2zone" onMouseDown="keyDown('key2')" onMouseUp="keyUp('key2')" onMouseOut="keyUp('key2')"&gt;&lt;/div&gt; &lt;img id="main" src="0.gif" width="506" height="319"&gt; &lt;img id="key1" src="1.gif" width="506" height="319"&gt; &lt;img id="key2" src="2.gif" width="506" height="319"&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

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