Note that there are some explanatory texts on larger screens.

plurals
  1. POjavascript error in IE
    text
    copied!<p>I need help with an error message I am getting in IE6+. Note though that the code is working fine.</p> <p><em>Message: Object expected <br /> Line: 38 <br /> Char: 4 <br /> Code: 0 <br /> URI: <a href="http://localhost/dropbox/panorama/index.php?lang=gr" rel="nofollow">http://localhost/dropbox/panorama/index.php?lang=gr</a></em></p> <p>What is actually at line 38 is the following:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ slideShow(); }); &lt;/script&gt; </code></pre> <p><strong>LINE 38 is the one where I am calling my "slideShow()" function</strong> <br /> Note also that these function is stored in an external file. </p> <p>These are the contents of the external file:</p> <pre><code>$(function slideShow() { //Set the opacity of all images to 0 $('#gallery li').css({opacity: 0.0}); //Get the first image and display it (set it to full opacity) $('#gallery li:first').css({opacity: 1.0}); //Call the gallery imgGallery to run the slideshow, 5000: 5 seconds interval setInterval('imgGallery()',4000); }); $(function imgGallery() { //Get the first image var current = ($('#gallery li.show')? $('#gallery li.show') : $('#gallery li:first')); //Get next image, if reached last image, start over from the first image var next = ((current.next().length) ? (current.next()) : $('#gallery li:first')); //Set the fade in effect for the next image next.css({opacity: 0.0}) .addClass('show') .animate({opacity: 1.0}, 1000); //Hide current image current.animate({opacity: 0.0}, 1000) .removeClass('show'); }); </code></pre> <p>Any recommendations?</p>
 

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