8 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
Jelte says

Hi,

I’m Jelte from Holland and i have a question. I have a strange problem with jQuery: all browsers accept and use my jQuery code correct, exept for all versions of IE.

I’ve included jQuery and my jQuery code like this: pastie

My jQuery code can be found here: code

The webdesign itself: website

It is not finished yet, so don’t judge that please. ;)

Anyone knows how to fix this? The html is valid, links are right… I really can’t think of any solution.

Regards, Jelte

8 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
Jelte says

Whoops, sorry for the dubble post. I found the problem is this part of the jQuery:

//OPACITY ON BLOCKS
$('#contenttop .block').children('').animate({ "opacity" : 0.3 }, 0);
$('#contenttop .block').hover(function(){
    $(this).children('').stop().animate({
    "opacity" : 1,
    }, 100);
    $(this).css('cursor', 'pointer');
}, function(){
    $(this).children('*').stop().animate({
    "opacity" : 0.3
    });
});

When I comment that part out, the rest of the jQuery works well in IE. Maybe I’ll rewrite this part, i wasn’t happy with it after all. Or does somebody know a proper solution for this situation?

Jelte

323 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 100+ items on Envato Market
+5 more
shadow66142000 says

First when debugging IE go into the settings and turn debugging on to receive your errors. But you have a comma that needs to be removed.
“opacity” : 1,
remove that comma and you should be all set. You will not see that error except in IE.

8 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
Jelte says

@shadow: Thanks for that, it does work in IE now! Weird that a comma can turn the whole script down.

Didn’t know IE had a debugging mode… don’t use it very often. ;)

Thanks!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by