OOP with JavaScript
consider the following:
function dMenu(title)
{
this.time = 0;
this.items = null;
this.header = null;
this.title = title;
}
dMenu.prototype.startIt = function()
{
this.time++;
setTimeout( ??????, 1000 );
}
what should i type instead of question marks to increment "time" variable every 1 second?
the genuine genius
__________________
www.campusgrind.com - college portal
|