what i am trying to accomplish is to have two elements lets say SEND and RECEIVE.
when i click the element SEND i want the RECEIVE element to receive the effect.
currently my script only effects the element itself:
var animElements = document.getElementById("send").getElementsByTagName("p");
for(var i=0; i<animElements.length; i++) {
animElements[i].onclick = sizeChange;
}
what i want to happen:
var animElements = document.getElementById("send").getElementsByTagName("p");
for(var i=0; i<animElements.length; i++) {
when element is clicked, other element (recieve) goes to sizeChange
}
here is the sizechange function:
function sizeChange() {
if (!this.currentWidth) this.currentWidth = 150;
doWidthChangeMem(this,this.currentWidth,170,10,10,0.333);
this.onclick = sizeRestore;
}
function sizeRestore() {
doWidthChangeMem(this,this.currentWidth,150,10,10,0.5);
this.onclick = sizeChange;
}
is there a way to do this (without using an html link)?