Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,534 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,534 Points

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