Looks like you left off a closing parentheses at the end of the .ready();
}[COLOR=#ff0000]);[/COLOR] //make sure you close of the .ready() method here
I’ll also add that using definition lists (<dl>) in this manner would probably be wrong tag to use from a semantics point of view, especially if you’re not using the description part and using one <dl> per gallery item. (See http://www.maxdesign.com.au/articles/definition/ for more info on definition lists :-)).
It would probably be better to use an unordered list to markup the gallery images, e.g.
Of course if this is all generated code via a wordpress plugin or something like that, you might not be able to modify the markup without modifying the plugin, (unless it has templates you can define of course).
Is there a particular reason you’re trying to wrap a table around your gallery anyway? What are you trying to achieve? (There might be easier / better ways…)
Wow thanks John! That was it. I don’t use JQuery that much directly so I am always nervous - it looks like I ALMOST had it - thanks for spotting the omission. You are right about it being generated content - in this case it is coming from the output of the WordPress “[gallery]” shortcode. I am using a table because I am trying to force a horizontal scroll - rather than having the images wrap. Obviously I am still not there yet but this gets me closer.