University of Melbourne home page
 

Striped tables

The table striping function finds all specified tables in a page and adds a class to every second row. The central style sheet applies a background colour to these rows.

How to use the striped tables script

  • The function is part of the core.js file, which is linked from the university template by default.
  • Tables which need to be striped must have a striped class added eg: <table class=”striped”>...</table>
  • The striped class may be combined with the grey class eg: <table class=”grey striped”>...</table>

Functions

uM_stripe.prepare

Usage: uM_stripe.prepare();

Parameters: none

Effect: Stripes all tables with a class of ‘striped’

Returns: nothing

Hat-tip:

Processing:

  • Find all tables in the page with a class of ‘striped’
  • In those tables add an ‘even’ class to every second row
 
templates/javascript/striped_tables.txt · Last modified: 2007/04/18 14:02 by aharris
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki