Firstly here is what I am trying to add to my mediawiki skin. http://www.urbanvintner.co.nz/books/ It's a quick and dirty hack of Simple Modal using Google's Book Preview and Dynamic Link APIs. Problem being I can't for the life of me figure out how to address the elements within the mediawiki installation. At least I'm assuming thats the problem. Here are the same links in wiki http://www.urbanvintner.co.nz/GBooks_Widget and here is the js in my skins directory http://www.urbanvintner.co.nz/skins/roundedblue/js/gb.js
Unless I can figure out how to stop Mediawiki stripping attribute tags I am going to have to alter this code anyway, to re-enable page numbers and linking, but right now it isn't even running the first loop, because - and I'm guessing - $('span.gb') is returning an empty object array. I have to say DOM architecture confuses me considerably