Embed ALOE information into your web pages
May 1st, 2010 by MartinWe now offer to embed information from ALOE into other web pages! Simply put this code on your web page:
<script type="text/javascript">
// <![CDATA[
var aloeUrl = 'http://aloe-project.de';
var borderWidth = '1px';
var borderColor = '#FF9933';
document.writeln( '<iframe width="190" height="120" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="' + aloeUrl + '/AloeView/ajax/getResourceMetadataAsHtmlPage?bookmarkUri=' + encodeURIComponent( location.href ) + '&bookmarkTitle=' + encodeURIComponent(document.title) + '〈=en' + '&borderWidth=' + encodeURIComponent(borderWidth) + '&borderColor=' + encodeURIComponent(borderColor) + '" ></iframe>' );
// ]]>
</script>
As a result, you’ll get something like this with information from ALOE about the respective page:
You can specify the color and size of the border with the variables borderWidth and borderColor.