Bueno, resulta que tengo el sigueinte codigo
ejemplo2.html
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento sin tÃ*tulo</title> <link rel="stylesheet" type="text/css" href="http://dev.victorstanciu.ro/prototype/carousel/carousel.css" /> <script type="text/javascript" src="http://dev.victorstanciu.ro/prototype/carousel/protoculous.js"></script> <script type="text/javascript" src="http://dev.victorstanciu.ro/prototype/carousel/carousel.js"></script> <script type="text/javascript" src="http://dev.victorstanciu.ro/prototype/carousel/swfobject.js"></script> </head> <body> <div class="tab" id="tab-2"> <p style="padding-bottom: 0;">Este ejemplo ilustra dos caracterÃ*sticas, que puede ser activado usando las opciones disponibles:</p> <ul> <li>1. Puede mostrar más de una diapositiva a la vez</li> <li>2. uede elegir otro estilo de transición entre diapositivas, además de la clásica</li> </ul> <div class="carousel" id="example-2"> <a href="javascript:" class="carousel-control next" rel="next">›</a> <a href="javascript:" class="carousel-control prev" rel="prev">‹</a> <div class="middle"> <div class="inner" style="width: 1280px;"> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/1.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/2.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/3.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/4.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/5.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/6.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/7.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/8.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/9.png" alt="" /> <img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/10.png" alt="" /> </div> </div> </div> <script type="text/javascript"> new Carousel($('example-2').down('.middle'), $('example-2').down('.inner').select('img'), $('example-2').select('a'), { duration: 0.5, transition: 'spring', visibleSlides: 4, circular: false }); </script> </div> </body> </html>
Código:
Bueno, me gutaria saber, como hacer para qeu el codigo que esta en ejemplo2.html osea, la parte que en salen las imagenes osea* {
margin: 0;
padding: 0;
outline: none;
line-height: 14px;
}
body {
background-color: #FFF;
font-size: 12px;
font-family: Verdana, Arial, Sans;
}
h1 {
font-size: 16px;
font-weight: bold;
padding-bottom: 10px;
}
h2 {
font-size: 12px;
font-style: italic;
}
h3 {
font-size: 12px;
}
a {
color: #0000a8;
}
ul {
list-style-type: none;
margin-top: 10px;
}
ul li {
display: inline;
}
#main {
width: 600px;
padding: 15px 15px 0 15px;
margin: 50px auto 0 auto;
background-color: #E8F0FF;
border: 1px solid #808ea8;
}
#container {
border: 1px solid #808ea8;
}
img {
border: 0;
}
a img {
display: block;
}
ul.tabs {
margin: 20px -15px 0 -15px;
border-bottom: 1px solid #808ea8;
height: 26px;
padding: 0 15px;
}
ul.tabs li a {
float: left;
height: 25px;
line-height: 25px;
padding: 0 10px;
border: 1px solid #808ea8;
margin-right: 3px;
margin-bottom: -1px;
}
ul.tabs li a.carousel-selected {
background-color: #c2d7ff;
border-bottom-color: #c2d7ff;
}
div.tabs {
margin: 0 -15px 0 -15px;
background-color: #c2d7ff;
height: 310px;
overflow: hidden;
}
div.middle-tabs {
width: 650px;
overflow: auto;
}
div.inner-tabs {
width: 1910px; /* 630*n + 20 */
height: 330px;
}
div.tab {
float: left;
width: 600px;
height: 280px;
padding: 15px;
}
div.tab p {
padding-bottom: 7px;
line-height: 16px;
}
.carousel {
overflow: hidden;
}
.carousel .inner {
}
.carousel .middle {
overflow: auto;
}
/* Example 1 ---------------------------------- */
#example-1 {
background-color: #E8F0FF;
border: 1px solid #AAC8FF;
width: 598px;
height: 223px;
}
#example-1 .middle {
height: 240px;
}
#example-1 .slide {
width: 578px;
/*height: 200px;*/
padding: 10px;
float: left;
}
#tab-1 .controls {
background-color: #AAC8FF;
border: 1px solid #AAC8FF;
border-top: 0;
border-bottom: 0;
padding: 7px 9px;
margin-top: 5px;
}
#tab-1 .controls a {
font-weight: bold;
}
.table-example-1 {
margin-top: 10px;
background-color: #AAC8FF;
width: 100%;
}
.table-example-1 tr th,
.table-example-1 tr td {
padding: 5px;
}
.table-example-1 tr td {
background-color: #FFF;
}
/* Example 2 ---------------------------------- */
#example-2 {
background-color: #E8F0FF;
border: 1px solid #AAC8FF;
width: 598px;
height: 128px;
margin-top: 15px;
}
#example-2 .middle {
float: left;
width: 512px;
height: 150px;
}
#example-2 .inner img {
float: left;
}
#example-2 a {
float: left;
width: 41px;
height: 128px;
background-color: #AAC8FF;
text-align: center;
text-decoration: none;
font-size: 36px;
line-height: 120px;
}
#example-2 a.next {
float: right;
}
#example-2 a:hover {
color: #000;
}
#tab-2 ul li {
display: block;
padding-bottom: 5px;
}
/* Example 3 ---------------------------------- */
#example-3 {
background-color: #E8F0FF;
border: 1px solid #AAC8FF;
width: 600px;
height: 223px;
}
#example-3 .middle {
height: 240px;
}
#example-3 .slide {
width: 578px;
height: 200px;
padding: 10px;
float: left;
}
#tab-3 .controls {
background-color: #AAC8FF;
border: 1px solid #AAC8FF;
border-top: 0;
border-bottom: 0;
padding: 7px 9px;
margin-top: 5px;
}
#tab-3 .controls a {
font-weight: bold;
}
.table-example-3 {
margin-top: 10px;
background-color: #AAC8FF;
width: 100%;
}
.table-example-3 tr th,
.table-example-3 tr td {
padding: 5px;
}
.table-example-3 tr td {
background-color: #FFF;
}
<img src="http://dev.victorstanciu.ro/prototype/carousel/images/olympic/1.png" alt="" />
agregarle una link tipo <a> sin que este tome las ordenes del css que son estas:
Código:
osea que quiero agregarle un link a esas imagenes, que son un carrusel, sin que este se desrme, para eso tendri que hacer un link al img sin que tome las ordenes. . . .#example-2 a {
float: left;
width: 41px;
height: 128px;
background-color: #AAC8FF;
text-align: center;
text-decoration: none;
font-size: 36px;
line-height: 120px;
}
#example-2 a.next {
float: right;
}
#example-2 a:hover {
color: #000;
}
Nota: Si lo pruebas en tu pc te funcionara el carrusel, ya que los codigos del js hacen referencia a una pagina online.
Bueo, espero que me puedan ayudar, practicamente lo que necesito es poder linkear las magenes sin que este tome las ordenes dadas en css y se desarme.

