Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

JQuery doesn't work in IE and FireFox

I'm building my website with a slideshow using jquery function. It works well in Chrome, Safari and other browsers but doesn't work in IE and FireFox

this is the link to the website ostapenko-photo.com

this is the code that doesn't work in the browsers mentioned above

<script> $(function(){ $('.fadein img:gt()').hide(); setInterval(function(){$('.fadein :first-child').fadeOut(1000).next('img').fadeIn().end().appendTo('.fadein');}, 5000); }); </script>

Thanks a lot for your help Slavik

2 Answers

Alex Heil
Alex Heil
53,547 Points

hey slavik, having a look at your site you currently link to your images with a backslash in the path. try changing this to a normal slash /, that way the images will also show up on firefox etc.

hope that helps ;)

Thanks a lot for your help. That was to easy, but it bugged me for days, and i couldn't understand why it doesn't work. Thanks again!!!

Alex Heil
Alex Heil
53,547 Points

you're welcome slavik, great to hear this helped you out ;)