Hi,
Yes I know, this isn't a javascript board - but there seem to be some web people floating around, and I know you guys won't lead me astray.
Ok bit of background - I am the computer support person for a financial aid office of a fairly large university. A few years ago, long before I was here, they had hired a GA to create a webpage for them, as no one in the office had the expertise. Unfortunately, she used it as her own personal learning playground, then quit. They've been trying to unravel what she did since then - it was evidently quite a mess. :shock: Our admin assistant has done a lovely job teaching herself HTML and has gotten everything cleaned up with one exception - the javascript that governs the mouseover menu on our pages.
Enter me. We need to update those menus, and I figure it's a quiet week, I'll teach myself a bit of javascript, enough to fix the menus, then keep learning as I can. The problem is, there are 9 scripts, and 68 pages of javascript code - which seems to be a bit much for a 9 button mouseover menu. Also, it seems that she used cookbook-style scripts from the web, but only parts of each one she downloaded - I keep finding whole sections that appear to do nothing at all. SO... here are my questions:
- If you define a variable in the first script - can you then use it in the next script?
IE In script 1 I set the variable y = 7
Can I then say in script 2, y*2 and get the number 14?
- Do you have to define a variable before you use it?
IE, The variable y is not set in script 1 or 2.
Script 2 says "tell me what y*2 equals"
Script 3 says y = 7
Will script 2 then go and look through script 3 and come up with 14?
I would give better RL examples of what I'm looking at, but I'm still not sure as to what I'm looking at.
ops: If you all could help me understand the hierarchy of how scripts interact, that would make this go a lot quicker.
Thanks for any help....
Yes I know, this isn't a javascript board - but there seem to be some web people floating around, and I know you guys won't lead me astray.

Ok bit of background - I am the computer support person for a financial aid office of a fairly large university. A few years ago, long before I was here, they had hired a GA to create a webpage for them, as no one in the office had the expertise. Unfortunately, she used it as her own personal learning playground, then quit. They've been trying to unravel what she did since then - it was evidently quite a mess. :shock: Our admin assistant has done a lovely job teaching herself HTML and has gotten everything cleaned up with one exception - the javascript that governs the mouseover menu on our pages.
Enter me. We need to update those menus, and I figure it's a quiet week, I'll teach myself a bit of javascript, enough to fix the menus, then keep learning as I can. The problem is, there are 9 scripts, and 68 pages of javascript code - which seems to be a bit much for a 9 button mouseover menu. Also, it seems that she used cookbook-style scripts from the web, but only parts of each one she downloaded - I keep finding whole sections that appear to do nothing at all. SO... here are my questions:
- If you define a variable in the first script - can you then use it in the next script?
IE In script 1 I set the variable y = 7
Can I then say in script 2, y*2 and get the number 14?
- Do you have to define a variable before you use it?
IE, The variable y is not set in script 1 or 2.
Script 2 says "tell me what y*2 equals"
Script 3 says y = 7
Will script 2 then go and look through script 3 and come up with 14?
I would give better RL examples of what I'm looking at, but I'm still not sure as to what I'm looking at.

Thanks for any help....
Comment