I try to create a page that will 开发者_高级运维show in a sidebar panel in Opera. I'd like to know when user sees it or not. The problem is when a user closes the panel the page is still active - all javascript functions run - I need to stop them when user closes the panel.
You can not realy detect that. Test the window size when the panel is closed. To detect active tab in browsers you can use mousemove or mouseover events. but it dose not work when the mouse is out of your window.
精彩评论