jquery help please
Discussion
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>
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>
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



