PDA

View Full Version : Switching pages with hidden/show object error



David Delaney
03-28-2001, 03:11 PM
I have a page that has a buttons (not up/down states) that hide and show if the user is over the certain button - they are different sizes buttons so I thought I would try the hide/show - works well too!

When the button is in the down state, if clicked, it takes you to another page - and if mouseleave, the orginal button comes back up and the mouseover the original button hides and the depressed button shows.
Now, once the user goes to another page and comes back, the button is still depressed - not in its original state. This has happened on several project of mine.

Mark
03-28-2001, 03:55 PM
Hi,
The reason that this happens is because the Mouse Leave event never occurs. What you should do is Hide the Depressed Button, and Show the Original State on the PAGE CLOSE event.
So the user will click the "Depressed Button" and jump to the next page, then when that page is closing the "Depressed" button will be hidden, and the "Normal State" button will be shown.

mark.

David Delaney
03-29-2001, 02:44 AM
Going to try that tonight. Thanks Mark