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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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 id="slider-wrapper">
  <div id="Villalis"></div>

  <body onload="marcha()">
    <div class="atribucion" style="font-family: Times New Roman;text-align: center; background-color: #000000; font-size: large">
      <a href="https://www.panoramio.com" target="_top">
        <img src="https://sites.google.com/site/acemarmar/fondo-trasparente/logo-tos.png?" width="110" height="30"></a>
      <span><sup> Los dueños de las fotos tienen el derecho de autor </sup></span></div>
    <a href="javascript:cambio(1);" class="mas" title="Avanzar una"><img src="https://sites.google.com/site/acemarmar/fondo-trasparente/play.png" width="40" height="60"></a>
    <a href="javascript:cambio(-1);" class="menos" title="Retroceder una"><img src="https://sites.google.com/site/acemarmar/fondo-trasparente/Atras.png" width="40" height="60"></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>
    <div id="slider">
      <a href="javascript:enlazar()">
        <img id="slider" title="Ir a la página" src="https://mw2.google.com/mw-panoramio/photos/medium/9725427.jpg"></a>
      <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: #33FF00
 }
 /* Contenedor general */
 
 #slider-wrapper {
   overflow: hidden;
   position: relative;
   width: 800px;
   max-width: 100%;
   margin: 0 auto;
   padding: 0 10px;
   font-family: arial, sans-serif;
   font-size: 0;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
 }
 /* Contenedor slider */
 
 #slider {
   position: relative;
   width: 100%;
   padding-bottom: 65%;
   overflow: hidden;
   border: 1px solid #333;
   border-radius: 1%/2%;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
 }
 
 #slider > a {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   min-height: 100%;
 }
 /* Ajuste de las imágenes */
 
 #slider img {
   width: 100%;
   min-height: 100%;
   position: relative;
   margin: 0;
   padding: 0;
   border: 0;
 }
 /* Flechas de navegación */
 
 a.mas,
 a.menos {
   position: absolute;
   top: 40%;
   left: 0px;
   z-index: 10;
   text-decoration: none;
   -webkit-transition: all 1000ms ease;
   -moz-transition: all 1000ms ease;
   -ms-transition: all 1000ms ease;
   -o-transition: all 1000ms ease;
   transition: all 1000ms ease;
 }
 
 a.mas {
   margin-left: -50px;
   opacity: 0;
   left: 100%;
 }
 
 #slider-wrapper:hover a.mas {
   opacity: 1;
 }
 
 a.menos {
   left: 0;
   margin-left: 10px;
   opacity: 0;
 }
 
 #slider-wrapper:hover a.menos {
   opacity: 1;
 }
 /*Las Flechas dobles*/
 
 a.fren,
 a.retr {
   position: absolute;
   bottom: 0;
   z-index: 100;
   width: 40px;
   height: 40px;
   opacity: 0;
   line-height: 30px;
   font-size: 50px;
   color: #ffffff;
   text-decoration: none;
   -webkit-transition: all 1000ms ease;
   -moz-transition: all 1000ms ease;
   -ms-transition: all 1000ms ease;
   -o-transition: all 1000ms ease;
   transition: all 1000ms ease;
 }
 
 a.fren {
   left: 93%;
   left: 100%;
   margin-left: -40px;
 }
 
 #slider-wrapper:hover a.fren {
   opacity: 1
 }
 
 a.retr {
   left: 0%;
   margin-left: 10px;
 }
 
 #slider-wrapper:hover a.retr {
   opacity: 1
 }
 
 .atribucion {
   position: absolute;
   opacity: 0;
   bottom: 0;
   width: 97.5%;
   height: 2.3em;
   z-index: 99;
   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;
 }
 
 #slider-wrapper:hover .atribucion {
   opacity: 0.7;
 }
 /*El bloque de titulos y contador*/
 
 #Villalis {
   position: absolute;
   text-align: center;
   line-height: 10px;
   text-shadow: 0 2px 2px black, 0 2px 6px white;
   bottom: 0;
   margin-bottom: 5px;
   width: 100%;
   background: transparent;
   z-index: 98;
   opacity: 1;
 }
 /*El selector de tiempo*/
 
 .opciones {
   position: absolute;
   text-align: center;
   top: 0;
   margin-top: -30px;
   width: 100%;
   z-index: 100;
   -webkit-transition: all 1000ms ease;
   -moz-transition: all 1000ms ease;
   -ms-transition: all 1000ms ease;
   -o-transition: all 1000ms ease;
   transition: all 1000ms ease;
 }
 
 #slider-wrapper:hover .opciones {
   margin-top: 0;
 }
            
          
