function renderAllData() { renderIndices(); } ///// Data Declarations ///// function security(name, symbol, value, movement, percentMovement, volume) { // Represents a security object this.name = name; this.symbol = symbol; this.value = value; this.movement = movement; this.percentMovement = percentMovement; this.volume = volume; } var indices = new Array(); ///// Data values ///// indices[0] = new security('Nikkei','US.^NI225','9015.590','98.070','1.10','0',''); indices[1] = new security('FTSE','US.FTSE','5890.260','-1.940','-0.03','0',''); indices[2] = new security('DJIA','US.^DJI','12878.200','33.070','0.26','116150800',''); indices[3] = new security('NASDAQ','US.^COMP','2904.080','2.090','0.07','0',''); indices[4] = new security('H.SENG','US.^HSI','21018.460','319.270','1.54','0',''); indices[5] = new security('S&P500','US.^SPX','1347.050','2.720','0.20','0',''); indices[6] = new security('ALLORDS','ASX.XAO','4363.700','0.000','0.00','0',''); ///// Render functions ///// // (you can use your own if you like) function startTable(caption, columns) { document.write('
';
else if (s.movement < 0)
img = '
';
else
img = '
';
if ((i % 2) == 0)
clStr = 'wlOdd';
else
clStr = 'wlEven';
if (s.movement > 0)
mclStr = 'wlMovementUp';
else if (s.movement < 0)
mclStr = 'wlMovementDown';
else
mclStr = 'wlMovementEven';
document.write('