Forum Moderators: open

Message Too Old, No Replies

embed/popup conflict

2 songs play simultaneously

         

stoner

2:46 pm on Nov 2, 2004 (gmt 0)

10+ Year Member



I've got a minor problem because I have small background audio loops on a couple of pages on my site (refer to my profile for web address) and in another area I have popup windows playing full song files.

Problem is, the popup can remain playing while the surfer continues nav'ing thru the website, so if they access a page with embedded sound there are 2 songs playing simultaneously.

I would prefer killing the embedded loops instead of the popups but my only option seems to be killing the popups when they leave the music area.

Any ideas?

crashomon

3:59 pm on Nov 2, 2004 (gmt 0)

10+ Year Member



Hello,
Can't you use Javascript to check and see if the main page no longer has "focus"? If so, then you might be able to have the soundfile clip be 'turned off' when the page doesn't have focus (as in, you're now looking at a popup window which DOES have focus)

Check out some javascript source sites for 'focus' and the ability to turn on/off scripts based on this property.

Hope that helps.

Patrick

stoner

7:14 pm on Nov 2, 2004 (gmt 0)

10+ Year Member



But if they continue navigating using the main window I can't really keep the focus on the popup, can I?

Interesting though. I'll look into it a bit. Thx