I am using this script:
<script language="javascript" type="text/javascript">
$(window).load(function() {
$('#loading').fadeOut(2000);
});
</script>
... and a ajax.loader.gif in a div:
<div id="loading">
<img id="loading-image" src="img/ajax-loader4.gif" alt="Loading..." />
</div>
... to load the page because of a flickering slider that I am hiding before its finished loading. Right now the script works for the whole page, and I don't want that, because it´s taking too long. is it possible to make that loader finish as soon as that slider is loaded? that would mean I need to exclude som divs from that loader I guess.
Any Ideas?