Java würde noch gehe, aber CSS funktioniert nicht richtig mit dem WebAcapella oder ich bin zu dumm
ja keine Ahnung ich versuche das immer in Englisch zu lernen.
http://www.a-brickwedde.de/17.html
- - - Aktualisiert - - -
So hatte ich es erst programmiert allerdings habe ich es nicht geschafft das automatische sliden gegen klicken umzuprogrammieren.
<style>
#accordion .item {
width: 800px;overflow: hidden;
transition: height ease-in-out 500ms; /* This is the bit that makes the slider...slide */
-o-transition: height ease-in-out 500ms;
-moz-transition: height ease-in-out 500ms;
-webkit-transition: height ease-in-out 500ms;
border: 1px solid #009090; /* This sets the color and width of the border */
border-radius: 5px; /* This sets the roundness of the border corners */
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
height: 50px; /* This is the height of the gray portion of each section */
margin-bottom: 3px;
}
#accordion a {
display: block;
height: 50px;
line-height: 50px;
background: #eeeeee; /* This is for all the old browsers */
background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%); /* This gradient is for firefox */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* This one is for webkit browsers */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* and of course we musn't forget ie */
padding: 2px;
color: #009090; /* This and the next few lines sets the font up for the header on each box */
text-decoration: none;
font-size: 1.5em;
font-family: Verdana, Arial, Tahoma, sans-serif;
}
#accordion p {
height: 1000px; /* This and the next few lines sets the font up for the content of each box */
padding: 5px;
font-family: Verdana, Arial, Tahoma, sans-serif;
font-size: 0.8em;
}
#accordion div:hover {
height: 1400px; /* This is the total height when the scroll unfolds see the 150px in the element above */
}
#accordion div:hover a {
border-bottom: 1px solid #009090;
}
</style>
<div id="accordion">
<div class="item">
Alles anzeigen