My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Links

What is Iran Green Ribbon

It's basically a javascript applet to show a green ribbon on sites.

How to use Iran Green Ribbon

To add the ribbon to your site simply add this code somewhere is your web page:

<script language="javascript" type="text/javascript" src="http://irangreenribbon.googlecode.com/files/g_1.0.js"></script>

This will show a blank green ribon on top left corner of the page.

Customization

To customize the ribon use this format:

<script language="javascript" type="text/javascript">var IranGreen={'pos':'ur','theme':'tm3','page':'fix'};</script>
<script language="javascript" type="text/javascript" src="http://irangreenribbon.googlecode.com/files/g_1.0.js"></script>

There are 3 configurable options in above code:

  • pos: this is the position of ribbon, possible values are:
    • ul: will show the ribbon at the top left corner
    • ur: will show the ribbon at the top right corner
  • theme: this is the ribbon theme. Possible values are:
    • tm1: It's a blank green ribbon
    • tm2: A green ribbon with peace sign
    • tm3: A green ribbon with "Free Iran" sign
    • tm4: Green ribbon with Iran Map
    • tm5: Green ribbon with Free Iran sign (larger)
    • tm6: Green ribbon with Victory sign
    • tm7: Green ribbon with Free Iran text
    • tm8: Green ribbon with Iran flag
    • tm9: Green ribbon with Black Iran sign
  • page: this controls how the ribbon should scroll, possible values are:
    • fix: ribbon will be fixed at its place in browser.
    • var: ribbon will be fixed at its place in page (will scroll).

Powered by Google Project Hosting