I am currently developing a website. I need alexa rankings added to the set of information my website gives. But when i check their code. I couldn't find any script that returns the value of a certain websites rank. Is there anyone who developed one?
You could use the code alexa provide, then use php or something similar to load the url of the site you want into the code. <!-- 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 = ["mostplays.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: '6m', // "7d", "1m", "3m", "6m", "1y", "3y", "5y", "max" bgcolor: 'e6f3fc' // hex value without "#" char (usually "e6f3fc") }; // END USER-EDITABLE VARIABLES AGraphManager.add( new AGraph(sites, opts) ); //]]></script> <!-- end Alexa Graph Widget --> Code (markup): Change this line: var sites = ["mostplays.com"]; To: var sites = ["dynamic site url here.com"];