macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: BG sound with on off control in cfm

Subject: Re: BG sound with on off control in cfm
From: Ian Skinner
Date: Tue, 28 Aug 2007 09:22:57 -0700
Newsgroups: macromedia.coldfusion.cfml_general_discussion


<body background="#111111" LINK="#ffff00" vlink="#000000" BGSOUND SRC="CFdocs/ocean.wav" LOOP=INFINITE>
 <EMBED SRC="CFdocs/ocean.wav" AUTOSTART="true" HIDDEN="false" LOOP="true">

That code does not show any control for a user to turn off the music, it just shows how the music is embedded in the page.

How does a user turn off this when the want? Then you need to decide how to get that information to a server for storage.

This idea just popped into my head, you could probably do this with cookies. You can use JavaScript to write the data to a cookie in the client and read the cookie with ColdFusion to put onto future pages, or just do it all with JavaScript, your choice.




<Prev in Thread] Current Thread [Next in Thread>