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>
      <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>
               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.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() {
   document.images.pantalla.src = fotos[0];

 function cambio(avance) {
   contador += avance;
   if (contador == fotos.length) contador = fotos.length - 1;
   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(
/*La página que esta la foto*/
 var enlaces = new Array(

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.


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