Как вывести текст?
function () {
// Здесь нужно вывести текст
})
$(document).ready(function(){
$("#loader a, #loader1 a").each(function(index,el){
var img = new Image();
$(img).load(function () {
$(this).hide();
$(el.parentNode).removeClass('loading').append(this);
$(this).fadeIn();
}).error(function () {
// error handling.
// Здесь нужно вывести текст с сообщением о том, что изображение не загружено. document.write() выводит новую страницу.
}).attr('src', $(this).attr('rel'));
});
});
<div id="messageDiv"><!-- --></div>
<script>
// для вашего jQuery
$('#messageDiv').txt(message)
или
$('#messageDiv').html(message)
</script>