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".
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>
Publicado por:
Fuente: yoandroide
No hay comentarios:
Publicar un comentario