[jQuery] Code not working in IE
I am using this code:
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('#loading').show();jQuery('.wrap').slideDown(1000);jQuery('#loading').fadeOut(1500,
setTimeout('showdocs()', 1500));
jQuery(\"a:contains('Home')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Pages')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Gallery')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Contact')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Website')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Statistics')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Help')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Edit')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Return to')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery(\"a:contains('Add')\").click(function(e)
{e.preventDefault();link =
jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600,
function(){setTimeout('window.location = link', 1000);});});
jQuery('#jqueryform').submit(function()
{jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600);});
});
function showdocs() { jQuery('.docs').fadeIn(1500); }
But in IE the wrap just stops half way down the page and then the
entire js stops meaning it is just stuck there
IE gives the error "object doesn't support this property or method".
Firefox and Safari work perfectly.
IE sucks. What is wrong here?