CS4Neuling, wenig blicke
Hi, ich hab da eine Frage, vielleicht kann mir da einer von euch weiterhelfen.
ich habe auf meiner fan page
*Hartmut Engler Fans Starteite * Vom Fan für Fans*
eine SpryTabbedPanels Navigation, die läuft auch!
Was mich stört ist das egal auf welchem Tab ich zuletzt war der browser sobald die Seite geöffnet ist oben in der Navigation auf den ersten Tab zurückspringt und nicht in dem tab bleibt den ich ausgewählt habe!
Ich dachte da wäre vielleicht irgendwo ein (focus) oder so drauf, kann aber nichts so finden.
Das htmlS dazu sieht so aus.
*****
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">Biografie</li>
<li class="TabbedPanelsTab" tabindex="1">Discografie</li>
<li class="TabbedPanelsTab" tabindex="2">Presse</li>
<li class="TabbedPanelsTab" tabindex="3">Fotos</li>
<li class="TabbedPanelsTab" tabindex="4">Kreatives</li>
<li class="TabbedPanelsTab" tabindex="5">Just a singer</li>
<li class="TabbedPanelsTab" tabindex="6">Termine</li>
<li class="TabbedPanelsTab" tabindex="7">Gäste</li>
<li class="TabbedPanelsTab" tabindex="8">Links</li>
<li class="TabbedPanelsTab" tabindex="9">Archive</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent"><a href="biobildtexthtt.html">Hartmuts Biografie in Bild und Text</a> | <a href="justpur.html">Biografie PUR in Bild und Text</a> </div>
<div class="TabbedPanelsContent"><a href="singles.html">Singles</a> | <a href="cds.html">Cds</a> | <a href="dvds.html">DVDs</a></div>
<div class="TabbedPanelsContent"><a href="presse.html">Presse</a> | <a href="internetberichte.html">Internet</a> | <a href="fansberichten.html">Fans berichten </a></div>
<div class="TabbedPanelsContent"><a href="pictures.html">Pictures</a> | <a href="livepics01.html">Live</a> | <a href="autogramme.html">Autogramme </a> | <a href="funny.html">Funny </a> | <a href="fanspics01.html">Fans </a> | <a href="bachstagepics.html">Bachstage </a> | <a href="tvpics.html">TV </a> | <a href="privat.html">Privat </a> | <a href="promo.html">Promo </a></div>
<div class="TabbedPanelsContent"><a href="desktopmotive.html">Desktop Motive </a> | <a href="Hartmut_Engler_kalender_2009.html">Desktop Kalender 09</a> |<a href="Hartmut_Engler_kalender_2009.html">Desktop Kalender 10</a> |<a href="Hartmut_Engler_kalender_2011.html">Desktop Kalender 11</a> | <a href="ecards.html">E-Cards</a></div>
<div class="TabbedPanelsContent"><a href="hartmut-engler.html">Solo</a> | <a href="hartmutsolo.html">Das Projekt</a> | <a href="texte.html">Texte </a> | <a href="diary.html">Was, wann, wo? </a> | <a href="fanstalk.html">Fans berichten </a> </div>
<div class="TabbedPanelsContent"><a href="purenews.html">PUR News / </a> | <a href="Hartmut_Engler_tv_termine_2011.html">TV-2011</a> | <a href="Hartmut_Engler_tour_termine_2011.html">Tourdaten 2011</a></div>
<div class="TabbedPanelsContent"><a href="gaestebuch.html">Gästebuch</a> | <a href="hartmutfrinds.html">Musikalische Gäste</a> | <a href="hartmutfilme.html">Film Gastspiele</a></div>
<div class="TabbedPanelsContent"><a href="links.html">Links</a></div>
<div class="TabbedPanelsContent"><a href="hartmut_engler_archiv2004.html">Archiv 2004</a> | <a href="hartmut_engler_archiv2005.html">Archiv 2005</a> | <a href="hartmut_engler_archiv2006.html">Archiv 2006</a> | <a href="hartmut_engler_archiv2007.html">Archiv 2007 </a> | <a href="hartmut_engler_archiv2009.html">Archiv 2009 </a> | <a href="hartmut_engler_archiv2010.html">Archiv 2010 </a></div>
</div>
</div>
******
das css
.TabbedPanels {
overflow: hidden;
width: 75%;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 0;
}
/* This is the selector for the TabGroup. The TabGroup container houses
* all of the tab buttons for each tabbed panel in the widget. This container
* does not contribute anything visually to the look of the widget for our
* default style.
*
* The name of the class ("TabbedPanelsTabGroup") used in this selector is not
* necessary to make the widget function. You can use any class name you
* want to style the TabGroup container.
*/
.TabbedPanelsTabGroup {
margin: 0px;
padding: 0px;
}
/* This is the selector for the TabbedPanelsTab. This container houses
* the title for the panel. This is also the tab "button" that the user clicks
* on to activate the corresponding content panel so that it appears on top
* of the other tabbed panels contained in the widget.
*
* For our default style, each tab is positioned relatively 1 pixel down from
* where it wold normally render. This allows each tab to overlap the content
* panel that renders below it. Each tab is rendered with a 1 pixel bottom
* border that has a color that matches the top border of the current content
* panel. This gives the appearance that the tab is being drawn behind the
* content panel.
*
* The name of the class ("TabbedPanelsTab") used in this selector is not
* necessary to make the widget function. You can use any class name you want
* to style this tab container.
*/
.TabbedPanelsTab {
position: relative;
top: 1px;
float: left;
background-color: #DADADA;
list-style: none;
border-left: solid 1px #CCC;
border-bottom: solid 1px #999;
border-top: solid 1px #999;
border-right: solid 1px #999;
-moz-user-select: none;
-khtml-user-select: none;
cursor: pointer;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
font-weight: bold;
margin-top: 0px;
margin-right: 1px;
margin-bottom: 0px;
margin-left: 0px;
padding-top: 4px;
padding-right: 7px;
padding-bottom: 4px;
padding-left: 7px;
}
/* This selector is an example of how to change the appearnce of a tab button
* container as the mouse enters it. The class "TabbedPanelsTabHover" is
* programatically added and removed from the tab element as the mouse enters
* and exits the container.
*/
.TabbedPanelsTabHover {
background-color: #CCC;
}
/* This selector is an example of how to change the appearance of a tab button
* container after the user has clicked on it to activate a content panel.
* The class "TabbedPanelsTabSelected" is programatically added and removed
* from the tab element as the user clicks on the tab button containers in
* the widget.
*
* As mentioned above, for our default style, tab buttons are positioned
* 1 pixel down from where it would normally render. When the tab button is
* selected, we change its bottom border to match the background color of the
* content panel so that it looks like the tab is part of the content panel.
*/
.TabbedPanelsTabSelected {
background-color: #F6F6F6;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #999;
}
/* This selector is an example of how to make a link inside of a tab button
* look like normal text. Users may want to use links inside of a tab button
* so that when it gets focus, the text *inside* the tab button gets a focus
* ring around it, instead of the focus ring around the entire tab.
*/
.TabbedPanelsTab a {
color: black;
text-decoration: none;
}
/* This is the selector for the ContentGroup. The ContentGroup container houses
* all of the content panels for each tabbed panel in the widget. For our
* default style, this container provides the background color and borders that
* surround the content.
*
* The name of the class ("TabbedPanelsContentGroup") used in this selector is
* not necessary to make the widget function. You can use any class name you
* want to style the ContentGroup container.
*/
.TabbedPanelsContentGroup {
text-align:left;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
border-top: solid 1px #999;
border-right: solid 1px #999;
background-color: #F6F6F6;
font-weight: bold;
clear: both;
}
/* This is the selector for the Content panel. The Content panel holds the
* content for a single tabbed panel. For our default style, this container
* provides some padding, so that the content is not pushed up against the
* widget borders.
*
* The name of the class ("TabbedPanelsContent") used in this selector is
* not necessary to make the widget function. You can use any class name you
* want to style the Content container.
*/
.TabbedPanelsContent {
text-align:left;
overflow: hidden;
padding: 4px;
}
/* This selector is an example of how to change the appearnce of the currently
* active container panel. The class "TabbedPanelsContentVisible" is
* programatically added and removed from the content element as the panel
* is activated/deactivated.
*/
.TabbedPanelsContentVisible {
}
/* Vertical Tabbed Panels
*
* The following rules override some of the default rules above so that the
* TabbedPanels widget renders with its tab buttons along the left side of
* the currently active content panel.
*
* With the rules defined below, the only change that will have to be made
* to switch a horizontal tabbed panels widget to a vertical tabbed panels
* widget, is to use the "VTabbedPanels" class on the top-level widget
* container element, instead of "TabbedPanels".
*/
.VTabbedPanels {
overflow: hidden;
zoom: 1;
}
/* This selector floats the TabGroup so that the tab buttons it contains
* render to the left of the active content panel. A border is drawn around
* the group container to make it look like a list container.
*/
.VTabbedPanels .TabbedPanelsTabGroup {
float: left;
width: 10em;
height: 20em;
background-color: #F6F6F6;
position: relative;
border-top: solid 1px #999;
border-right: solid 1px #999;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
}
/* This selector disables the float property that is placed on each tab button
* by the default TabbedPanelsTab selector rule above. It also draws a bottom
* border for the tab. The tab button will get its left and right border from
* the TabGroup, and its top border from the TabGroup or tab button above it.
*/
.VTabbedPanels .TabbedPanelsTab {
float: none;
margin: 0px;
border-top: none;
border-left: none;
border-right: none;
}
/* This selector disables the float property that is placed on each tab button
* by the default TabbedPanelsTab selector rule above. It also draws a bottom
* border for the tab. The tab button will get its left and right border from
* the TabGroup, and its top border from the TabGroup or tab button above it.
*/
.VTabbedPanels .TabbedPanelsTabSelected {
background-color: #F6F6F6;
border-bottom: solid 1px #999;
}
/* This selector floats the content panels for the widget so that they
* render to the right of the tabbed buttons.
*/
.VTabbedPanels .TabbedPanelsContentGroup {
clear: none;
float: left;
padding: 0px;
width: 30em;
height: 20em;
}
/* Styles for Printing */
@media print {
.TabbedPanels {
overflow: visible !important;
}
.TabbedPanelsContentGroup {
display: block !important;
overflow: visible !important;
height: auto !important;
}
.TabbedPanelsContent {
overflow: visible !important;
display: block !important;
clear:both !important;
}
.TabbedPanelsTab {
overflow: visible !important;
display: block !important;
clear:both !important;
}
}
********
Oh je viel zu lesen ;-)
Sorry aber weiß da einer wa szu.
Ausserdem kannich wirklich bedenkenlos alles graue (Kommentare) entfernen? Das würde das css deutlich verkürzen ;-).
Danke euch
Liebe Grüße Sarah
ich habe auf meiner fan page
*Hartmut Engler Fans Starteite * Vom Fan für Fans*
eine SpryTabbedPanels Navigation, die läuft auch!
Was mich stört ist das egal auf welchem Tab ich zuletzt war der browser sobald die Seite geöffnet ist oben in der Navigation auf den ersten Tab zurückspringt und nicht in dem tab bleibt den ich ausgewählt habe!
Ich dachte da wäre vielleicht irgendwo ein (focus) oder so drauf, kann aber nichts so finden.
Das htmlS dazu sieht so aus.
*****
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">Biografie</li>
<li class="TabbedPanelsTab" tabindex="1">Discografie</li>
<li class="TabbedPanelsTab" tabindex="2">Presse</li>
<li class="TabbedPanelsTab" tabindex="3">Fotos</li>
<li class="TabbedPanelsTab" tabindex="4">Kreatives</li>
<li class="TabbedPanelsTab" tabindex="5">Just a singer</li>
<li class="TabbedPanelsTab" tabindex="6">Termine</li>
<li class="TabbedPanelsTab" tabindex="7">Gäste</li>
<li class="TabbedPanelsTab" tabindex="8">Links</li>
<li class="TabbedPanelsTab" tabindex="9">Archive</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent"><a href="biobildtexthtt.html">Hartmuts Biografie in Bild und Text</a> | <a href="justpur.html">Biografie PUR in Bild und Text</a> </div>
<div class="TabbedPanelsContent"><a href="singles.html">Singles</a> | <a href="cds.html">Cds</a> | <a href="dvds.html">DVDs</a></div>
<div class="TabbedPanelsContent"><a href="presse.html">Presse</a> | <a href="internetberichte.html">Internet</a> | <a href="fansberichten.html">Fans berichten </a></div>
<div class="TabbedPanelsContent"><a href="pictures.html">Pictures</a> | <a href="livepics01.html">Live</a> | <a href="autogramme.html">Autogramme </a> | <a href="funny.html">Funny </a> | <a href="fanspics01.html">Fans </a> | <a href="bachstagepics.html">Bachstage </a> | <a href="tvpics.html">TV </a> | <a href="privat.html">Privat </a> | <a href="promo.html">Promo </a></div>
<div class="TabbedPanelsContent"><a href="desktopmotive.html">Desktop Motive </a> | <a href="Hartmut_Engler_kalender_2009.html">Desktop Kalender 09</a> |<a href="Hartmut_Engler_kalender_2009.html">Desktop Kalender 10</a> |<a href="Hartmut_Engler_kalender_2011.html">Desktop Kalender 11</a> | <a href="ecards.html">E-Cards</a></div>
<div class="TabbedPanelsContent"><a href="hartmut-engler.html">Solo</a> | <a href="hartmutsolo.html">Das Projekt</a> | <a href="texte.html">Texte </a> | <a href="diary.html">Was, wann, wo? </a> | <a href="fanstalk.html">Fans berichten </a> </div>
<div class="TabbedPanelsContent"><a href="purenews.html">PUR News / </a> | <a href="Hartmut_Engler_tv_termine_2011.html">TV-2011</a> | <a href="Hartmut_Engler_tour_termine_2011.html">Tourdaten 2011</a></div>
<div class="TabbedPanelsContent"><a href="gaestebuch.html">Gästebuch</a> | <a href="hartmutfrinds.html">Musikalische Gäste</a> | <a href="hartmutfilme.html">Film Gastspiele</a></div>
<div class="TabbedPanelsContent"><a href="links.html">Links</a></div>
<div class="TabbedPanelsContent"><a href="hartmut_engler_archiv2004.html">Archiv 2004</a> | <a href="hartmut_engler_archiv2005.html">Archiv 2005</a> | <a href="hartmut_engler_archiv2006.html">Archiv 2006</a> | <a href="hartmut_engler_archiv2007.html">Archiv 2007 </a> | <a href="hartmut_engler_archiv2009.html">Archiv 2009 </a> | <a href="hartmut_engler_archiv2010.html">Archiv 2010 </a></div>
</div>
</div>
******
das css
.TabbedPanels {
overflow: hidden;
width: 75%;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 0;
}
/* This is the selector for the TabGroup. The TabGroup container houses
* all of the tab buttons for each tabbed panel in the widget. This container
* does not contribute anything visually to the look of the widget for our
* default style.
*
* The name of the class ("TabbedPanelsTabGroup") used in this selector is not
* necessary to make the widget function. You can use any class name you
* want to style the TabGroup container.
*/
.TabbedPanelsTabGroup {
margin: 0px;
padding: 0px;
}
/* This is the selector for the TabbedPanelsTab. This container houses
* the title for the panel. This is also the tab "button" that the user clicks
* on to activate the corresponding content panel so that it appears on top
* of the other tabbed panels contained in the widget.
*
* For our default style, each tab is positioned relatively 1 pixel down from
* where it wold normally render. This allows each tab to overlap the content
* panel that renders below it. Each tab is rendered with a 1 pixel bottom
* border that has a color that matches the top border of the current content
* panel. This gives the appearance that the tab is being drawn behind the
* content panel.
*
* The name of the class ("TabbedPanelsTab") used in this selector is not
* necessary to make the widget function. You can use any class name you want
* to style this tab container.
*/
.TabbedPanelsTab {
position: relative;
top: 1px;
float: left;
background-color: #DADADA;
list-style: none;
border-left: solid 1px #CCC;
border-bottom: solid 1px #999;
border-top: solid 1px #999;
border-right: solid 1px #999;
-moz-user-select: none;
-khtml-user-select: none;
cursor: pointer;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
font-weight: bold;
margin-top: 0px;
margin-right: 1px;
margin-bottom: 0px;
margin-left: 0px;
padding-top: 4px;
padding-right: 7px;
padding-bottom: 4px;
padding-left: 7px;
}
/* This selector is an example of how to change the appearnce of a tab button
* container as the mouse enters it. The class "TabbedPanelsTabHover" is
* programatically added and removed from the tab element as the mouse enters
* and exits the container.
*/
.TabbedPanelsTabHover {
background-color: #CCC;
}
/* This selector is an example of how to change the appearance of a tab button
* container after the user has clicked on it to activate a content panel.
* The class "TabbedPanelsTabSelected" is programatically added and removed
* from the tab element as the user clicks on the tab button containers in
* the widget.
*
* As mentioned above, for our default style, tab buttons are positioned
* 1 pixel down from where it would normally render. When the tab button is
* selected, we change its bottom border to match the background color of the
* content panel so that it looks like the tab is part of the content panel.
*/
.TabbedPanelsTabSelected {
background-color: #F6F6F6;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #999;
}
/* This selector is an example of how to make a link inside of a tab button
* look like normal text. Users may want to use links inside of a tab button
* so that when it gets focus, the text *inside* the tab button gets a focus
* ring around it, instead of the focus ring around the entire tab.
*/
.TabbedPanelsTab a {
color: black;
text-decoration: none;
}
/* This is the selector for the ContentGroup. The ContentGroup container houses
* all of the content panels for each tabbed panel in the widget. For our
* default style, this container provides the background color and borders that
* surround the content.
*
* The name of the class ("TabbedPanelsContentGroup") used in this selector is
* not necessary to make the widget function. You can use any class name you
* want to style the ContentGroup container.
*/
.TabbedPanelsContentGroup {
text-align:left;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
border-top: solid 1px #999;
border-right: solid 1px #999;
background-color: #F6F6F6;
font-weight: bold;
clear: both;
}
/* This is the selector for the Content panel. The Content panel holds the
* content for a single tabbed panel. For our default style, this container
* provides some padding, so that the content is not pushed up against the
* widget borders.
*
* The name of the class ("TabbedPanelsContent") used in this selector is
* not necessary to make the widget function. You can use any class name you
* want to style the Content container.
*/
.TabbedPanelsContent {
text-align:left;
overflow: hidden;
padding: 4px;
}
/* This selector is an example of how to change the appearnce of the currently
* active container panel. The class "TabbedPanelsContentVisible" is
* programatically added and removed from the content element as the panel
* is activated/deactivated.
*/
.TabbedPanelsContentVisible {
}
/* Vertical Tabbed Panels
*
* The following rules override some of the default rules above so that the
* TabbedPanels widget renders with its tab buttons along the left side of
* the currently active content panel.
*
* With the rules defined below, the only change that will have to be made
* to switch a horizontal tabbed panels widget to a vertical tabbed panels
* widget, is to use the "VTabbedPanels" class on the top-level widget
* container element, instead of "TabbedPanels".
*/
.VTabbedPanels {
overflow: hidden;
zoom: 1;
}
/* This selector floats the TabGroup so that the tab buttons it contains
* render to the left of the active content panel. A border is drawn around
* the group container to make it look like a list container.
*/
.VTabbedPanels .TabbedPanelsTabGroup {
float: left;
width: 10em;
height: 20em;
background-color: #F6F6F6;
position: relative;
border-top: solid 1px #999;
border-right: solid 1px #999;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
}
/* This selector disables the float property that is placed on each tab button
* by the default TabbedPanelsTab selector rule above. It also draws a bottom
* border for the tab. The tab button will get its left and right border from
* the TabGroup, and its top border from the TabGroup or tab button above it.
*/
.VTabbedPanels .TabbedPanelsTab {
float: none;
margin: 0px;
border-top: none;
border-left: none;
border-right: none;
}
/* This selector disables the float property that is placed on each tab button
* by the default TabbedPanelsTab selector rule above. It also draws a bottom
* border for the tab. The tab button will get its left and right border from
* the TabGroup, and its top border from the TabGroup or tab button above it.
*/
.VTabbedPanels .TabbedPanelsTabSelected {
background-color: #F6F6F6;
border-bottom: solid 1px #999;
}
/* This selector floats the content panels for the widget so that they
* render to the right of the tabbed buttons.
*/
.VTabbedPanels .TabbedPanelsContentGroup {
clear: none;
float: left;
padding: 0px;
width: 30em;
height: 20em;
}
/* Styles for Printing */
@media print {
.TabbedPanels {
overflow: visible !important;
}
.TabbedPanelsContentGroup {
display: block !important;
overflow: visible !important;
height: auto !important;
}
.TabbedPanelsContent {
overflow: visible !important;
display: block !important;
clear:both !important;
}
.TabbedPanelsTab {
overflow: visible !important;
display: block !important;
clear:both !important;
}
}
********
Oh je viel zu lesen ;-)
Sorry aber weiß da einer wa szu.
Ausserdem kannich wirklich bedenkenlos alles graue (Kommentare) entfernen? Das würde das css deutlich verkürzen ;-).
Danke euch
Liebe Grüße Sarah