Community Central
Community Central
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 80: Line 80:
 
::::Correct me if I'm wrong, the getElementsByClass function is already in allinone.css. :) --[[User:koisuru|<span style="color:darkviolet">ko</span><span style="color:#bbbbff; font-size: 80%">イsuru</span>]]&nbsp;('''[[User talk:koisuru|<span style="color:royalblue">talk</span>]]''') 17:27, 30 April 2009 (UTC)
 
::::Correct me if I'm wrong, the getElementsByClass function is already in allinone.css. :) --[[User:koisuru|<span style="color:darkviolet">ko</span><span style="color:#bbbbff; font-size: 80%">イsuru</span>]]&nbsp;('''[[User talk:koisuru|<span style="color:royalblue">talk</span>]]''') 17:27, 30 April 2009 (UTC)
 
:::::Right, in [http://images.wikia.com/common/releases_200904.5/skins/common/wikibits.js Wikibits.js] but in my case i copy the function long before it was include on that page and i have not clean up as i have to write that the function is Dependant on functions that are not display on the js page. --{{User:Cizagna/Sig.css|18:01, 30 April 2009 (UTC)}}
 
:::::Right, in [http://images.wikia.com/common/releases_200904.5/skins/common/wikibits.js Wikibits.js] but in my case i copy the function long before it was include on that page and i have not clean up as i have to write that the function is Dependant on functions that are not display on the js page. --{{User:Cizagna/Sig.css|18:01, 30 April 2009 (UTC)}}
 
----
 
 
Provided you make your tables sortable you don't need to do all that is mentioned above -- the functionality is already included in Mediawiki! Simply add the following line to MediaWiki:Common.js:
 
var ts_alternate_row_colors = true;
 
 
Then add the following lines to MediaWiki:Common.css:
 
tr.odd { background: colorhere; }
 
tr.even { background: colorhere; }
 
 
If you want this to fire on a non-sortable class, you'll need to do what was mentioned above. [[User:Surgo|Surgo]] 00:56, February 24, 2010 (UTC)
 
Please note that all contributions to the Community Central are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)

Your changes will be shown immediately once you click the buttons below.

General symbols: ( ) / ? ! ; : ' " * & + # @ } { \ ] [ & ^ ~

Special characters: - ° ± - × ÷ § | ² ¡ ¿ π

Talk pages: ~~~ ~~~~ ~~~~~

Important notes
Back to editing area