Rollovers only have a normal state, a hover state, and a click state, but not a selected state. Has anyone written or is it possible to write a page action script that would specify that a certain rollover on a page would be selected each time that page loads?
Sometime around 9/6/09 (at 15:21 -0400) Mike Rancka said:
Rollovers only have a normal state, a hover state, and a click
state, but not a selected state.
Actually, all you (probably, not knowing your site structure) need to
do is set the Normal state for your particular rollover to look a
certain way. That instance of your rollovers will only be visible on
that page, so you might as well make that item look a particular way.
Thanks, but that won’t work in this case. It will always look different when the mouse is not on the menus but it needs to return to a normal state since it is also a carousel tab.
There’s another avenue you could try here. If you define a style with the Tag set to .active (note the leading dot) and nothing in the Name field, you can let Carousel set the “you are here” for you magically. For an example of this, look at the Carousel demo page: Carousel in Freeway
When you click on a tab (or even when the page loads) there is a thin gray line around the selected tab, and it shifts down the line as you click on each tab, or as you use the arrow buttons to navigate within the Carousel.
Just to test this, make a new style named as above using the Styles palette. Use the Extended button in the Edit Style dialog to add a new name/value pair:
name
value
border
1px solid red
A Tag-only style will publish to the page, even if you haven’t applied it to anything. Behind the scenes, Carousel is always looking to see what the currently-showing pane is, and it adds the ‘active’ class to the associated control(s).
This requires that you understand a bit about CSS, because there’s very little you can’t do with it if you know the rules, and very little you can do with it without at least a bit of understanding. That first step’s a doozy, as they say somewhere.
I would love to be able to create this effect, but it’s just not working. Perhaps there is something I am doing wrong. Could you give fuller or more explicit instructions?
Could you post a link to the page where you are trying to make it work? That’s worth a million explanations, I’ve found. Please make sure that the output settings in the Document Setup dialog are set to More Readable, and re-publish if they’re not before sending the link.