tuto : ubah energy saving mode
Posted 1/30/11 // 1:49 AM
direquestkan oleh LILO LOLLYPOP
1) copy code dibawah :
var idleTime=0;var standby=false;function CheckInactivity(){idleTime+=10;if(idleTime>60){InitializeStandBy()}}function InitializeStandBy(){if(!standby){var a=0;a=jQuery(window).height();jQuery("#energysaving").show().css({height:"0",width:"0",left:"50%",top:"50%"}).animate({width:"100%",height:a,left:"0",top:"0",opacity:"1"},1000);standby=true}}function StopStandBy(){if(standby){jQuery("#energysaving").animate({width:"0",height:"0",opacity:"0",left:"50%",top:"50%"},500);setTimeout('jQuery("#energysaving").hide();',800);standby=false}}document.write('<link rel="stylesheet" href="http://www.onlineleaf.com/savetheenvironment.css" type="text/css">');if(typeof(jQuery)=="undefined"){document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"><\/script>')}function InitJQuery(){if(typeof(jQuery)=="undefined"){setTimeout("InitJQuery();",50)}else{jQuery(function(){jQuery(document).ready(function(){setInterval("CheckInactivity();",10000);jQuery(this).mousemove(function(a){idleTime=0;StopStandBy()});jQuery(document).keypress(function(a){idleTime=0;StopStandBy()});jQuery("body").append('<div id="energysaving"><p><font style="color: #2fb2fa;">SCREEN SAVER MODE IS "<blink>ACTIVE</blink>"</font><br/><span><font style="color: #FFFFFF;">please move the cursor if you want to "<blink>NONACTIVE</blink>" the Screen Saver</font></span></p><div id="copyrightOnlineLeaf"><font style="color: #00FF00;">Copyright 2010 - Helwie | visit my blog | http://helwie-ahmad.blogspot.com/</font> <font style="color: #FFFFFF;">Supported by: www.onlineleaf.com</font></div></div>');jQuery("#energysaving").hide()})})}}InitJQuery();
2) pastekan di notepad atau sejenisnya , ubah mengikut kreativiti anda =)
3) dah abis edit , copy code yang anda edit tadi
4) cari kode <head> dan paste code tadi di atas kode <head> tu
5) dah,PREVIEW dulu sebelum SAVE !
8 Comments:
thank you dear .. kamu baik hati !
tapi kan .. mmg bole letakpic cartoon ea ?
mekasih~ x tau r.. :)
erm. sye tk beberapa fhm la..
susoh arh beela =="
Code tu berserabut laa ........ cam ne ?
humm.. jap, baiki :)
haish , saya buat tak jadi la , dia asyik cakap error je terus , macm mane ?
xde pon head..
Post a Comment
... Back to the blog?