Description
Alexa.com provides approximate traffic ratings for major websites on the web. They also offer embedding traffic graphs on your own website — simply click "Put this graph on your site!" below the graph, copy the whole code and paste it between the [[embed]]...[[/embed]]tags.
You can also change the user-editable variables within the code fragment if you wish. The rest of the code however must not be changed.
Code
To get traffic ratings of Wikidot.com and Twitter we got the following code:
[[embed]]
<!-- Alexa Graph Widget from http://www.alexa.com/site/site_stats/signup -->
<script type="text/javascript"
src="http://widgets.alexa.com/traffic/javascript/graph.js"></script>
<script type="text/javascript">/*
<![CDATA[*/
// USER-EDITABLE VARIABLES
// enter up to 3 domains, separated by a space
var sites = ['wikidot.com twitter.com '];
var opts = {
width: 380, // width in pixels (max 400)
height: 300, // height in pixels (max 300)
type: 'r', // "r" Reach, "n" Rank, "p" Page Views
range: 'max', // "7d", "1m", "3m", "6m", "1y", "3y", "5y", "max"
bgcolor: 'ffffff' // hex value without "#" char (usually "e6f3fc")
};
// END USER-EDITABLE VARIABLES
AGraphManager.add( new AGraph(sites, opts) );
//]]></script>
<!-- end Alexa Graph Widget -->
[[/embed]]
In action
"Wow! We are not that far behind Twitter! ;-)", Michal wrote on 1218175680|%e %b %Y, %H:%M %Z|agohover
Rate this solution
If you think this solution is useful — rate it up! Or dump it otherwise.





