Online Leaf
Master the online energy savings
To use Online Leaf with the default settings, simply insert the following code into your website's <head> tag:
<script language="javaScript" type="text/javascript" src="http://www.onlineleaf.com/savetheenvironment.js"></script>
Your website can take advantage of some configurations, to give you more control over how the standby engine runs on your site. For each configuration, you simply add...
?configration=value at the end of savetheenvironment.js
...in the above implementation code, like:
<script language="javascript" type="text/javascript" src="http://www.onlineleaf.com/savetheenvironment.js?setting1=value1&setting2=value2&setting3=value3"></script>
When the users are inactive, a standby screen is launched with the text "Energy saving mode". This can be configured to display in any of the supported languages, if you add ?lang=code, where code is one of the language short codes below.
Would like to see your language added?
Please help us translate it, by translating the following text:
EN - English
Energy saving mode
Move your mouse to go back to the page.
Just send your translation to us. We highly appreciate any help we can get!
Supported languages
The following example will be using Slovenian for the standby screen:
<script language="javascript" type="text/javascript" src="http://www.onlineleaf.com/savetheenvironment.js?lang=sl"></script>
You can easily define how long time your visitors have to be inactive, for the engine to launch the standby screen, by adding ?time=X where X should be replaced with the number of seconds you would like to define the time interval. An example could be:
<script language="javascript" type="text/javascript" src="http://www.onlineleaf.com/savetheenvironment.js?time=120"></script>
... which will set the time of inactivity to 2 minutes (120 seconds).
In the following example, the engine will write the screen's text in Danish and launch the standby screen when the visitors have been inactive for more than 90 seconds (1.5 minutes).
<script language="javascript" type="text/javascript" src="http://www.onlineleaf.com/savetheenvironment.js?lang=da&time=90"></script>
The standby engine uses the jQuery Javascript library, so if you are using other Javascript libraries or code, we recommend adding...
<script>jQuery.noConflict();</script>
... just after the inserted Online Leaf script to make sure it does not conflict with other variables.
If you are still having problems, please do not hesitate to contact us.
Home - Green Websites - Contact - Spread the Leaf - Donate - Advanced
The Online Leaf makes a much Greener Web, for you and your daily visitors.
For more information, please visit Blackle or the author's section on Rune-Jensen.com.
Privacy policy - Disclaimer
Copyright 2009-2010 OnlineLeaf.com - All rights reserved