Forum Moderators: not2easy

Message Too Old, No Replies

audio loop

         

Red_Head

6:17 pm on Jul 1, 2004 (gmt 0)

10+ Year Member



Hi,
I was wondering if there is any way (probably with javascript) to have an audio file play once when a page is first opened then doesn't play again if the page is returned to at a later time during the session. I guess it would mean that it would only play once after it has been downloaded to the users computer, then not again. Any ideas would be appreciated.

Thanks

Jon_King

12:19 am on Jul 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Red_Head!

I have asked this before and the answer I most oft received was: Cookies.... it takes a cookie on the user machine to know 'where you are' in a session.

This is a problem with Flash too. I would like to play an animation just once on the index page and then not again during that session so the user can use the back key without re-viewing the intro over and over.

Red_Head

7:59 pm on Jul 2, 2004 (gmt 0)

10+ Year Member



Thanks, I was just wondering. Maybe I'll look into it a little more.