help on displaying 1 photo daily
HI everybody am trying to figure out trying to rotate a series of photos daily on my page is there an application that does that? please help me with this.. thanks ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263509 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: help on displaying 1 photo daily
Well, you could do it simply based on your image name. IE: rename your images based on days in a month 1-31 and then pull your image based on what day it is. I am sure someone on here can find a more sexy way, but this is one way. You can also do it yearly using dayOfYear() if you have that many images. !---define our image var--- cfset myDailyImage = #Day(Now())# !---display the image--- img src=images/#mydailyImage#.jpg Doug - Original Message - From: alex poyaoan [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, December 11, 2006 2:32 AM Subject: help on displaying 1 photo daily HI everybody am trying to figure out trying to rotate a series of photos daily on my page is there an application that does that? please help me with this.. thanks ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263512 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: help on displaying 1 photo daily
tnanks Doug that thing worked ... will be trying other methods but is going fine this way Well, you could do it simply based on your image name. IE: rename your images based on days in a month 1-31 and then pull your image based on what day it is. I am sure someone on here can find a more sexy way, but this is one way. You can also do it yearly using dayOfYear() if you have that many images. !---define our image var--- cfset myDailyImage = #Day(Now())# !---display the image--- img src=images/#mydailyImage#.jpg Doug - Original Message - From: alex poyaoan [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, December 11, 2006 2:32 AM Subject: help on displaying 1 photo daily HI everybody am trying to figure out trying to rotate a series of photos daily on my page is there an application that does that? please help me with this.. thanks ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263513 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: help on displaying 1 photo daily
No problem. Keep in mind that for this to work properly you must have at least 31 images for the months that have 31 days. Or you could do it like so if you do not want to keep track of your image count. cfdirectory action=list directory=yourImageDirectory name=getImages cfquery dbtype=query name=images select * from getimages where imageName LIKE #Left(Day(Now(), 2))# cfquery cfif images.recordCount gt 0 !---display the image--- cfoutput img src=images/#images.imageName# cfoutput cfelse !---display a standard image--- img src=images/default.jpg /cfif Doug - Original Message - From: alex poyaoan [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, December 11, 2006 4:56 AM Subject: Re: help on displaying 1 photo daily tnanks Doug that thing worked ... will be trying other methods but is going fine this way Well, you could do it simply based on your image name. IE: rename your images based on days in a month 1-31 and then pull your image based on what day it is. I am sure someone on here can find a more sexy way, but this is one way. You can also do it yearly using dayOfYear() if you have that many images. !---define our image var--- cfset myDailyImage = #Day(Now())# !---display the image--- img src=images/#mydailyImage#.jpg Doug - Original Message - From: alex poyaoan [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, December 11, 2006 2:32 AM Subject: help on displaying 1 photo daily HI everybody am trying to figure out trying to rotate a series of photos daily on my page is there an application that does that? please help me with this.. thanks ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263515 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: help on displaying 1 photo daily
Never mind that last chunk of code. Not working. I will play with it though!! Doug ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263517 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: help on displaying 1 photo daily
Well, maybe helping me will in turn help someone else. What is wrong with this query of queries cfdirectory action=list directory=D:\webroot\totallyclassified\images name=getImages cfquery dbtype=query name=images select * from getImages where #left(getImages.name, 2)# = #day(Now())# /cfquery - Original Message - From: Doug Brown [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, December 11, 2006 7:02 AM Subject: Re: help on displaying 1 photo daily Never mind that last chunk of code. Not working. I will play with it though!! Doug ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263519 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: help on displaying 1 photo daily
Simplest way might be to name the photos according to the date. 12122006.jpg 12132006.jpg 12142006.jpg 12152006.jpg 12162006.jpg Then find the current date and output that image: cfset todaysimage = DateFormat(Now(),mmdd) cfoutputimg src=#todaysimage#.jpg/cfoutput !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: alex poyaoan [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:32 AM To: CF-Talk Subject: help on displaying 1 photo daily HI everybody am trying to figure out trying to rotate a series of photos daily on my page is there an application that does that? please help me with this.. thanks ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263521 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: help on displaying 1 photo daily
Ok, it should be like sosorry cfdirectory action=list directory=D:\webroot\totallyclassified\images name=getImages cfset imageName = #day(Now())# .jpg cfquery dbtype=query name=images select * from getImages where getImages.name = '#imageName#' /cfquery cfoutput cfif images.recordCount gt 0 !---display the image--- img src=images/#images.Name# cfelse !---display a standard image--- img src=images/default.jpg /cfif /cfoutput Doug ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263523 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: help on displaying 1 photo daily
quotes around day? where #left(getImages.name, 2)# = '#day(Now())#' -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 9:11 AM To: CF-Talk Subject: Re: help on displaying 1 photo daily Well, maybe helping me will in turn help someone else. What is wrong with this query of queries cfdirectory action=list directory=D:\webroot\totallyclassified\images name=getImages cfquery dbtype=query name=images select * from getImages where #left(getImages.name, 2)# = #day(Now())# /cfquery - Original Message - From: Doug Brown [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, December 11, 2006 7:02 AM Subject: Re: help on displaying 1 photo daily Never mind that last chunk of code. Not working. I will play with it though!! Doug ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263524 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4