javascript - Change bg color of carousel on image change -
(sorry english)
i want change slideshow background css javascript forexample when slideshow shows second image.
here page link: http://2013.original-k9.de/index.php/julius-k9-kontakt/valami
and source code:
<div id="mycarousel" class="carousel slide"> <ol class="carousel-indicators" style="list-style: none;"> <li class="active" data-target="#mycarousel" data-slide-to="0"></li> <li data-target="#mycarousel" data-slide-to="1"></li> </ol> <!-- carousel items --> <div class="carousel-inner"> <div class="active item"><img src="images/headers/3_14.jpg" alt="3 14" /> </div> <div class="item"><img src="images/headers/3.jpg" alt="3" /> </div> </div> <!-- carousel nav --><a class="carousel-control left" href="#mycarousel" data- slide="prev">‹</a><a class="carousel-control right" href="#mycarousel" data- slide="next">›</a> </div> <!-- call carousel --> <script type="text/javascript"> // <![cdata[ (function($) { $('.carousel').carousel({}); })(jquery); // ]]> </script>
thanks help!
you can @ old style this:
function setcolor(element, color) { element.style.backgroundcolor = color; }
i hope helps.
Comments
Post a Comment