RandomBanner

Purpose

The purpose of this script is to link to another place with a banner, like a webring

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

RandomBanner-1.3.py

1.3 and Above

After donwloading, rename to RandomBanner.py, please do read the docs, before using it

RandomBanner-1.9.py

1.9

-- IgorTamara 2013-05-12 05:19:27

You can grab the most recent version from BitBucket

Calling sequence

<<RandomBanner(urlcsvfile[,width=width,height=height])>>

Inputs

Receives an URL of a csv file separated with semicolon with three fields :

The second argument is the width of the banner

The third argument is the height of the banner

Output

Shows the banner, when you move over the banner it shows the legend and finally when you click you are directed to the site.

Examples

||<tablestyle="text-align:center;width:100%"><<RandomBanner(http://servidor.slec.net/~igotam/anillo.txt)>>||

will show any of the records on the file as a banner linking to the site.

<<RandomBanner(http://servidor.slec.net/~igotam/anillo.txt,200,20)>>

will show a random banner on 200x20 size, linking.

A file containing the following lines worked for me.

Slec;http://www.slec.net;http://servidor.slec.net/~igotam/images/banner.gif
Gleducar;http://www.gleducar.org.ar;http://servidor.slec.net/~igotam/images/gledubanner.gif
Educalibre;http://www.educalibre.cl;http://servidor.slec.net/~igotam/images/banner.gif
Structio;http://structio.sourceforge.net;http://structio.sourceforge.net/images/bannerstructio.gif
Flisol;http://www.installfest.info;http://www.linuxpreview.org/images/banners/banner-flisol2006-p1latin.gif

You can look a running example here

Side Notes

Igor Támara <igor AT tamarapatino DOT org>, GNU GPL version 2

Bugs

Comments and Discussion

Comments and discussion are welcome.

MoinMoin: MacroMarket/RandomBanner (last edited 2013-05-12 21:00:31 by IgorTamara)