Posts: 256
Location: Auckland, New Zealand
|
Elements in the DOM are UPPERCASE. When you use this, it should be this:
HTML Code:
var nodeList = document.getElementsByTagName('LI');
Also because class is a reserved keyword in javascript, you can't get the attribute like that, you must do:
HTML Code:
if(nodeList[i].className == 'conspic') { ...
As well as using className in all the cases that use 'class'.
Cheers,
MC
__________________
#------------------------------ signature---------------------------------------------------------------------------------#
Quote:
|
I am well recognised for what I don't do than what I do. Chores are just one of those things.
|
Last edited by mastercomputers; 06-01-2006 at 01:20 PM..
|