Hi Walter,
Is there a way to have the width of the Carousel div set to 100% instead of using “px”, so the carousel slides in from the edge of the page.
As soon as I change to % the carousel stops working.
Is this currently only set to “px” ?
No, all of the math in the Action is predicated on measurements in
pixels. In order to hide whatever is to the left or the right of the
Carousel area, there has to be a definite dimension to everything.
Each pane has to have a fixed width, and then the outer “window” that
you view those panes through has to have the same width. So if your
panes are 400px wide, and you have ten of them, then your inner
“filmstrip” would be 4000px wide, and you would view it through a
400px wide window, as if you cut a hole in a piece of background-
colored paper and then slid that wider strip behind it to make the
animation effect happen. In fact, that’s more or less precisely what
happens. If your window was set to 100%, and the inner strip was set
to 1000%, that wouldn’t have the same effect at all. I’m not saying it
would be impossible, but within the bounds of how the Action (and the
JavaScript library it runs on top of), nearly enough.
Walter
On Jul 20, 2009, at 1:52 PM, Pete wrote:
Hi Walter,
Is there a way to have the width of the Carousel div set to 100%
instead of using “px”,
Is there a way to have the carousel centered on the screen?
I wish to have the carousel with a sidebar the same hight as the carousel placed centre of the page however cannot seem to achieve it due to being unable to nest the carousel within a div.
You can center the page, and then the carousel will naturally be
centered on the screen. Other than that, no, the Carousel Action can’t
be applied to an inline object.
Walter
On Jul 31, 2009, at 2:57 AM, Floating.Point wrote:
Is there a way to have the carousel centered on the screen?
Yes, that’s correct. The new method of construction requires a
freestanding layer for the base (Carousel goes here) element. I can
try removing this restriction, but it’s not clear how I can do that
and still keep people from applying it to a table-based item by
mistake (which won’t work on so many different levels).
(Tried it briefly) It seems to work, but I’ll have to figure out the
right set of locks to put on the base Carousel Action so it can’t be
put on a table layout element. If you want to hack your own copy, it’s
line 436 – remove the word layer so <action-appliesto layer non- html32/> reads <action-appliesto non-html32/>
Walter
On Jul 31, 2009, at 9:13 AM, David Owen wrote:
It that right Walter?
I’m running an older version of the carousel in our main website as
an inline object (all the panels are grouped before the group is
pasted inline)
Yes, that’s what I meant. Hack your copy, follow the NEW instructions
(no grouping) and it will just work, as far as I can see. The only
issue is that I have removed the safety feature that keeps you from
getting a big fat error if you apply the Action to a table-based
element (an HTML element drawn while the “big blue button” is off, in
other words).
Walter
On Jul 31, 2009, at 10:31 AM, Floating.Point wrote:
By “want to hack your own copy” did you mean that inline
implementation of the carousel is possible now? by hacking the
action as explained?
Could you breifly explain any workflow changes needed once the hack
is done?
Would the need to group the carousel come back into play?
or would it be as simple as:
1: applying the hack
2: applying the carousel as usual (now being able to do so on an
inline html object)
3: making sure to NOT be using tables layout mode?