cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div align="center">

  <body onload="marcha()">
    <div id="antiguas" align="center">
      <div id="Villalis"></div>
      <a href="javascript:cambio(1);" class="mas" title="Avanzar una">&rsaquo;</a>
      <a href="javascript:cambio(-1);" class="menos" title="Retroceder una">&lsaquo;</a>
      <a href="javascript:retroceder()" class="retr" title="Marcha Atrás"><b>&laquo;</b></a>
      <a href="javascript:avanzar()" class="fren" title="Marcha Adelante"><b>&raquo;</b></a>
      <a href="javascript:enlazar()">
        <img id="centro" title="Ir a la página" src="https://farm5.staticflickr.com/4140/4901516641_54cb8fa464.jpg" height="425"></a>
      <div class="atribucion" style="font-family: Times New Roman;text-align: center;font-size: large;color:#ffffff">

        <a style="text-decoration:none" href="http://www.flickr.com" target="_top">
          <span style="font-size:27px;"><b> &copy </b></span></a>flickr-Todas las fotografías son propiedad de
        <a style="text-decoration:none" href="http://www.flickr.com/photos/zarigella/sets/72157624746801108/with/4901516641/" rel="" target="_blank"> ZARIGÜELLA</a></div>
      <div class="opciones">
        <form accept-charset='utf-8' name="form" method="post" action="javascript:automatico(this.form.tiempo.value)">
          <select title="Poner el tiempo" style="color: #ffffff;background-color: #003333;font-size:17px;" name="tiempo">
            <option value="4000">Tiempo</option>
            <option value="2000">&nbsp;&nbsp;2 Seg.</option>
            <option value="3000">&nbsp;&nbsp;3 Seg.</option>
            <option value="5000">&nbsp;&nbsp;5 Seg.</option>
            <option value="7000">&nbsp;&nbsp;7 Seg.</option>
            <option value="10000">&nbsp;10 Seg.</option>
            <option value="15000">&nbsp;15 Seg.</option>
          </select>
          <input style="color: #ffffff;background-color: #003333;font-size:17px;" title="Validar" type="submit" name="Button" value="OK">
        </form>
      </div>
    </div>
</div>
            
          
!
            
               body {
   background-color: #CCFFFF
 }
 /*La caja contenedor */
 
 #antiguas {
   position: relative;
   overflow: hidden;
   width: 628px;
   height: 440px;
   border-radius: 30px;
   border: 7px solid #610B38;
   background: #424242;
   background-image: url(https://sites.google.com/site/acemarmar/fotos/marco2.jpg);
   background-repeat: no-repeat;
 }
 /*Las Flechas simples */
 
 a.mas,
 a.menos {
   position: absolute;
   top: 40%;
   left: 1px;
   z-index: 100;
   width: 30px;
   height: 40px;
   text-align: center;
   line-height: 30px;
   font-size: 60px;
   color: white;
   text-decoration: none;
 }
 
 a.mas {
   left: 100%;
   margin-left: -40px;
   opacity: 0;
 }
 
 #antiguas:hover a.mas {
   opacity: 1;
 }
 
 a.menos {
   left: 5px;
   margin-left: 0px;
   opacity: 0;
 }
 
 #antiguas:hover a.menos {
   opacity: 1;
 }
 /*El bloque de atribución*/
 .atribucion {
   position: absolute;
   top: 100%;
   width: 650px;
   z-index: 99;
   opacity: 0.7;
   color: #ffffff;
   background: #000000;
   -webkit-transition: all 500ms ease;
   -moz-transition: all 500ms ease;
   -ms-transition: all 500ms ease;
   -o-transition: all 500ms ease;
   transition: all 500ms ease;
 }
 
 #antiguas:hover .atribucion {
   top: 93%;
 }
 
 .atribucion a {
   color: #FFFF00
 }
 /*El selector de tiempo*/
 .opciones {
   position: absolute;
   top: -10%;
   width: 640px;
   z-index: 100;
   -webkit-transition: all 500ms ease;
   -moz-transition: all 500ms ease;
   -ms-transition: all 500ms ease;
   -o-transition: all 500ms ease;
   transition: all 500ms ease;
 }
 
 #antiguas:hover .opciones {
   top: -1%;
 }
/*Las imagenes*/ 
 #centro {
   border-radius: 20px;
   -webkit-border-radius: 20px;
   z-index: 90;
   margin-top: 7px;
   margin-left: -10px;
 }
 /*Las Flechas dobles*/
 
 a.fren {
   position: absolute;
   top: 92%;
   left: 93%;
   z-index: 100;
   width: 40px;
   height: 40px;
   opacity: 0;
   line-height: 30px;
   font-size: 50px;
   color: #ffffff;
   text-decoration: none;
 }
 
 #antiguas:hover a.fren {
   opacity: 1
 }
 
 a.retr {
   position: absolute;
   top: 92%;
   left: 1%;
   z-index: 100;
   width: 40px;
   height: 40px;
   opacity: 0;
   line-height: 30px;
   font-size: 50px;
   color: #ffffff;
   text-decoration: none;
 }
 
 #antiguas:hover a.retr {
   opacity: 1
 }
 /*El bloque de titulos y contador*/
 #Villalis {
   position: absolute;
   top: 90%;
   width: 640px;
   background: transparent;
   z-index: 98;
   opacity: 1;
 }
            
          
