views:

1300

answers:

1

I have this code but since I use "" the a.innerheight does not get replaced by its value. Is it possible to make this dynamic?

a.style.webkitTransform = "translate(0,a.innerHeight)"
+3  A: 

I'm not sure what you're asking for... this maybe?

a.style.webkitTransform = "translate(0," + a.innerHeight + ")";
Greg