Tuesday, July 21, 2009

Combination Scripts for Random Widgets

One of the fascinating things about the RotateContent.com tool for creating widgets with randomized content is that you can actually do a meta-widget, where what is being randomized is the widgets themselves!

It works like this: First you create the individual widgets, which are available separately. Then, create another widget, and in the individual cells, put the javascript call for the other widgets. This new "meta-widget" will then run in two stages: to begin, it will randomly choose from one of the widgets, and then it will run that other widget. How cool!

So, for example, here is a "Random Greco-Roman Image" widget which randomly selects from these individual widgets: Greek Gods and Goddesses, Greek Beasts, and Roman Emperors.