Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, below I've made some changes based on how you would normally approach this in a jQuery "way":</p> <p>First, I fixed the <code>img</code> margin issue by moving it to the parent <code>td</code> and using <code>padding</code>. I don't know why Opera failed to fire the event handler with your code/markup/css, just that this was how I was able to fix it with the same visual effect. </p> <p>Note, when I <a href="http://jsfiddle.net/fmaUZ/13/" rel="nofollow">modify my below code</a> to do:</p> <pre><code>.Strumento img { margin-right: -8px; } </code></pre> <p>It appears to work fine in Opera. So I don't actually know what the specific problem is here, but I suspect it has something to do with the actual event attachment itself.</p> <p><strong>CSS/Markup</strong></p> <pre><code>.Strumento { cursor:pointer; padding-left: 8px; } &lt;td class="Strumento"&gt; &lt;img id="obj_BJOQvk" title="-" src="http://www.poketown.net/public/poketown/oggettinoprova2.gif"&gt; &lt;/td&gt; </code></pre> <p><strong>jQuery</strong></p> <p>I also adjusted your script so that it's not using inline event syntax:</p> <pre><code>$(document).ready(function(){ // Sets browser infos as html.className var params = []; $.each($.browser, function(k, v) { var pat = /^[a-z].*/i; if (pat.test(k)) { params.push(k); } }); params = params.join(' '); $('html').addClass(params); $('tbody .nodeco').click(function(){ $('#boh3').attr('checked', false); }); $('thead .nodeco').click(function(){ $('tbody .nodeco').attr('checked', true); }); $('.Strumento img').click(function(){ $(this).fadeOut("slow"); }); }); $(window).load(function(){ Nifty("div#header","small"); Nifty("div#header2","small"); Nifty("div#header3","small"); Nifty("div#header4","small"); Nifty("div#dati,div#dati2","same-height"); }); </code></pre> <p><a href="http://jsfiddle.net/fmaUZ/12/" rel="nofollow">http://jsfiddle.net/fmaUZ/12/</a></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.
    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