PDA

View Full Version : this.title / this.drop / this.item ?




Scav
02-08-2001, 02:27 PM
Can anyone help me figure out what this does? ive never seen 'this.title' or 'this.drop' or any of the rest of those in javascript before. So you know this was taken from blizzard's js file.

function menu(styletitle, styledrop, styleitem, title_on, title_off) {
this.title = styletitle;
this.drop = styledrop;
this.item = styleitem;
this.inDrop = false;
this.titleoff = new Image();
this.titleoff.src = title_off;
this.titleon = new Image();
this.titleon.src = title_on;




Scav
02-08-2001, 02:30 PM
^ oh i forgot to add the best i can think of is it is setting up its own dom in a way. like menu.title = styletitle;