How to... random page content ?

I’m searching for a way to realize the following behaviour:

On page load, a HTML box fades in and partially overlays the page’s contents. The box contains either randomly chosen images or (like an iframe) shows a randomly chosen URL.

By clicking on that box, it should link to a given URL (based upon the randomly displayed image or HTML content).

Furthermore it would be required to have the possibility to close the box manually (maybe by clicking at a given area within this box).

Once it disappeared, it should not open again within the same browser session, even when reloading the page (easily done by checking a session cookie).

At http://www.scheruhn.com/english/start.html you can see a static example of what I want to achieve (but with random contents and not re-appearing after closing it).

I looked at actionsforge.com already, but beside Softpress’ random image action there was nothing useful there.

So I wonder if someone has realized such a feature already and can give me some hints on how to build that.

Tobias.


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

Any suggestion is welcome :slight_smile:

Tobias.


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

I don’t know of any combination of existing Actions which could do
this for you (except maybe for Protaculous + a huge whack of hand-
written code). If you simplify your requirements a bit, then it
becomes easier to imagine how you could cobble this together with
existing Actions – drop the cookie requirement, drop the external URL
and keep it all in the originating domain, then you can use a timed
show/hide layer.

The requirement that you be able to load an external site (which means
dynamically generating an iframe to hold it) complicates this
somewhat. That’s not hard by itself, but it is fussy to do in a cross-
browser manner. You can see an example of that in action here: Lookup
(follow the directions to see the effect – it’s not an automatic
thing on load).

The real challenge will be modeling this in a manner where you can
update the page without having to dig into that aforementioned huge
whack of code.

Walter

On Aug 15, 2010, at 5:11 PM, tobiaseichner wrote:

On page load, a HTML box fades in and partially overlays the page’s
contents. The box contains either randomly chosen images or (like an
iframe) shows a randomly chosen URL.

By clicking on that box, it should link to a given URL (based upon
the randomly displayed image or HTML content).

Furthermore it would be required to have the possibility to close
the box manually (maybe by clicking at a given area within this box).

Once it disappeared, it should not open again within the same
browser session, even when reloading the page (easily done by
checking a session cookie).


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

Okay, let’s make the challenge a bit easier :wink:

I have found an action that does almost what I need - it’s called “fading slideshow” and was developed by Weaver long time ago (you even can’t find it at http://www.actionsforge.com only at http://www.coastalrugs.com/Actions/fadingslideshow.html .

In order to achieve the effect I look for, I put three images at a table applying the action to each one. For each image, it’s possible to set a custom URL, so that works great.

However (yes, there is always something :wink: there are two problems (or let’s call them space for improvement):

Each slideshow is limited to ten images. But that’s a minor thing.

Most of all, I would need a way to add some custom text near each picture (like captions). When you visit Dynamic Drive DHTML Scripts- Ultimate Fade-in slideshow (v2.0) (that’s the “engine” the action relies on), they come with an option to use captions. But unfortunately this feature wasn’t implemented.

Perhaps you want to take a look at the action; I think it’s a great base, useful for various applications. It just has to be a bit more powerful.

Or do you have a recommendation for an other action that works similar ? At least at actionsforge.com I had no luck finding something.

Tobias.


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