All pastes #244569 Raw Edit

Mine

public javascript v1 · immutable
#244569 ·published 2006-11-09 23:00 UTC
rendered paste body
function debugContainer(id){	//	properties	this.debugElement = document.getElementById(id)	this.message	this.state = "hidden"		this.setShow = function()	{		this.state = "hidden";	}		this.setHidden = function()	{		this.state = "showed";	}		//	functions	this.clear = function()	{		this.message = "";		this.update();	}		this.addLine = function(text)	{		if(this.message)		{			this.message = this.message + "&gt;&gt; " + text + "<br />" ;		}		else		{			this.message = "&gt;&gt; " + text + "<br />";		}				this.update();	}		this.update = function()	{		this.debugElement.innerHTML = this.message;	}		this.show = function()	{		alert(this.debugElement.innerHTML);	}		this.wipein = function()	{		var wipeOut = dojo.lfx.wipeOut(this.debugElement, null, null, function(n)		{			alert(this.parent.state);			//if(this.state == "showed")			//{			//	this.debugElement.innerHTML = "ich bin hidden";			//	this.state = "hidden;"			//}			//else			//{			//	this.debugElement.innerHTML = "ich bin showed";			//	this.state = "showed";			//}		});												var wipeIn = dojo.lfx.wipeIn(this.debugElement);		dojo.lfx.chain(wipeOut, wipeIn).play();	}}