- $ ('# IDdaImagem'). On ('load', function () {
/ / 'Code paragraph load a page / content'
})
|
|
How to load the page only when such image is loaded?
and the image still does not work after being charged ... |
i test this and work, but not the item that I give show, appearing at the time, it works only in the alert.
<script> $('.backstretch img').load(function() { alert('done loading image'); $("#corpo").show(); }); </script>
--------------------------------------
Como carregar a página apenas quando tal imagem é carregada?
Tentei :
e não funciona a imagem continua sendo carregada depois...
é uma imagem de fundo, e uso um plugin jQuery para abrir em outras resoluções, o backstretch, ele usa uma div com classe backstretch, como eu carrego esta imagem Fundo com 2mb antes de o conteúdo do site?
eu testei isso e funciona, mas não no elemento que eu vou dar show, só no alert.
<script> $('.backstretch img').load(function() { alert('done loading image'); $("#corpo").show(); }); </script>