K
kaick
Guest
Hallo alle zusammen,
ich versuche gerade mit den Spry Widget´s eine Navigationsleiste zu erstellen. Klappt bisher auch ganz gut.
Leider bin ich absoluter Newbie.
Wie ihr aus dem nachfolgendem Code seht, habe ich es ja schon geschafft, dass beim Starten der Seite die Menü´s geschlossen sind.
Nun möchte ich beim mouseover dass das jeweilige Menü aufklappt.
Ich kann ja nach: <div class="CollapsiblePanelTab" tabindex="0"> den mouseover Befehl einfügen. Nur, welche weiteren Anweisungen folgen dann zum Aufklappen bei mouseover?
Hat jemand eine Idee?
Hier der Code:
Grüße
Ingo
ich versuche gerade mit den Spry Widget´s eine Navigationsleiste zu erstellen. Klappt bisher auch ganz gut.
Leider bin ich absoluter Newbie.
Wie ihr aus dem nachfolgendem Code seht, habe ich es ja schon geschafft, dass beim Starten der Seite die Menü´s geschlossen sind.
Nun möchte ich beim mouseover dass das jeweilige Menü aufklappt.
Ich kann ja nach: <div class="CollapsiblePanelTab" tabindex="0"> den mouseover Befehl einfügen. Nur, welche weiteren Anweisungen folgen dann zum Aufklappen bei mouseover?
Hat jemand eine Idee?
Hier der Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
<link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="CollapsiblePanel1" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Tab1</div>
<div class="CollapsiblePanelContent">
<pre>
Inhalt1
Inhalt2
Inhalt3
Inhalt4
Inhalt5
Inhalt6
Inhalt7
</pre>
</div>
</div>
<div id="CollapsiblePanel2" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Tab2</div>
<div class="CollapsiblePanelContent">
<pre>
Inhalt1
Inhalt2
Inhalt3
Inhalt4
Inhalt5
Inhalt6
Inhalt7
</pre>
</div>
</div>
<div id="CollapsiblePanel3" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Tab3</div>
<div class="CollapsiblePanelContent">
<pre>
Inhalt1
Inhalt2
Inhalt3
Inhalt4
Inhalt5
Inhalt6
Inhalt7
</pre>
</div>
</div>
<div id="CollapsiblePanel4" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Tab4</div>
<div class="CollapsiblePanelContent">
<pre>
Inhalt1
Inhalt2
Inhalt3
Inahlt4
Inhalt5
Inhalt6
Inhalt7
</pre>
</div>
</div>
<div id="CollapsiblePanel5" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Tab5</div>
<div class="CollapsiblePanelContent">
<pre>
Inhalt1
Inhalt2
Inhalt3
Inhalt4
Inhalt5
Inhalt6
Inhalt7
</pre>
</div>
</div>
<div id="CollapsiblePanel6" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Tab6</div>
<div class="CollapsiblePanelContent">Inhalt</div>
</div>
<p> </p>
<p> </p>
<script type="text/javascript">
<!--
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen: false });
var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", {contentIsOpen: false });
var CollapsiblePanel3 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3", {contentIsOpen: false });
var CollapsiblePanel4 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel4", {contentIsOpen: false });
var CollapsiblePanel5 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel5", {contentIsOpen: false });
var CollapsiblePanel6 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel6", {contentIsOpen: false });
var CollapsiblePanel7 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel7", {contentIsOpen: false });
//-->
</script>
</body>
</html>
Grüße
Ingo
Zuletzt bearbeitet: