Das habe ich schon probiert. Das größte Problem für mich ist das Erzeugen/Ändern der Grafik, wenn die Box offen bzw. geschlossen ist.
Edit: Was ich bis jetzt habe sieht so aus:
HTML/JS
|
HTML Code
|
1
2
3
4
5
6
7
8
9
|
<div class="title_pane">
<%= link_to_function "Klick hier!", "Effect.toggle($('paneBody'), 'blind', {duration: 0.3})",
:class => 'title_pane_head' %>
<div class="title_pane_body" id="paneBody">
Inhalt <br />
<br />
Noch mehr Inhalt...
</div>
</div>
|
CSS
|
Cascading Style Sheets
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
div.title_pane {
width: 500px;
height: 300px;
}
a.title_pane_head {
background-color: #4c6393;
color: white;
padding: 0.5em;
font-weight: bold;
display: block;
text-decoration: none;
}
a.title_pane_head:hover {
text-decoration: underline;
}
div.title_pane_body {
color: #4c6393;
padding: 0.5em;
border: 1px solid #4c6393;
}
|
aussehen tut das bisher so:
http://testbereich.mdohnke.de/
Was jetzt noch fehlt ist eine kleine Grafik vor dem Titellink, die sich je nach Status der Box ändert (offen/geschlossen). Das bekomme ich nicht hin...
Kann jemand helfen?