limpsharp
07-02-2006, 11:01 AM
Last post i promise.
$(currentID).onclick = "grow('+currentID+','+oheight+','+theight+','+twidth+','+margin+')";
Doesn't provide any errors - but neither does it work.
I need to put these variables into the onclick function.
i can use
$(currentID).onclick = grow;but this does not allow me to assign variables.
PS. $ is shorthand for document.getElementByID as found in prototype framework.
$(currentID).onclick = "grow('+currentID+','+oheight+','+theight+','+twidth+','+margin+')";
Doesn't provide any errors - but neither does it work.
I need to put these variables into the onclick function.
i can use
$(currentID).onclick = grow;but this does not allow me to assign variables.
PS. $ is shorthand for document.getElementByID as found in prototype framework.