Course layout: I have a menu on the left side made up of text boxes (representing chapters) with invisible buttons over each. There is also a 'Next' and 'Back' buttons at the bottom. The student is allowed to navigate freely using the left menu to get to a particular chapter and/or 'next'/'Back' buttons to navigate from page to page.
While in a particular chapter the text for that chapter (menu on the left) changes color to let the student know they're in it; all through hide/show actions. This much works fine.
What I'd like to have happen and where I'm having a problem: after the student leaves the visited chapter the text changes to yet another color to indicate they've been there, but if they revisit that chapter it still changes to let them know they're back in it, then back to the visited color when they leave it again.
Because of the free navigation I'd like to accomplish this through OnShow actions instead of OnMouseClick. So I created a 'page_visited' variable. Then 'OnShow's for each chapter, in that chapter, that sets a different variable to it, specific to that chapter.
Each chapter also contains 'OnShow's for every other chapter, looking for any visited variables in 'page_visited'. If it sees any I want it to display the visited text for that particular chapter.
I've combed through the posts and either I'm not using the right search key words or I'm not seeing the connection, but I feel sure I'm just missing a step or two, so any advice or insight would be much appreciated. Too bad there's not an 'OnLeavePage'...as far as I know :)