Carregar Fundo Primeiro
#1
Posted 06/06/2008, 22:15
Procurando por respostas, percebi que essa dúvida não é nova, mas ainda assim não vi respostas.
Tenho um index.html de meu portfólio, que é um arquivo cheio de imagens (e, portanto, consideravelmente pesado). Ao carregá-lo, o fundo (index_bgp.jpg) de uma "div" (que contém o principal fundo do site) é carregado por último (após todo o site e todas as imagens) parecendo que o site está deformado até o momento que o carregamento é concluído.
Gostaria de saber se há uma maneira de fazer com que o fundo "index_bgp.jpg" fosse carregado antes.
Código do index.html:
[CODEBOX]<style type="text/css">
@import url("style.css");
</style>[/CODEBOX]
Código do style.css:
[CODEBOX]
#tudo {
background-image:url(images/index_bgp.jpg);
background-repeat:repeat-y;
background-color:#000000;
width:778px;
min-height: 100%;
}[/CODEBOX]
Detalhe que a ordem não está importando: mesmo se eu colocar como primeiro item da página de estilos (style.css), o fundo não carrega primeiro.
Agradeço a ajuda.
- Ptickturdy likes this
#2
Posted 25/07/2008, 03:34
Pessoal,
Procurando por respostas, percebi que essa dúvida não é nova, mas ainda assim não vi respostas.
Tenho um index.html de meu portfólio, que é um arquivo cheio de imagens (e, portanto, consideravelmente pesado). Ao carregá-lo, o fundo (index_bgp.jpg) de uma "div" (que contém o principal fundo do site) é carregado por último (após todo o site e todas as imagens) parecendo que o site está deformado até o momento que o carregamento é concluído.
Gostaria de saber se há uma maneira de fazer com que o fundo "index_bgp.jpg" fosse carregado antes.
Código do index.html:<style type="text/css">@import url("style.css");</style>
Código do style.css:#tudo { background-image:url(images/index_bgp.jpg); background-repeat:repeat-y; background-color:#000000; width:778px; min-height: 100%;}
Detalhe que a ordem não está importando: mesmo se eu colocar como primeiro item da página de estilos (style.css), o fundo não carrega primeiro.
Agradeço a ajuda.
<style type="text/css">
body{
display:none;
}
</style>
<script type="text/javascript">
// <![CDATA[
onload = function(){
var body = (document.getElementsByTagName('body')[0]).style;
body.display ="block";
}
// ]]>
</script>
dá esse display:none na propria folha de estilo sua, onde você define o body, ai, quando a pagina terminar de carregar o javascript da um display:block onde ele faz o conteudo do body aparecer novamente.
Boa sorte.
#3
Posted 02/09/2008, 17:23
#4
Posted 20/09/2017, 19:25
Finasteride Online Mastercard cialis Nebenwirkungen Cialis Augen
Amoxicillin Need Doctor Prescription Keflex Breast Cyst Comprar Cialis En Farmacias Similares
Achat Kamagra 100mg <a href=http://cialtobuy.com>generic cialis</a> Cialis 5mg Dosierung Erfahrungen
#5
Posted 28/09/2017, 05:49
Does Walgreens Sell Cytotec cialis online Viagra Wirkung Bei Gesunden Purchase Dog Cephalexin Delicate Rx Support
Xenical In Spain For Sale Cialis Once A Day Reviews cialis buy online Cheapest Anxiety Meds No Prescription
Viraga Sales Combinez Priligy Viagra cialis Cialis Algerie
#6
Posted 29/09/2017, 05:14
Bentyl Cod Only Low Price Medrol Dose Pack From Canada Licenziamento Levitra cialis Plavix Online Order
Cialis Generico Serve La Ricetta Farmacia Viagra Cialis Misoprostol Cytotec Side Effects cialis price Propecia Cost Cvs Pharmacy Locations
#7
Posted 08/10/2017, 05:54
Ou Curetage Pris Du Cytotec Keflex Dosage For Skin Infection viagra Levitra 75 Mg Priligy Generico En Argentina
Amoxil 875 Prix Du Levitra 20mg Cephalexin Floxin cialis Cephalexin Perscription Number
#8
Posted 23/10/2017, 20:55
where can i buy accutane yahoo Je Peux Acheter Kamagra Rezept Fur Viagra cialis buy online Baclofen Achat 25mg Does Kamagra Work
Propecia Marbella viagra online prescription Bacterial Infection Treated With Keflex
Buy Zyban Uk Amoxil Drops levitra 10 mg generic Como Usar El Kamagra
#9
Posted 24/10/2017, 05:15
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
Hot genuine leather women bag bolsas 2015 design handbag casual shoulder bags vintage female luxury messenger crossbody big tote ( 54.00 $)
Jack Purcell LTT Ox White and Road Trip Blue Mens Sneaker ( 65.00 $)
Stylish solid color lace embellished women's corset + briefs ( 14.25 $)
7a virgin brazilian body wave silk base closure,freemiddle3 part cheap silk base closures brazilian human hair top closure 4x4 ( 44.12 $)
Piter Pen (personazh)
Peep toe white satin bridal wedding shoes rhinestone chunky heel comfortable women dress shoes kitten heel prom party shoes ( 100.79 $)
Good useful travel portable toothbrush toothpaste storage box cover protect case ( 1.03 $)
Ulefone Metal 4G Smartphone-172.21 $
OUKITEL A28 MTK2502 Bluetooth 4.0 Smart Watch with Heart Rate Monitor Genuine Leather Strap iOS Android 40.99$
Tiny Flexible Detachable USB Fan Low Power Consumption Silence Fan ( $1.30 )
Cafele ultra thin cover case for iphone 7 simple series back cover case for iphone 7 plus frosted hard phone accessories cases ( 7.99 $)
American art vintage minimalist living room pendant lamps rattan cafe bar restaurant rope e14 industrial pendant lights fixture ( 100.80 $)
SMPlayer 32-Bit 17.3.0
Bashnya Radosti Game of Thrones
New 2015 Route 66 about USA 6pcslot metal Tin sign tinplate vintage metal painting wall home bar pubs cafe Wall Decor ( 30.00 $)
#10
Posted 03/11/2017, 02:04
Jnj Priligy Cialis Sans Ordonnance Danger viagra Precio Propecia Cialis Levitra Generic Cialis Shipped With In Canada
Can I Get Zoloft Without A Prescriptionzoloft Cialis Effets Secondaires Bayer Levitra cialis Propecia Dizionario Amoxicillin Clavulanate 125 Tab Price
#12
Posted 01/12/2017, 21:30
Pet Meds Amoxicillin No Prescription cialis price Propecia Dose It Really Work Generic Viagra Purchase Finasteride Tablets 5mg Where To Buy
Flonase Amoxil En Capsulas viagra online pharmacy Pharmacy World Canadian Drug
Cialis 10 Mg Pharmacie Pour Propecia Mail Order Medicine viagra Cialis Bruciore Di Stomaco
#13
Posted 05/12/2017, 10:48
Buy Viagara Keflex Manufacturere cialis buy online Propecia Farmaco
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)