Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/users/jogger/ftp/wiki/LocalSettings.php on line 116
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/users/jogger/ftp/wiki/includes/GlobalFunctions.php on line 2618
Warning: session_name(): Session name cannot be changed after headers have already been sent in /home/users/jogger/ftp/wiki/includes/Setup.php on line 580
Deprecated: Optional parameter $prefix declared before required parameter $code is implicitly treated as a required parameter in /home/users/jogger/ftp/wiki/languages/Language.php on line 4199
Deprecated: Creation of dynamic property ApiMain::$mCommit is deprecated in /home/users/jogger/ftp/wiki/includes/api/ApiMain.php on line 201
Deprecated: Return type of ExplodeIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/utils/StringUtils.php on line 576
Deprecated: Return type of ExplodeIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/utils/StringUtils.php on line 590
Deprecated: Return type of ExplodeIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/utils/StringUtils.php on line 583
Deprecated: Return type of ExplodeIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/utils/StringUtils.php on line 609
Deprecated: Return type of ExplodeIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/utils/StringUtils.php on line 558
Deprecated: Creation of dynamic property LoadBalancer::$mWriteIndex is deprecated in /home/users/jogger/ftp/wiki/includes/db/LoadBalancer.php on line 78
Deprecated: Return type of ResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/db/DatabaseUtility.php on line 197
Deprecated: Return type of ResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/db/DatabaseUtility.php on line 215
Deprecated: Return type of ResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/db/DatabaseUtility.php on line 208
Deprecated: Return type of ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/db/DatabaseUtility.php on line 225
Deprecated: Return type of ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/users/jogger/ftp/wiki/includes/db/DatabaseUtility.php on line 186
Deprecated: Creation of dynamic property MessageCache::$mMemc is deprecated in /home/users/jogger/ftp/wiki/includes/cache/MessageCache.php on line 136
Deprecated: Creation of dynamic property Parser::$mPreprocessorClass is deprecated in /home/users/jogger/ftp/wiki/includes/parser/Parser.php on line 237
Deprecated: Creation of dynamic property RequestContext::$recursion is deprecated in /home/users/jogger/ftp/wiki/includes/context/RequestContext.php on line 303
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/users/jogger/ftp/wiki/languages/LanguageConverter.php on line 711
Warning: A skin using autodiscovery mechanism, Chick, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 128] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Warning: A skin using autodiscovery mechanism, Nostalgia, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 128] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Warning: An old copy of the Vector skin was found in your skins/ directory. You should remove it to avoid problems in the future.See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for details. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 120] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Warning: An old copy of the CologneBlue skin was found in your skins/ directory. You should remove it to avoid problems in the future.See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for details. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 120] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Warning: A skin using autodiscovery mechanism, Simple, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 128] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Warning: An old copy of the Modern skin was found in your skins/ directory. You should remove it to avoid problems in the future.See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for details. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 120] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Warning: An old copy of the MonoBook skin was found in your skins/ directory. You should remove it to avoid problems in the future.See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for details. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 120] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Warning: A skin using autodiscovery mechanism, MySkin, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 128] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Warning: A skin using autodiscovery mechanism, Standard, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from SkinFactory::getLegacySkinNames in /home/users/jogger/ftp/wiki/includes/skins/SkinFactory.php at line 128] in /home/users/jogger/ftp/wiki/includes/debug/MWDebug.php on line 302
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /home/users/jogger/ftp/wiki/includes/parser/Preprocessor_DOM.php on line 793
Warning: Trying to access array offset on value of type bool in /home/users/jogger/ftp/wiki/includes/libs/IPSet.php on line 244
Warning: Trying to access array offset on value of type bool in /home/users/jogger/ftp/wiki/includes/libs/IPSet.php on line 247
Warning: Trying to access array offset on value of type bool in /home/users/jogger/ftp/wiki/includes/libs/IPSet.php on line 244
Warning: Trying to access array offset on value of type bool in /home/users/jogger/ftp/wiki/includes/libs/IPSet.php on line 247
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/users/jogger/ftp/wiki/includes/pager/ReverseChronologicalPager.php on line 116
Deprecated: Creation of dynamic property ContribsPager::$contribs is deprecated in /home/users/jogger/ftp/wiki/includes/specials/SpecialContributions.php on line 688
Deprecated: Creation of dynamic property ContribsPager::$tagFilter is deprecated in /home/users/jogger/ftp/wiki/includes/specials/SpecialContributions.php on line 690
Deprecated: Creation of dynamic property ContribsPager::$nsInvert is deprecated in /home/users/jogger/ftp/wiki/includes/specials/SpecialContributions.php on line 691
Deprecated: Creation of dynamic property ContribsPager::$associated is deprecated in /home/users/jogger/ftp/wiki/includes/specials/SpecialContributions.php on line 692
Deprecated: Creation of dynamic property ContribsPager::$deletedOnly is deprecated in /home/users/jogger/ftp/wiki/includes/specials/SpecialContributions.php on line 694
Deprecated: Creation of dynamic property ContribsPager::$topOnly is deprecated in /home/users/jogger/ftp/wiki/includes/specials/SpecialContributions.php on line 695
Deprecated: Creation of dynamic property ContribsPager::$newOnly is deprecated in /home/users/jogger/ftp/wiki/includes/specials/SpecialContributions.php on line 696
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /home/users/jogger/ftp/wiki/includes/Revision.php on line 701
Deprecated: Creation of dynamic property WikitextContentHandler::$mModelName is deprecated in /home/users/jogger/ftp/wiki/includes/content/ContentHandler.php on line 416
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /home/users/jogger/ftp/wiki/includes/content/TextContent.php on line 55
Warning: Cannot modify header information - headers already sent by (output started at /home/users/jogger/ftp/wiki/LocalSettings.php:116) in /home/users/jogger/ftp/wiki/includes/Feed.php on line 233
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /home/users/jogger/ftp/wiki/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/users/jogger/ftp/wiki/LocalSettings.php:116) in /home/users/jogger/ftp/wiki/includes/WebResponse.php on line 37
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /home/users/jogger/ftp/wiki/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/users/jogger/ftp/wiki/LocalSettings.php:116) in /home/users/jogger/ftp/wiki/includes/WebResponse.php on line 37
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /home/users/jogger/ftp/wiki/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/users/jogger/ftp/wiki/LocalSettings.php:116) in /home/users/jogger/ftp/wiki/includes/WebResponse.php on line 37 http://wiki.jogger.pl/api.php?action=feedcontributions&feedformat=atom&user=DoiyJoggerWiki - Wkład użytkownika [pl]2025-07-04T03:41:38ZWkład użytkownikaMediaWiki 1.24.1http://wiki.jogger.pl/index.php?title=Pokaz_Ukryj&diff=1587Pokaz Ukryj2006-03-17T14:09:01Z<p>Doiy: </p>
<hr />
<div>Na początku przyjmijmy iż zmienne <em> lista1 lista2 etc.</em> mogą być definiowane w dowolny sposób, lecz nie mogą się różnić tj. Jeśli w sekcji <b>a href</b> użyjemy <b>lista1</b> to poniżej w sekcji <b> div</b> musi także być <b>lista1</b>. <br />
Przy każdej nowej liście musi być określony nowy znacznik (np. jeśli użyliśmy już lista1, to możemy użyć lista2).<br />
Warto pamiętać iż każdy ze znaczników (lista1, lista2 ect) musi mieć swoje odwołanie w kodzie css.<br />
<br />
W sekcję &lt;HEAD&gt; wklejamy:<br />
<br />
<pre><br />
&lt;script type="text/javascript"&gt;<br />
&lt;!--<br />
function pokazAlboUkryj(co) { <br />
var obiekt = document.getElementById(co); <br />
if (obiekt.style.display == 'block') { <br />
obiekt.style.display = 'none'; <br />
} else { <br />
obiekt.style.display = 'block'; <br />
} <br />
}<br />
--&gt;<br />
&lt;/script&gt;<br />
</pre><br />
W sekcję &lt;BODY&gt; (czyli tam gdzie ma być rozwijana lista) :<br />
<pre><br />
&lt;a href="#lista1" onclick="pokazAlboUkryj('lista1'); return false;"&gt;tekst&lt;/a&gt; <br />
&lt;div id="lista1"&gt;<br />
//tu umieszczamy nasz tekst, który ma się ukazać po kliknięciu//<br />
&lt;/div&gt;<br />
</pre><br />
<b> Zapamiętaj! <br />
Zmienna lista1 w <code>a onclick</code> i identyfikator <code>div</code> muszą być takie same</b><br />
<br />
Jeszcze wystarczy dodać kod w plik stylu (css)<br />
<pre><br />
#lista1, #lista2, #lista3, #lista3, #lista4<br />
{<br />
display: none;<br />
} </pre><br />
<br />
// Identyfikatory lista1, lista2, lista3 itp. są użyte przykładowo.<br />
<br />
<b>Uwaga: W przypadku braku obsługi JavaScript w przeglądarce odwiedzającego ukrywane listy nie będą widoczne.</b></div>Doiy Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /home/users/jogger/ftp/wiki/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/users/jogger/ftp/wiki/LocalSettings.php:116) in /home/users/jogger/ftp/wiki/includes/WebResponse.php on line 37