|
|
Ok, here is a code I am playing with.
On my application.cfm file session management is set up.
now on the pages in the site, I want what I have been explaining, the user to
be able to turn off the sound on one page, and the rest of the site to remember
their choice even though there is code on all pages with the sound file
playing. What if I do something using the code I am attaching?
This session variable will only turn it off if the user is defined though, now
allow them to make the selection of turning it on or off. Can you help me with
the code I am trying to ceate?
Thank you.
Phoenix
<cfset session.isUserKnown = 1>
<cfif isDefined("session.isUserKnown")>
<embed SRC="CFdocs/ocean.wav" AUTOSTART="true" HIDDEN="false"
LOOP="false"></embed>
<cfif NOT isDefined("session.isUserKnown")>
<embed SRC="CFdocs/ocean.wav" AUTOSTART="true" HIDDEN="false"
LOOP="true"></embed>
</cfif>
</cfif>
|
|