's cornerwhitebandsmallright css/javascript



February 25, 2006

I saw this a few times, but wanted to make sure I'd be able to find it again. Haven't seen other campaign sites with banners like this, but totally see how it could be a useful form of promotion.

The javascript just provides referrer information for make poverty history.. Probably better ways to do this, but interesting.. The banner fits in very nicely with the white wristband that this campaign uses. Could also be used quite effectively with breast cancer campaigns or any of the ribbon campaigns out there.

// Current Page Reference// copyright Stephen Chapman, 1st Jan 2005// you may copy this function but please keep the copyright notice with itfunction getURL(uri) {uri.dir = location.href.substring(0,location.href.lastIndexOf('\/'));uri.dom = uri.dir; if (uri.dom.substr(0,7) == 'http:\/\/') uri.dom = uri.dom.substr(7);uri.path = ''; var pos = uri.dom.indexOf('\/'); if (pos > -1) { uri.path = uri.dom.substr(pos+1); uri.dom = uri.dom.substr(0,pos);} = location.href.substring(uri.dir.length+1,location.href.length+1);pos ='?');if (pos > -1) { =, pos);}pos ='#');if (pos > -1) { =, pos);}uri.ext = ''; pos ='.');if (pos > -1) { uri.ext; =,pos);}uri.file =;if (uri.ext != '') uri.file += '.' + uri.ext;if (uri.file == '') = 'index';uri.args ="?");return uri;}var uri = new Object();getURL(uri);document.write('' + 'width="163" height="163" border="0" usemap="#MPHLinkMapSmallRight">'+ 'xhref="' + uri.dom + '"target="_blank">');

To see a good examples of the CSS that we have used.

Also worth checking out this blog post with some other tips. If you want help to track and spread the brand for your campaign, we can help.

About The Author

Mike Gifford is the founder of OpenConcept Consulting Inc, which he started in 1999. Since then, he has been particularly active in developing and extending open source content management systems to allow people to get closer to their content. Before starting OpenConcept, Mike had worked for a number of national NGOs including Oxfam Canada and Friends of the Earth.