Contenido oculto con botón Mostrar

Contenido oculto con botón Mostrar




Es un Widget para colocar en un Gadget y colocar un texto de cualquier informacion que solo se podra leer cuando se apriete el boton "Mostrar".



1º  Ira blogger
                                                               

2º Da un clic en “Diseño”

                                                                     

3º Abre el gadget que dice “Añadir un gadget”
                                                                         
                                                                           

4º Busca el widget que dice “HTML/Javascript” e inserta las siguientes líneas de

                                                                       


<div class="pre-spoiler">    <span style="color: #00ffff;">Clic Para Mostrar El Contenido</span> <input type="button" value="Mostrar Contenido" style="width:80px;font-size:15px;margin:0px;padding:0px;" onclick=    "if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Ocultar'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Mostrar';}" />    </div><div>    <div class="spoiler" style="display: none;">        AQUI ESCRIBEN TODO EL CONTENIDO QUE OCULTARAN YA SEA UN CHAT, REPRODUCTOR,ETC    </div></div>

Solo te queda dar en guardar

 Cambios. 

Donde pone: <Clic Para Mostrar El Contenido> puedes colocar lo que tu creas.

Y donde pone: AQUI ESCRIBEN TODO EL CONTENIDO QUE OCULTARAN YA SEA UN CHAT, REPRODUCTOR,ETC, Pones lo que tu quieras 

Fecha:23/12/2016


Publicado por:






Fuente: yoandroide



Blogs Famag

No hay comentarios:

Publicar un comentario

Facebook

Related Posts Plugin for WordPress, Blogger...

AddToAny