Load page only when image is uploaded, how do I do this using JQuery
?
I've tried a few things but have not been successful so far, somebody help me ...
I do not have the id of the image just the one of the div that it is inside ...
EDIT: I'm using a jquery plugin for background image, the backstrech and background image has 2mb and it takes a long time to load, the code I use is this:
<script src="jquery.backstretch.min.js"></script>
<script>
$.backstretch("fundo.gif");
</script>
the backstretch uses the div with class backstretch
I tried several ways to do this type:
<script>
$(".backstretch").load(function() {
$("#corpo").show();
});
</script>
and this:
<script>
$("img.backstretch").load(function() {
$("#corpo").show();
});
</script>