![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
the reason why its slow is coz you're making it to unnecessary work it has to go and chekc through every item in the array everytime... instead, set a global variable to hold the current menu item and when you click the next menu item, use the variable to close the current one, then just open the new one and set it as the variable again... see what i mean? just tell ur script which menu item it must close the next time, that's all, then it don't gotta crawl through an array of menu items and hide when they're prolly already hidden cheers :0) |
![]() |
| Thread Tools | |
| Display Modes | |
| |