hi friends,

Can anyone tell me how to capture window events.I searched for events but i found resize,scroll. Does any mouse click ,mouse move ,mouse over events exists.My problem is ,i want to load a flash file when the browser is idle.Using document object i can capture the mouse events. But when i click on the menubar or title bar of the browser it will not take effect.

Event.observe(document.body, 'mouseout', resetIdle, true);

calling this method will deals the function. But when replacing that document.body with window i am not getting the result.

Help me please

Look in the html instead of the js.

Also, you need to use a timer to start the function to load the flash file, and use events to cancel the timer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.