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.

            
              <body onload="marcha()">
  <div align="center">
    <div id="Slider" align="center">
      <div class="texto" align="center">Circuito Permanente de Velocidad
        <h4>EN LA BAÑEZA</h4>
        <h2>¡¡YA!!</h2></div>
      <a href="javascript:cambio(1);" class="mas" title="Avanza una">&rsaquo;</a>
      <a href="javascript:cambio(-1);" class="menos" title="Retrocede una">&lsaquo;</a>
      <a href="javascript:enlazar()">
        <img id="pantalla" title="Ir a la página" src="https://mw2.google.com/mw-panoramio/photos/medium/122384350.jpg" width="630"></a>
      <p class="atribucion" style="font-family: Times New Roman;text-align: center;margin-top:0px; font-size: large">
        Los dueños de las fotos tienen el derecho de autor</p>
    </div>
  </div>
            
          
!
            
               body {
   background-color: #99FF66
 }
 /*La caja contenedor*/
 #Slider {
   position: relative;
   overflow: hidden;
   width: 628px;
   height: 390px;
   border-radius: 30px;
   border: 7px solid #333;
   background: #FE2E2E;
 }
 /*Las flechas*/
 a.mas,
 a.menos {
   position: absolute;
   top: 50%;
   left: 0px;
   z-index: 100;
   width: 30px;
   height: 40px;
   line-height: 30px;
   font-size: 60px;
   color: #00ff00;
   text-decoration: none;
 }
 
 a.mas {
   left: 100%;
   margin-left: -40px;
   opacity: 0;
 }
 
 #Slider:hover a.mas {
   opacity: 1;
 }
 
 a.menos {
   left: 0;
   margin-left: 0px;
   opacity: 0;
 }
 
 #Slider:hover a.menos {
   opacity: 1;
 }
 /*El bloque de atribucion*/
 .atribucion {
   position: absolute;
   opacity: 0;
   top: 95%;
   width: 640px;
   z-index: 90;
   color: #ffffff;
   background: #000000;
 }
 
 #Slider:hover .atribucion {
   opacity: 1;
 }
 /*Las imagenes*/
 #pantalla {
   position: relative;
   z-index: 90;
   border-radius: 18px;
   margin-top: 5px;
 }
 /*El texto de fondo*/
 .texto {
   position: absolute;
   top: 10%;
   left: 150px;
   z-index: 90;
   font-size: 30px;
   width: 350px;
 }
            
          
!
            
               /*NO EDITAR ÉSTA ZONA
Autor: http://villalisaceliano.blogspot.com.es/ Con éste sencillo script se pueden poner un conjunto de fotos respetando siempre los derechos de autor. El sistema consta avance y retroceso manual */
 var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
 var contador = null;

 function marcha() {
   cambio(-1);
   document.images.pantalla.src = fotos[0];
 }

 function cambio(avance) {
   contador += avance;
   if (contador == fotos.length) contador = fotos.length - 1;
   else
   if (contador < 0) contador = 0;
   document.images.pantalla.src = fotos[contador]
 }

 function enlazar() {
   var nuevaVentana = window.event;
   nuevaVentana = window.open(enlaces[contador])
 }
/*editar las URL de las fotos*/
 var fotos = new Array(
 'https://mw2.google.com/mw-panoramio/photos/medium/122384350.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384380.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384387.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384386.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384385.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384381.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384378.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384377.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384375.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384374.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384372.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384371.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384367.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384366.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384363.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384362.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384358.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384357.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384352.jpg',
 'https://mw2.google.com/mw-panoramio/photos/medium/122384345.jpg',
  '');
/*La página que esta la foto*/
 var enlaces = new Array(
 'https://www.panoramio.com/photo/122384350',
 'https://www.panoramio.com/photo/122384380',
 'https://www.panoramio.com/photo/122384387',
 'https://www.panoramio.com/photo/122384386', 
 'https://www.panoramio.com/photo/122384385',
 'https://www.panoramio.com/photo/122384381',
 'https://www.panoramio.com/photo/122384378',
 'https://www.panoramio.com/photo/122384377',
 'https://www.panoramio.com/photo/122384375',
 'https://www.panoramio.com/photo/122384374',
 'https://www.panoramio.com/photo/122384372',
 'https://www.panoramio.com/photo/122384371',
 'https://www.panoramio.com/photo/122384367',
 'https://www.panoramio.com/photo/122384366', 
 'https://www.panoramio.com/photo/122384363',
 'https://www.panoramio.com/photo/122384362',
 'https://www.panoramio.com/photo/122384358',
 'https://www.panoramio.com/photo/122384357',
 'https://www.panoramio.com/photo/122384352',
 'https://www.panoramio.com/photo/122384345',
 'https://www.panoramio.com/user/1206324/tags/Motos');
            
          
!
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