!
            
               /*NO EDITAR ÉSTA ZONA
    Autor: https://villalisaceliano.blogspot.com.es/p/aplicacion.html  
  Ahora que Panoramio esta a punto de desaparecer y con él todas las presentaciones de diapositivas  insertadas en sitios web. 
  Con éste práctico slider se pueden poner un conjunto de fotos respetando siempre los derechos de autor solamente tendremos que hacer las listas: (las fotos) "9725427.jpg","6582337.jpg","9725585.jpg",....etc, (a las paginas que enlazan) "9725427","6582337","9725585",...etc y (los titulos) "Puente rio Limia","El Campanario","Parque do Toural",...etc. 
  El sistema es diseño adaptable (RVD) y consta de las funciones: inicio automatico y variable en dos direciones. hacia atrás solamente un ciclo; paso manual, */
 //<!--
 var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
 var temporizador = null;
 var contador = null;
 var tiempo = null;

 function marcha() {
   document.images.slider.src = "https://mw2.google.com/mw-panoramio/photos/medium/" + fotos[0];
   cambio(-1);
   fotos.push(0);
   tiempo = parseInt(1000.0 * 4);
   if (isNaN(tiempo) || tiempo <= 0);
   else temporizador = setTimeout("avanzar()", tiempo);
 }

 function frente() {
   avanzar();
 }

 function atras() {
   retroceder();
 }

 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.slider.src = "https://mw2.google.com/mw-panoramio/photos/medium/" + 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.slider.src = "https://mw2.google.com/mw-panoramio/photos/medium/" + fotos[0];
 }

 function enlazar() {
   var nuevaVentana = window.event;
   nuevaVentana = window.open("https://www.panoramio.com/photo/" + 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)
   /*los numeros de las fotos*/
 var fotos = new Array(
   "9725427.jpg", "6582337.jpg", "9725585.jpg", "9929990.jpg", "9953006.jpg",
   "9980313.jpg", "11242928.jpg", "11295122.jpg", "12377448.jpg", "11242909.jpg",
   "11949693.jpg", "11949638.jpg", "12140732.jpg", "11460704.jpg", "12223747.jpg",
   "25414372.jpg", "12973007.jpg", "12140776.jpg", "12636985.jpg", "12636818.jpg", "12170440.jpg");
 /*A la página que deve enlazar*/
 var enlaces = new Array(
   "9725427", "6582337", "9725585", "9929990", "9953006",
   "9980313", "11242928", "11295122", "12377448", "11242909",
   "11949693", "11949638", "12140732", "11460704", "12223747",
   "25414372", "12973007", "12140776", "12636985", "12636818", "12170440"
 );
 /*Los titulos*/
 tex = new Array(
   "Puente rio Limia", "El Campanario", "Parque do Toural", "Puesta de Sol",
   "Piedra Romana", "Santiagomillas", "Campanario Villalis", "Adrados de Ordás",
   "Vivero", "Castillo de Palacios", "Santibañez de Arienza", "Cornombre", "Fasgar",
   "Puente Romano", "Valbueno", "Catarata Villadepan", "Catarata Torrestio",
   "Vegarienza", "El Sil desde el puente las palomas", "La Cueta", "Vegapujin"
 );
 //-->
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console