jquery help please
Author
Discussion

loltolhurst

Original Poster:

1,994 posts

216 months

Monday 17th May 2010
quotequote all
Hi,

need some help please with jquery - i know css but dont know scripting past copying and pasting.

I'm trying to get a web page to fade out into another one ( i know its v 1990's but thats what chum wants ). I looked on google and came up with the script below. it works fine on firefox but not on ie. I'm applying it to an image on the page using the class fademe.

Can anyone help as its driving me mad.

Thanks

Script:

<script type="text/javascript">
$(document).ready(function(){
jQuery('a.fademe').click(function(){
jQuery(document.body).fadeOut();
setTimeout("nav('"+this.href+"')",300);
return false;
});
});

function nav(href){
location.href=href;
}
</script>

PetrolTed

34,468 posts

335 months

Monday 17th May 2010
quotequote all
Have a google on fading and IE. I seem to recall it's less capable than all the other browsers in this respect.

loltolhurst

Original Poster:

1,994 posts

216 months

Monday 17th May 2010
quotequote all
thanks ted have tried but not being script person am struggling - says should work on a block element in ie as far as i can see but have tried that and no joy. frown

will look in the morning when head is clearer!