!
            
                               /*NO EDITAR ÉSTA ZONA*/
                 /*Autor:  http://villalisaceliano.blogspot.com.es/p/la-sem-santa.html  Con éste práctico script 
                 se pueden poner un conjunto de fotos respetando siempre los derechos de autor. El sistema consta
                 de las funciones: inicio automatico, el visitante puede poner la velocidad de pase en otros seis tiempos diferentes, el paso manual para la temporización, paso automatico hacia adelante continuo y hacia atrás hasta el comienzo (un ciclo).
                    En ésta versión también se pueden incluir los titulos y el Nº de orden.*/

                 //<!--
                 var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
                 var temporizador = null;
                 var contador = null;
                 var tiempo = null;

                 function marcha() {
                   document.images.centro.src = fotos[0];
                   cambio(-1);
                   fotos.push(0);
                   tiempo = parseInt(1000.0 * 4);
                   if (isNaN(tiempo) || tiempo <= 0);
                   else temporizador = setTimeout("avanzar()", tiempo);
                 }

                 function automatico(s) {
                   clearTimeout(temporizador);
                   tiempo = parseInt(s);
                   if (isNaN(tiempo) || tiempo <= 0)
                     alert('Hay que poner el "Tiempo"');
                   else temporizador = setTimeout("avanzar()", tiempo)

                 }

                 function cambio(avance) {
                   clearTimeout(temporizador);
                   contador += avance;
                   if (contador == fotos.length) contador = fotos.length - 1;
                   else
                   if (contador < 0) contador = 0;
                   document.images.centro.src = fotos[contador];
                   window.status = contador + 1 + " / " + tex.length;
                 }

                 function retroceder() {
                   clearTimeout(temporizador);
                   cambio(-1)
                   if (contador < fotos.length - 1) temporizador = setTimeout("retroceder()", tiempo)
                 }

                 function avanzar() {
                   clearTimeout(temporizador);
                   cambio(1)
                   if (contador < fotos.length - 1) temporizador = setTimeout("avanzar()", tiempo)
                   else reinicio()
                 }

                 function reinicio() {
                   contador = 0;
                   cambio(-1);
                   setTimeout("avanzar()", tiempo)
                   document.images.centro.src = fotos[0];
                 }

                 function enlazar() {
                   var nuevaVentana = window.event;
                   nuevaVentana = window.open(enlaces[contador])
                 }

                 function titulos() {
                   var texto = "<big><font color='ffffff' face='Arial' style='font-size:17px;opacity:1'>" + window.status + '<br>' + tex[+contador] + "</font></big>"
                   if (document.all)
                     document.all.Villalis.innerHTML = texto
                   else if (document.getElementById)
                     document.getElementById("Villalis").innerHTML = texto
                   else
                     document.write(texto)
                 }
                 if (!document.all && !document.getElementById)
                   titulos()

                 if (document.all || document.getElementById)
                   setInterval("titulos()", 50)
/* editar las URL de las fotos*/
                 var fotos = new Array(
                   'https://farm5.staticflickr.com/4140/4901516641_54cb8fa464.jpg',
                   'https://farm5.staticflickr.com/4095/4901523867_8cf72ea2c9.jpg',
                   'https://farm5.staticflickr.com/4080/4901524379_ddb075b4a6.jpg',
                   'https://farm5.staticflickr.com/4122/4901523479_87075b5892.jpg',
                   'https://farm5.staticflickr.com/4079/4902108194_92c9e4779b.jpg',
                   'https://farm5.staticflickr.com/4134/4901521777_738de44c26.jpg',
                   'https://farm5.staticflickr.com/4115/4902106818_5c002f3a9e.jpg',
                   'https://farm5.staticflickr.com/4122/4902105084_ba8e18791f.jpg',
                   'https://farm5.staticflickr.com/4093/4901518767_8da5951139.jpg',
                   'https://farm5.staticflickr.com/4100/4901518503_9289452e04.jpg',
                   'https://farm5.staticflickr.com/4097/4901517647_3519be8c55.jpg',
                   'https://farm5.staticflickr.com/4099/4901517169_e9e0f6d330_z.jpg',
                   'https://farm5.staticflickr.com/4078/4901516373_1a48a88b9f_z.jpg',
                   'https://farm5.staticflickr.com/4141/4902111204_a2b46f6802_z.jpg',
                   'https://farm5.staticflickr.com/4140/4901525617_6e71e62933_z.jpg',
                   'https://farm5.staticflickr.com/4096/4901525331_e6bfc6432e_z.jpg',
                   'https://farm5.staticflickr.com/4081/4902110284_759054622c_z.jpg',
                   'https://farm5.staticflickr.com/4099/4902109994_851a344fd4_z.jpg',
                   'https://farm5.staticflickr.com/4095/4902105688_2a3270fe94_z.jpg',
                   'https://farm5.staticflickr.com/4080/4901516893_4a936aab7b_z.jpg'
                 );
/*La página que esta la foto*/
                 var enlaces = new Array(
                   "https://www.flickr.com/photos/zarigella/4901516641/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901523867/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901524379/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901523479/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4902108194/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901521777/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4902106818/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4902105084/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901518767/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901518503/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901517647/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901517169/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901516373/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4902111204/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901525617/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901525331/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4902110284/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4902109994/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4902105688/in/set-72157624746801108",
                   "https://www.flickr.com/photos/zarigella/4901516893/in/set-72157624746801108"
                 );
/*Los titulos*/
                 var tex = new Array(
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo',
                   'Procesión de Viernes Santo');
                 //-->
            
          
!
999px
Loading ..................

Console