Edit Page
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>]] ('''[[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>]] ('''[[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) |