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: "Irish-Phoenix"
Date: Tue, 28 Aug 2007 23:02:06 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
I have worked out more of the code... trying to get it to be a function 
control. I may be off a little, and still need to make it so a session will 
make it work. Here is the updated code attached. Is this possible to make this 
way of doing it work? and how would I get a site session per user to make it 
work so anyone can turn it on and off on all pages?

 Phoenix

 <cfquery name="sound" datasource="#sitedatasource#" username="#siteUserID#" 
password="#sitePassword#" maxRows=1>
        SELECT sound.on AS ViewField1
        FROM sound
 </cfquery>
 <html>
 <head>
 <title>
 </title>
 </head>
 <cfif "ViewField1" ISdefined>
 <body background="#111111" LINK="#ffff00" vlink="#000000" BGSOUND 
SRC="CFdocs/ocean.wav" LOOP=INFINITE>
 <cfelse>
 <body background="#111111" LINK="#ffff00" vlink="#000000">
 </cfif>
 <form name="sound" method="post" action="">
 <cfoutput query="sound">
 Sound: <input type="checkbox" name="#ViewField1#" value="checkbox"><cfif 
"ViewField1" ISdefined>On<br>
 <embed SRC="CFdocs/ocean.wav" AUTOSTART="true" HIDDEN="false" 
LOOP="true"></embed>
 <cfelse>
 Off
 </cfif>
 </cfoutput></form>


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