Quote:
Originally Posted by Astram
I used the RC Graal Gui Editor. Because I needed to set it up quick. xD I was in a hurry. I put the script through the Java beatuifier soooo... Also, the timer works perfectly. Thanks, I just got mixed up with the clientWidth. So it would be like.
PHP Code:
clientWidth = clientHeight = 10;
?_?
|
If you're doing it in a hurry, it's probably not Code Gallery material.
I don't know what beautifier you used, but it didn't work very well. You should be indenting and styling as you script anyway.
The timer may work perfectly, but that doesn't mean it's correct. The smallest timeout possible is
0.05 seconds—there's no reason to make it look like you're using a smaller one.
clientWidth and
clientHeight are just the width and height of the element (excluding the border width/height). Set them like ordinary variables.