Layer-typed pop-up window, how to realize ?

Hello,
I’m looking for a way to create a layer (HTML or image, doesn’t really matter) that is available when loading the page and can be closed by clicking a link within the layer. So some kind of pop-up window that loads together with the site but consists of a layer. Similar to MooTools’ Spawn New MoodalBox action, but without the need to click a link before.

I tried the built-in actions “sequence timer” and “show/hide target image” but I just managed it that the layer shows up for a given amount of time and then disappears (instead of there should be a “close” link).

Can you provide me some hints about how to realize this ?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Make your layer, apply the Target Show/Hide layer action to it, and set it to Initially Visible. Then make a graphic item as a child of that layer and apply the Rollover action to it. Set its click event to a number, then set your layer to that same number. When you click on the graphic item, the layer will hide. You may also use the text rollover action if you want to use HTML text for the close link.

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

@waltd: Thank you very much, this worked great :slight_smile:

Would be there a way to make this layer to appear only once during a browser session ? So if the user browses through the site and comes back later to this page, the layer does not appear again.

This should work easily with cookies, but I don’t know how (if overall) the generated JavaScript source of FW can be modified manually.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Not that I know of, no. You are correct in that it can be set easily
with cookies, but there aren’t any hooks in the code where these sorts
of things can be entered.

Walter

On Dec 21, 2008, at 6:30 PM, tobiaseichner wrote:

Would be there a way to make this layer to appear only once during a
browser session ? So if the user browses through the site and comes
back later to this page, the layer does not appear again.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options