https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=14596
Get this script(courtesy of cracker) and it should end all your troubles.
So, one more thing: How do I use an element function with these elements?
No I mean when I use the custom elements that Jacob1 mentioned.