Hi!
* a stripped down version of the EP site is available by clicking on the "Text-only version" link (cookies must be allowed)
click on "Graphic version" to get back to the default page.
Now comes the question of rotating banners.
* I've rewritten the code so that the rotation is now done on the server's side instead of having a client-side rotation in javascript. This is to avoid cluttering the html code if there is going to be a lot more banners. Additional 468x60 banners can be added easily. (see the 'custom_rotating_banner.py' script).
The text of the banners could also be shown in text version of the site (as they do for instance on Google - http://www.google.se/search?q=zope )
* Otherwise the image format for online ad images (non-rotating in the left column) is approx. 180-200px wide.
/JM
banners = [
{'image': '/banners/ad1.gif',
'title': 'Ad title',
'text': 'Ad text here',
'url': 'http://www.europython.org',
},
{'image': '/banners/ad2.gif',
'title': 'Ad title',
'text': 'Ad text here',
'url': 'http://www.europython.org',
},
{'image': '/banners/ebook_468x60.gif',
'title': 'Ad title',
'text': 'Ad text here',
'url': 'http://www.europython.org',
},
]
from random import choice
banner = choice(banners)
rendered = '<a href="%s"><img src="%s" alt="%s" width="468" height="60" title="%s" border="0" /></a>' % (
banner['url'], banner['image'], banner['title'], banner['text'])
return rendered
_______________________________________________ EuroPython mailing list [email protected] http://mail.python.org/mailman/listinfo/europython
