Justin
11-04-2003, 05:55 AM
how to you make a var set in one function work in all functions without using the func(var) way.
|
Click to See Complete Forum and Search --> : var trubble Justin 11-04-2003, 05:55 AM how to you make a var set in one function work in all functions without using the func(var) way. hyperstyle 11-04-2003, 06:07 AM Like you said without. If you are defining variables in functions and want them to be global just leave out the 'var' altogether. example <Script> var variableone=0 (global) function bobby() { var variabletwo=0 (local) variablethree=0 (global) } </script> Justin 11-04-2003, 03:12 PM it helps alot.. thanks webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |