Searching...
Thursday 3 May 2012

How To Add Energy Saving Mode For Blogspot or Wordpress

How To Add Energy Saving Mode For Blogspot or Wordpress
Do you know about screensaver? Screensaver active when we are not moving our cursor. And, with screensaver we also save some electric energy, so with screensaver we alsosave our earth. If screensaver usually  only exist in operating system (OS), I found how to add screensaver on our blog. If you are curious, follow the steps below
When your visitors are inactive, this engine launch a standby screen, with the text "Energy saving mode".
Note: Plese Don't Move Your Mouse at liest 2 minute.

This is very easy to add to your website or blog with in few seconds.

Follow This Stapes: 

Login to your Blogger dashboard --> Design --> Edit HTML.

Press Ctrl+F and Search for </head> in your template.

Now copy below code and paste it just before the </head> tag.

<script language="javascript" type="text/javascript" src="https://rnhckrdotcom.googlecode.com/svn/bloggerwidget/savetheenvironment.js"></script> 

This standby engine uses the jQuery Javascript library, so if you are using other Javascript libraries or code, add below code instead of above code :

<script language="javascript" type="text/javascript" src="https://rnhckrdotcom.googlecode.com/svn/bloggerwidget/savetheenvironment.js"></script> <script>jQuery.noConflictundefined);</script>


Time of inactivity

Also 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="https://rnhckrdotcom.googlecode.com/svn/bloggerwidget/savetheenvironment.js?time=120"></script>

... which will set the time of inactivity to 2 minutes (120 seconds).

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.

Supported languages

ak - Akan
da - Danish
de - German
en - English
es - Spanish
fr - French
fi - Filipino
gr - Greek
hr - Croatian
id - Indonesian
jp - Japanese
it - Italian
nl - Dutch
pl - Polish
pt - Portuguese
bpt - Brazilian Portuguese
ro - Romanian
sl - Slovenian
se - Swedish
sk - Slovak
sw - Swahili
tr - Turkish
vi - Vietnamese

The following example will be using Spanish for the standby screen:

<script language="javascript" type="text/javascript" src="https://rnhckrdotcom.googlecode.com/svn/bloggerwidget/savetheenvironment.js?lang=es"></script>

If you are using WordPress, just download their plugin, activate it and everything should work instantly.

Injoy...

You Also Like:
How To Host File On Google Code? For Blogger [Include MIME Type] Tutorial


1 comments:

  1. Strong screensaver. Egypt Nile Screensaver is a great Screensaver at
    http://sketchof.net/egypt-pyramids-screensaver/

    ReplyDelete