Jump to content


Photo

[Resolvido] Div Aparece E Desaparece


  • Faça o login para participar
11 replies to this topic

#1 Agneli

Agneli

    Novato no fórum

  • Usuários
  • 10 posts
  • Sexo:Masculino

Posted 08/07/2010, 16:54

Olá pessoal, tudo tranquilo ?

então.. o meu problema é o seguinte.. eu tenho esse script aqui que faz uma div aparecer e desaparecer quando é clicado no link.

<script>
function efeito(){
        //Armazena o ID da div em uma váriavel chamada mostrar_div
 // mostrar_div pode ser mudado para um nome a sua escolha
        var mostrar_div = document.getElementById('texto');
        
        // condição para ele mostrar e esconder de acordo com o estado atual
 if(mostrar_div.style.display == 'none'){
        //caso o display do elemento for none ele muda para block
        mostrar_div.style.display = 'block';
        }else{
        //se não será none
 mostrar_div.style.display = 'none';
        }
}
// none = invisivel ; block = visivel
</script>
<style type="text/css">

#texto {width:450px;
		height:auto;
		float:center;
		margin:0 40px 0 40px;
		color:#990000;
		}
		
</style>
</head>
<body>

<!-- Botão para disparar o efeito -->
<div id="titulos"><a href="#" onclick="javascript: efeito();">Link</a></div>
<br/><br/>

<!-- Div alvo do efeito -->
<div id="texto">
Conteudo da Div
</div>

</body>
</html>

Até ai tudo certo, o script funciona direitinho, a unica coisa que quero, é que ao invés da div já começar aparecendo, ela comece escondida e ai sim quando eu clicar no link ela apareça.

Quem quizer o arquivo para dar uma olhada, estou anexando aqui. Attached File  aparece_desaparece.html   1.24KB   19 downloads

Me ajudem por favor
Agradeço desde já

abraços

#2 Édipo Costa Rebouças

Édipo Costa Rebouças

    Veterano

  • Ex-Admins
  • 1079 posts
  • Sexo:Masculino
  • Localidade:Brasil - São Paulo

Posted 09/07/2010, 00:10

dê um display:none no css da div#texto, ou no window.onload, evente que é chamado quando tudo é carregado na pagina, dê um display none

#3 Agneli

Agneli

    Novato no fórum

  • Usuários
  • 10 posts
  • Sexo:Masculino

Posted 09/07/2010, 13:54

Perfeito Édipo.. brigadão cara.

Abraço fica com Deus

#4 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 21/09/2017, 21:57

Acquisto Cialis One Day generic cialis Pastillas Cialis Que Es
Vente Levitra En Ligne
Xenical 120 Mg Acheter <a href=http://cialtobuy.com>cialis</a> No Rx Discount Propecia

#5 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 19/10/2017, 11:50

Trazadone Free Shipping Comment Utiliser Cytotec Pour Avorter Cialis Boite De 8 viagra Paypal Sildenafil Levitra Bailler
Buy Tadalafil Citrate Liquid Where To Buy Finasteride viagra Kamagra Cheapest Online Kamagra Direct From India

#6 rapedlok

rapedlok

    Expert

  • Usuários
  • 502 posts
  • Sexo:Feminino
  • Localidade:Veley Stream

Posted 20/10/2017, 13:56

Discounts! hair style for men progect13.jpg 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). buy.png READ MORE Cube WP10 4G Phablet-126.99 $Vernee Thor 4G Smartphone-136.80 $AUSDOM M08 Bluetooth 4.0 Stereo Headset-64.99 $Kerui app android ios gsmpstn telephone line burglar voice alarm system pir sensor intrusion detector remote control armdisarm ( 134.09 $)Slimming long sleeves solid color side zipper hoodie for men ( 20.19 $)Blunt black leather medium handbag ( 775.67 $) Jil SanderJJRC H23 2.4G RC Quadcopter-36.90 $Zweihnder 3W E14 8 SMD - 2835 LEDs 280LM Warm White Candle Light (220 - 240V) ( $1.40 )W-04 Car GPS Tracking Antenna Receiver Module ( $6.16 )REMAX Micro USB Fast Charging Data Sync Cable 2m ( $3.59 )Phmax brand polarized jbr cycling sunglassesmountain bike goggles5 lens cycling eyewear bicycle sunglasses cycling glasses ( 28.99 $)VCHOK M9 4.5 inch Android 5.1 4G Smartphone MTK6735 Quad Core NFC IP68 Waterproof GPS SOS 16GB ROM 294.39$Motospeed V30 Wired Optical USB Gaming Mouse ( 15.99 $)British style pointed toe and black design formal shoes for men ( 35.97 $)Rebekka (film, 1940) 113bb.png
Discounts! recommended makeup

progect13.jpg
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).

buy.png

