Closed (fixed)
Project:
Dynamic display block
Version:
6.x-1.0-rc6
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2009 at 23:28 UTC
Updated:
26 Oct 2009 at 14:20 UTC
Hi Phillip,
I love Dynamic Display Block. I recently had a request that I couldn't figure out how to deliver using your module. So I am asking in hope that you might know a way.
The desired effect was to start the block with white (the page is white too) and have the first image transition in from white. I am using a fade, but any transition would look cool. The visual effect would be the "first" image fades in.
I think the way to do this would be to have a white solid be the first image in the cue. From there, the other images could be random.
So how about it? Is there a way to force the first image, but then randomize the rest of the images?
Thank you.
Jerry
Comments
Comment #1
ppblaauw commentedSpecial properties for the first slide in a dynamic display block slideshow is not supported by the module. But... there are ways to implement it changing the code of the module.
You can add custom code in the js file of the module like below (don't forget to update the code when you upgrade)
Add a timeout function with a timeout in milliseconds (here 3000 for 3 seconds)
Add an effect for the first image
Hope this helps you further, please let me know.
Comment #2
mcfilms commentedThanks!
This looks to be precisely what I need. My only questions are:
In which part of that js code block do I hard-code the first image?
And can I point to a location outside of the current folder of images? Afterall, I don't want it shuffled in with the other random images.
If my first image was at sites/default/files/white.jpg and my Dynamic Display images were getting uploaded into sites/default/files/ddblockimages
Instead of ':first' in your example, would I use 'white.jpg' or ':sites/default/files/white.jpg" ?? What does the : colan do?
I'm sorry I don't know much JavaScript OR PHP.
Comment #3
ppblaauw commentedIn the solution I mention there is no special white.jpg image. It fades in the first random image.
The :first is a CCS option to select the first slide.
Change the whole simple block part from line 243 to:
Hope this helps you further, please let me know.
Comment #4
mcfilms commentedSooo close...
I found that // simple block section at line 203 and subbed out the code. Here is what happened:
I have two blocks on the page. The first one stayed white the second one faded in from white. I will investigate the differences in settings and report back.
Comment #5
ppblaauw commentedclose issue, 17 weeks without activity.