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','9732.630','-214.740','-2.16','0',''); indices[1] = new security('FTSE','LSE.UKX','4236.280','2.010','0.05','0',''); indices[2] = new security('DJIA','US.^DJI','8280.740','-223.320','-2.63','157795900',''); indices[3] = new security('NASDAQ','US.^COMP','1796.520','-49.200','-2.67','0',''); indices[4] = new security('H.SENG','US.^HSI','18136.150','-429.571','-2.31','0',''); indices[5] = new security('S&P500','US.^SPX','896.420','-26.910','-2.91','0',''); indices[6] = new security('ALLORDS','ASX.XAO','3826.600','-48.600','-1.25','1066955664',''); ///// 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('