You're missing like all the CSS code for the divs (German hiding thing), but
it will work easier for what you want,
now to hide a the link hide/show link globally (this means every page using
this system will disappear their hide/show link
.NavToggle {display:none;}
should do the trick on hidding "all" the SHOW and HIDE links
and if you put the proper class eg <div class="NavFrame test">
Then the user adds in his css
.test .NavToggle {display:inline;}
and from my limited javascript understanding modifying this lines you can
change the display from Hide/show to the ones you want.
var NavigationBarHide = '[' + collapseCaption + ']';
var NavigationBarShow = '[' + expandCaption + ']';
Ciz
2008/2/3 Chris Stafford <[EMAIL PROTECTED]>:
> here's what i want to do. take the working show/hide div code here
> http://egamia.wikia.com/wiki/MediaWiki:Common.js
> (working example can be seen
> http://egamia.wikia.com/wiki/User:Uberfuzzy/testpage)
>
> and modify it to instead change the display of a div with specific known
> id on the page that has already been disp:none'd by global css
>
> ---
> reasons: quite of number of the images at egamia are of "questionable"
> material based on your age/country. i want to try to gather them up into
> specific categories rather then being mixed in with all the other content.
> using css in common.css and the pageid, i'll set #mw-category-media(the
> media section of a category) with display:none, and only after the user
> manually (and knowingly) clicks "show me, i'm of age") will the media
> section be shown
>
> ---
> i could tear that code apart, figure out how it works together, and modify
> it to do what i need to, but that would take time. i know atleast a few of
> you that read this list are already guru's with this MW/JS onhook stuff.
>
>
> -uberfuzzy
> _______________________________________________
> Wikia-tech-l mailing list
> [email protected]
> http://lists.wikia.com/mailman/listinfo/wikia-tech-l
>
>
_______________________________________________
Wikia-tech-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/wikia-tech-l