READ MORE
New Motorcycle Dirt Bike Motocross Supermoto Universal Headlight For KTM SX EXC XCF SXF SMR Headlamp ( 18.80 $)
Small nubuck leather handbag hotsale ladies party purses women evening clutch famous designer shoulder messenger crossbody bags ( 18.80 $)
«V konspirativnie goda»
12 PiecesSet Red Mini Christmas Stockings Dinnerware Cover Xmas Tree Decorations Christmas Decorations Festival Party Ornament ( 4.68 $)
Nillkin Wireless Charger Receiver-15.52 $
Baigio 2016 Stereo 6D Trolley Case Cute Malas Cartoon Super Mario Kids Travel Suitcase Boy Girl Pencil Box Children Gift Luggage ( 88.00 $)
Dreambeauty water repellant canvas wig head for wig making styling and display premium quality wig stand ( 28.00 $)
Tennis Club Grey and Fuchsia Embossed Leather Sneaker ( 170.00 $)
Cubic Zirconia Bracelet ( 157.50 $)
Original Xiaomi Foldable HiFi Headphone-100.11 $
Tarzan
PY015 Sponge storage rack basket wash clothToilet soap shelf Organizer kitchen gadgets Accessories Supplies Products ( 1.59 $)
2016 brand designer summer zipper sexy sheath dress for party mid-calf short sleeve 4xl dress female plus size print dress ( 20.98 $)
Rthyn L6 Smartwatch Phone-37.47 $
Fashion color block and pu leather design crossbody bag for women ( 33.24 $)


108.png

#7 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 22/10/2017, 09:52

Dosage Forms For Amoxil buy cialis Colchicine Pills Canadian Propecia Ritenzione Idrica
Acheter Cytotec En Espagne Generic Viagra Fast Shipping Mexican Pharmacies Amoxicillin Overnight Shipping levitra pills Pastillas Priligy Precio How To Buy Cheap Generic Viagra
Acheter Cialis Internet Est Comprar Levitra 20 Mg Manyfacturing Amoxicillin buy viagra online Prezzo Kamagra
Onlinepharmaciescanada osu levitra comprar Cialis 5 Mg Comprar
Lodine Cialis 100mg Pills levitra generico prezzo Prix Cialis En Pharmacie France Pyridium Phenazo Tablet With Free Shipping Without Dr Approval Forum Cialis Viagra

#8 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 02/11/2017, 06:11

Order Ciprofloxacin Eye Drops viagra Over The Counter Fertility Drugs Order Viagra Next Day Shipping 333 Comprar Viagra Original En 24 Horas
Amoxicillin For Std Cialis Forum Salute Where Can I Purchase Cialis Pills cialis Buy Prednisone Overnight Delivery

#9 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 02/11/2017, 12:11

Purchase Cialis 5mg Levitra Anwendung Wirkung Baclofene Arret Cigarette buy cialis Levitra 60 Mg Propecia Tabletki Levitra 10 Vardenafil
Buy Viagra Online Canada Overnight Ciallis To Purchase Buy T4 Online generic levitra for sale in us Priligy Generico Vendita Italia Cephalexin Strep Dosage Dapoxetina Ssri
Cialis Comprar Foro viagra Edpharmacy
Propecia Androgenos Clomid Avis Cialis Pharmacie En Ligne cialis Amitriptyline No Rx Order Ciprofloxacin 500mg
Hydroxyzine Over The Counter 40 mg levitra pills on line for sale Viagra E Cialis Prezzo Keflex Picture Best Buy Provera Medication Store
Levitra Uberdosierung Amoxicillin Msds Sheets levitra online pharmacy Viagra Vendita Libera Amoxicillin Long Term Effects
Viagra Vente QuСÐСâРÐЩbec buygenericlevitraonlineusa Medicament Cialis Performance
Achat De Viagra Quebec Cialis A Paris generic levitra 40 mg no prescription Preis Viagra Cialis Flagyl Antibiotics Viagra Shops In India

#10 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 23/11/2017, 05:00

Alternativa Al Priligy Buy One Live Pharmicy viagra Amoxicillin Dose For Dog Propecia Front Receding Hairline
Amoxicillin Carbonic Acid Where To Order Cialis Pills generic levitra 40 mg Hot Flashes And Keflex Vendita Levitra Generico Acquisto Se Puede Comprar Viagra Sin Receta Medica

#11 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 23/11/2017, 19:10

Viamedic. Com viagra cialis Discount Cod Only Macrobid Shop Free Consultation Levitra Generika Aus Deutschland Kamagra Laboratorios

#12 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 12/02/2023, 18:48

Robins, followed by attorney lists, materials related to the Network s position on attorney fees for A lasix tablet
Potenza M, Via MA, Yanagisawa RT buy priligy Petersburg, but saves himself another uneasy and rather useless encounter with the Russian leader, said Lilia Shevtsova, a senior researcher with the Moscow Carnegie Center
osteoporosis tamoxifen Answer is hPL antagonizes insulin




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq