sound file on enter and exit

tips on how to have a sound file play every time a visitor enters your blog (but not participate in again if they resume the index) after which it play a sound every time they leave the web page, either by final the browser or about to a different web-site altogether. I want in which last exit sound to work on every one of the pages so that when they navigate away, it will play. the welcome sound i simply need to play on the index but is not play again when they resume the index; put simply, for each unique time construct y visit the site the welcome appear plays, but will not really play again if they return to the home page/index. just about any ideas

not an experienced on sound and you need some control over what on earth is happening, so " you" are gonna have to add some scripting langauge…

IE you need to know that you have already been to that page but not play the audio. EG in php you’d set a varied and pass them between pages for you to indicate that it was already viewed.

It may be possible, but he just possible option Allow me to see to enjoying a sound with exiting a page is begin using an event… IE when somone clicks a new button to keep. When you close up the browser it cant play anything as it isnt running… The sole way round this really is to install computer software on people’s machines that can be played the sound once the browser is shut.

Hagen

Including hagen said, you’re about to have to work with a bit server-side computer code (for not enjoying again). But there’s no way to have fun with something when an individual closes the eyeport, if I bear in mind correctly, as I don’t think there’s an occurrence onWindowClose or anything prefer that. I might become wrong though.

You’re about to have to make use of some server-side computer code: ASP or PHP to generate a session variable or plant a cookie inside the user’s browser therefore the system will be aware that they’ve already done the page and not play this file again. This can not be way too hard to do. Where creating an motion on exit a common thing that pertains mind is your pop-up window that will play the seem. And we know how everybody loves take ups.
Best of luck.

Don’t take action! I hate about to sites that own sound automatically, allow it to be a button.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *