How do I add a "search queries" widget on my web page ?
Just inject the following html line on your page:
<script type="text/javascript" language="javascript" src="http://refererbox.kornr.net/searchqueries.php">
</script>
The RefererBox script is then loaded, and dynamically inserts the top-10 list of your referers. Of course, there are several parameters that you can modify if you wish so, but this simple code works out of the box.
Alternatively (if applicable):
Additional parameters
For a better integration on your web site, you can also parameterize the box:
- maxitems: specify the number of items in the list. The default is 10, but you can set any value between 3 and 50.
- maxlen: specify the maximum length of each entry, in characters. You can set any value between 5 and 250 (default 20).
Example
<script type="text/javascript" language="javascript" src="http://refererbox.kornr.net/searchqueries.php?maxitems=30&maxlen=12">
</script>
Style customization
(advanced users only)
It is possible to customize the display of the refererbox list using
CSS style. The following html elements are generated in a typical
refererbox5A display:
<ol class="refererbox">
<li class="refererbox"><a class="refererbox" href="#">[reference]</a></li>
</ol>
Consequently, you can customize your stylesheet to redefine the display properties of the corresponding class elements. Please refer to the appropriate CSS documentation for further details.