Active Slideshow Pro Support Product Page

This topic was archived

Dynamic background

Asked 02 Oct 2006 01:07:51
1
has this question
02 Oct 2006 01:07:51 Wim Conix posted:
Hello,

I'm trying to make my slideshow's background dynamic with a color retrieved from the database, which users can change.
Background starts dynamic with the correct color, but then returns to the color of the first user in the table.
Am I forgetting to make dynamic something in my code ?

Pref_SS_Image = database field with dynamic color

Code from slideshow page :

<script type="text/javascript">
AC_FL_RunContent( 'codebase','download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','660','height','580','align','middle','id','slide_results_author_random','src','../slideshowpro','wmode','window','quality','best','flashvars','xmlFile=default_xml.asp%3Fuser=<%=(Recordset1.Fields.Item("ID".Value)%>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC','scale','noscale','bgcolor','<%=(Recordset1.Fields.Item("Pref_SS_Image".Value)%>','pluginspage','www.macromedia.com/go/getflashplayer','movie','../slideshowpro' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="660" height="580" align="middle" id="slide_results_author_random">
<param name="FlashVars" value="xmlFile=default_xml.asp%3Fuser=<%=(Recordset1.Fields.Item("ID".Value)%>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" />
<param name="movie" value="../slideshowpro.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="wmode" value="window" />
<param name="bgcolor" value="<%=(Recordset1.Fields.Item("Pref_SS_Image".Value)%>" />
<embed src="../slideshowpro.swf" id="slide_results_author_random" wmode="window" quality="best" flashvars="xmlFile=default_xml.asp%3Fuser=<%=(Recordset1.Fields.Item("ID".Value)%>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" scale="noscale" bgcolor="<%=(Recordset1.Fields.Item("Pref_SS_Image".Value)%>" type="application/x-shockwave-flash" width="660" height="580" pluginspage="www.macromedia.com/go/getflashplayer" />
</object></noscript>

Code from xml-file :

<slideshow loop="false" stream="true" url="javascript:window.history.back()" target="_self" bgcolor="0x13273C">
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<slide url="<%=(Recordset1.Fields.Item("Filename".Value)%>" duration="5" fill="squeeze" background="<%=(Recordset1.Fields.Item("Pref_SS_Image".Value)%>"><transition effect="fade" position="0" easing="Linear" duration="4" /><text position="2" font="Verdana" color="0xFFFFCC" size="10" bold="false" italic="false" align="center" alpha="100" rotation="0"><![CDATA[(c) <%=(Recordset1.Fields.Item("Author".Value)%>]]></text><text position="6" font="Verdana" color="0xFFFFCC" size="10" bold="false" italic="false" align="center" alpha="100" rotation="0"><![CDATA[<%=(Recordset1.Fields.Item("Caption".Value)%>]]></text></slide>

Any help would be much appreciated !

Thanks,

Wim

Wim Conix
www.image-belle.com

Reply to this topic