I'm trying to add a click function to my object. The way i have it now in bold is how I saw someone else use it, it doesn't work. I tried using jquery's bind('click') and this.div.onclick but it runs the function right away upon instantiation.
How can i get this to run only when clicked?
function bubble(id,title,description,year,bubbleIcon,icon,source,length) {//art object from xml
this.id = 'bubble' + id;
this.title = title;
this.descrip = description;
this.year = year;
Thanks that works, is there a tutorial or an article that explains what you can do with the jQuery() tag because half my code is regular javascript half jquery and I'm clueless if it should all be one or the other.
Bookmarks