Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript errors in IE
    text
    copied!<p>Please help me correct the mistake in javascript, it doesn't work in IE, i just can't understand what is the problem here:</p> <pre><code> $(document).ready(function() { $(".image2").click(function() {var image = $(this).attr("rel"); $('#image2').hide(); $('#image2').fadeIn('slow'); $('#image2').html('&lt;embed height="253" width="440" wmode="transparent" src="' + image + '"&gt;&lt;/embed&gt;'); var image2 = $('#image2 embed').attr('src'); $("#thumb2 a img").removeClass("open"); $("#thumb2 a[rel='" + image2 + "'] img").addClass("open"); return false; }); }); $(document).ready(function() { var image3 = $('#image2 embed').attr('src'); $("#thumb2 a[rel='" + image3 + "'] img").addClass("open"); var n = $('#news_list'); n.find('.list_news a').css({opacity: 0.5}).hover( function() { $(this).css({opacity: 1}); }, function() { $(this).css({opacity: 0.7}); } ); n.hover( function() { $(this).find('a').css({opacity: 0.7}); }, function() { $(this).find('a').css({opacity: 0.5}); } ); }); $(document).ready(function() { $('.image').click(function(event) { event.preventDefault(); var imagePath = $(this).attr("href"); var newImg = new Image; newImg.src = imagePath; newImg.onload = function(){ $('#big_picture').hide(); $('#big_picture').attr('src', imagePath); $('#big_picture').fadeIn('slow'); }; }); }); $(document).ready(function() { $(".dropdown a").each(function() { if(this.href == window.location) $(this).addClass("open"); }); $('.slider_fade').cycle({ fx: 'fade', timeout: 7000, }); }); $('.upper_menu_link').attr('target', '_blank'); var message=""; function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&amp;&amp;!document.all)) { if (e.which==2) { (message); return false;}}} if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS; }else{ document.onmouseup=clickNS; document.oncontextmenu=clickIE; } document.oncontextmenu=new Function("return false"); $('.urun_div').corner("round 20px"); </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