Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Lucas Renan

Spry - CollapsiblePanel - Dreamweaver CS3

Recommended Posts

fala galera

 

eu tenho vários CollapsiblePanels na index do meu site..

e eles estão inicialmente fechados....

qdo clicka ele abre e fecha...

 

só q você pode abrir tds...

eu gostaria de fazer que qdo clickasse em um, fechasse os outros....

 

alguém sabe onde eu tenho que alterar no javascript, para acontecer isso??

 

obrigado..

Compartilhar este post


Link para o post
Compartilhar em outros sites

o código eh esse

 

Spry.Widget.CollapsiblePanel.prototype.open = function()
{
	this.contentIsOpen = true;
	if (this.enableAnimation)
	{
		if (this.animator)
			this.animator.stop();
		this.animator = new Spry.Widget.CollapsiblePanel.PanelAnimator(this, true, { duration: this.duration, fps: this.fps, transition: this.transition });
		this.animator.start();
		
	}
	else
		this.setDisplay(this.getContent(), "block");

	this.removeClassName(this.element, this.closedClass);
	this.addClassName(this.element, this.openClass);
};

Spry.Widget.CollapsiblePanel.prototype.close = function()
{
	this.contentIsOpen = false;
	if (this.enableAnimation)
	{
		if (this.animator)
			this.animator.stop();
		this.animator = new Spry.Widget.CollapsiblePanel.PanelAnimator(this, false, { duration: this.duration, fps: this.fps, transition: this.transition });
		this.animator.start();
	}
	else
		this.setDisplay(this.getContent(), "none");

	this.removeClassName(this.element, this.openClass);
	this.addClassName(this.element, this.closedClass);
};

eu tenho q mudar aki

 

this.contentIsOpen = false;

 

mas não this..

teria q pegar o nome dos outros campos...

como que eu faço será?

Compartilhar este post


Link para o post
Compartilhar em outros sites

alguem sabe intaum como eu pego o nome?

 

eu tentei

 

this.name

 

mas nã odeu certo =/

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.