AnythingSlider playground

Add, remove, adjust any or all options so you can see how it works.

by Mottie

HTML

<link rel="stylesheet" href="http://css-tricks.github.com/AnythingSlider/css/anythingslider.css">
<script src="http://css-tricks.github.com/AnythingSlider/js/jquery.anythingslider.js"></script>
<script src="http://css-tricks.github.com/AnythingSlider/js/jquery.easing.1.2.js"></script>
<script src="http://css-tricks.github.com/AnythingSlider/js/swfobject.js"></script>
<script src="http://css-tricks.github.com/AnythingSlider/js/jquery.anythingslider.fx.js"></script>
<script src="http://css-tricks.github.com/AnythingSlider/js/jquery.anythingslider.video.js"></script>
<!-- Add additional stylesheets here -->
<link rel="stylesheet" href="http://css-tricks.github.com/AnythingSlider/css/theme-metallic.css">
<ul id="slider">
    <li class="map">
        <img src="http://i46.tinypic.com/33dwkkz.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
        <map name="planetmap">
            <area shape="rect" coords="0,0,82,126" href="#" alt="the Sun" title="Sun">
            <area shape="circle" coords="90,58,3" href="#" alt="Mercury" title="Mercury">
            <area shape="circle" coords="124,58,8" href="#" alt="Venus" title="Venus">
        </map>
    </li>
    <li>
        <img src="http://placekitten.com/300/200" alt="" />
    </li>
    <li>
        <img src="http://placehold.it/300x200" alt="" />
    </li>
    <li>
        <img src="http://placebear.com/300/200" alt="" />
    </li>
    <li>
        <img src="http://lorempixel.com/300/200" alt="" />
    </li>
</ul>

CSS

/*** Set Slider dimensions here! Version 1.7+ ***/

/* added #slider li to make panels the same size in case "resizeContents" is false */
 ul#slider, ul#slider li {
    width: 300px;
    height: 200px;
    list-style: none;
}
.map {
    text-align:center;
}
.map img {
    margin: 40px;    
}

JavaScript

// add any scripts that target the map first
$('.map area').click(function(){
    alert("you just clicked on " + $(this).attr('alt'));
});

$('#slider').anythingSlider();