On Fri, 07 Jan 2005 10:36:23 +0000, SpaceGirl
<> wrote:
[snip]
> Maybe...:
Getting there...
> <script type="text/javascript>
^
Forgot the closing quote.
> function get_one() {
> x = 1;
This would create a global variable, x, when I doubt that's required (nor
desired). Always use the var keyword.
> return x;
I'd have thought
return 1;
would be simpler.
> }
> [...].style.fontsize=get_one();">
The 's' in fontsize must be capitalised.
Finally, '1' wouldn't be a valid value to be assigned to the fontSize
property; you still have to follow the CSS specification and include units
for length values (or use one of the other accepted value types).
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.