Ads 468x60px

Pages

Tampilkan postingan dengan label top. Tampilkan semua postingan
Tampilkan postingan dengan label top. Tampilkan semua postingan

Sabtu, 14 September 2013

How to add go to top and go to bottom buttons Using jQuery in Blogger

The Up and Down buttons can be used to navigate to the top and bottom of the page content, especially when on the main page there are many articles or when an article has too many comments. These buttons have a fadeIn and fadeOut effect, this means that they will fade slightly when we are scrolling to the top or bottom of the page and additionally, have the function of going up/down the blog.

blogger widgets, blogger navigation

Demo

You can see a live demo on my blog, the buttons are located on the right side.

How to put Go Up and Go Down buttons using the jQuery slide effect

Step 1. Go to Template, click on the Edit HTML button


Step 2. Select the "Expand Widget Templates" box

Step 3. Search (using CTRL + F) for the following piece of code:

]]></b:skin>

Step 4. Just above this code, paste this one:

/* Up and Down Buttons with jQuery
----------------------------------------------- */
.button_up{
padding:7px; /* Distance between the border and the icon */
background-color:white;
border:1px solid #CCC; /* Border Color */
position:fixed;
background: white url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK_svw4My_S0xeEROPDpvBrM8Z7MQ1dh4RrTg6dq1fYm31XXpDZ3mUHmBif_y-8dbSI9J_hfNMAWY5As7n3FI-O3OtNHC3fgo58sR4XHmrgkMueC6Fvt-LBX2VfioM12V9A4o7DjDMeOg/s16/arrow_up.png) no-repeat top left;
background-position:50% 50%;
width:20px; /* Buttons width */
height:20px; /* Buttons height */
bottom:280px; /* Distance from the bottom */
right:5px; /* Change right to left if you want the buttons on the left */
white-space:nowrap;
cursor: pointer;
border-radius: 3px 3px 3px 3px;
opacity:0.7;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
.button_down{
padding:7px; /* Distance between the border and the icon */
background-color:white;
border:1px solid #CCC; /* Border Color */
position:fixed;
background: white url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilLZ7TGGT3x1mV1h1U09TyTasD_UczNz8N6blvceF8ddjmAaZ77228CaiGYxskIMjz26INCxqckKJ0irRYdJO1DkHf1OymJIOl2CP4k_8WvXcXVCYq6DADcAS64kktNjYVz13bACjC25o/s16/arrow_down.png) no-repeat top left;
background-position:50% 50%;
width:20px; /* Buttons width */
height:20px; /* Buttons height */
bottom:242px; /* Distance from the bottom */
right:5px; /* Change right to left if you want the buttons on the left */
white-space:nowrap;
cursor: pointer;
border-radius: 3px 3px 3px 3px;
opacity:0.7;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}

Note:  - in green are some annotations that explains what styles you can modify on their left side.
           - You can change the arrows by changing the URLs in blue.
           - To change the buttons background color of buttons, change the white text with your color

Step 5. Now search (CTRL + F) for this tag:

</body>

Step 6. And just above it, paste the following code:

<script src=http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js type=text/javascript/>

<div class=button_up id=button_up style=display:none;/>
<div class=button_down id=button_down style=display:none;/>

<script>
//<![CDATA[
(function(){var special=jQuery.event.special,uid1=D+(+new Date()),uid2=D+(+new Date()+1);special.scrollstart={setup:function(){var timer,handler=function(evt){var _self=this,_args=arguments;if(timer){clearTimeout(timer)}else{evt.type=scrollstart;jQuery.event.handle.apply(_self,_args)}timer=setTimeout(function(){timer=null},special.scrollstop.latency)};jQuery(this).bind(scroll,handler).data(uid1,handler)},teardown:function(){jQuery(this).unbind(scroll,jQuery(this).data(uid1))}};special.scrollstop={latency:300,setup:function(){var timer,handler=function(evt){var _self=this,_args=arguments;if(timer){clearTimeout(timer)}timer=setTimeout(function(){timer=null;evt.type=scrollstop;jQuery.event.handle.apply(_self,_args)},special.scrollstop.latency)};jQuery(this).bind(scroll,handler).data(uid2,handler)},teardown:function(){jQuery(this).unbind(scroll,jQuery(this).data(uid2))}}})();

$(function() {
var $elem = $(body);
$(#button_up).fadeIn(slow);
$(#button_down).fadeIn(slow);
$(window).bind(scrollstart, function(){
$(#button_up,#button_down).stop().animate({opacity:0.2});
});
$(window).bind(scrollstop, function(){
$(#button_up,#button_down).stop().animate({opacity:1});
});
$(#button_down).click(
function (e) {
$(html, body).animate({scrollTop: $elem.height()}, 800);
} );
$(#button_up).click(
function (e) {
$(html, body).animate({scrollTop: 0px}, 800);
} );});
//]]>
</script>

Note: In case you want to remove the "Go to top" button, remove the 1st bolded code and to remove the "Go to bottom" button, remove the 2nd one.

Step 7. Finally, Save your Template. Enjoy!
Read More..

Minggu, 18 Agustus 2013

Top 10 Tips To Improve System Speed

1.Let your PC boot up completely before opening any applications.

2.Refresh the desktop after closing any application. This will remove any unused files from the RAM.

3.Do not set very large file size images as your wallpaper. Do not keep a wallpaper at all if your PC is low on RAM (less than 64 MB).

4.Do not clutter your Desktop with a lot of shortcuts. Each shortcut on the desktop uses up to 500 bytes of RAM

5.Empty the recycle bin regularly. The files are not really deleted from your hard drive until you empty the recycle bin.

6.Delete the temporary internet files regularly.

7.Defragment your hard drive once every two months. This will free up a lot of space on your hard drive and rearrange the files so that your applications run faster.

8.Always make two partitions in your hard drive. Install all large Softwares (like PSP, Photoshop, 3DS Max etc) in the second partition. Windows uses all the available empty space in C drive as virtual memory when your Computer RAM is full. Keep the C Drive as empty as possible.

9.When installing new Softwares disable the option of having a tray icon. The tray icons use up available RAM, and also slow down the booting of your PC. Also disable the option of starting the application automatically when the PC boots. You can disable these options later on also from the Tools or preferences menu in your application.

10. Protect your PC from dust. Dust causes the CPU cooling fan to jam and slow down thereby gradually heating your CPU and affecting the processing speed. Use compressed air to blow out any dust from the CPU. Never use vacuum.

RAM IS THE WORKING AREA (DESKTOP) OF THE CPU, KEEP IT AS EMPTY AND UNCLUTTERED AS POSSIBLE!
Read More..

Senin, 29 Juli 2013

Top 10 Tips Improve Windows XP Performance

Some Time Pc is very loading. use this trick after your pc is good working. Follow This 10 Step:

1.) Disable file indexing. The indexing service extracts information from documents and other files on the hard drive and creates a "searchable keyword index." As you can imagine, this process can be quite taxing on any system. The idea is that the user can search for a word, phrase, or property inside a document, should they have hundreds or thousands of documents and not know the file name of the document they want. Windows XPs built-in search functionality can still perform these kinds of searches without the Indexing service. It just takes longer. The OS has to open each file at the time of the request to help find what the user is looking for.

Most people never need this feature of search. Those who do are typically in a large corporate environment where thousands of documents are located on at least one server. But if youre a typical system builder, most of your clients are small and medium businesses. And if your clients have no need for this search feature,
I recommend disabling it.

1 double-click the My Computer icon.
2 right-click on the C: Drive, then select Properties.
3 Uncheck "Allow Indexing Service to index this disk for fast file searching." and click Apply button
4 Check at "Apply change to C:, subfolders and files" and click OK.
If a warning or error message appears (such as "Access is denied"), click the Ignore All button.

2.) Once a month, run a disk cleanup. Heres how:

1 Double-click the My Computer icon.
2 Then right-click on the C: drive and select Properties.
3 Click the Disk Cleanup button
4 Check at Temporary files and click OK.

3.) Remove all spyware from the computer. Use free programs such as AdAware by Lavasoft or SpyBot Search & Destroy. Once these programs are installed, be sure to check for and download any updates before starting your search. Anything either program finds can be safely removed. Any free software that requires spyware to run will no longer function once the spyware portion has been removed; if your customer really wants the program even though it contains spyware, simply reinstall it. For more information on removing Spyware visit this Web Pro News page.

4.) Remove any unnecessary or unused programs from the Add/Remove Programs section of the Control Panel.

5.) Turn off any and all unnecessary animations, and disable active desktop. In fact, for optimal performance, turn off all animations.
Windows XP offers many different settings in this area. Heres how to do it:

1 Click Start button , Setting and Control Panel
2 Double click on System icon
3 Click on the Advanced tab. and Select the Settings button located under Performance.
4 Feel free to play around with the options offered here, as nothing you can change will alter the reliability of the computer - only its responsiveness.

6.) Visit Microsofts Windows update site regularly, and download all updates labeled Critical. Download any optional updates at your discretion. You Visit How to Update My Computer?

7.) Update the customers anti-virus software on a weekly, even daily, basis. Make sure they have only one anti-virus software package installed. Mixing anti-virus software is a sure way to spell disaster for performance and reliability.

8.) Do not partition the hard drive. Windows XPs NTFS file system runs more efficiently on one large partition. The data is no safer on a separate partition, and a reformat is never necessary to reinstall an operating system. The same excuses people offer for using partitions apply to using a folder instead.

For example, instead of putting all your data on the D: drive, put it in a folder called "D drive." Youll achieve the same organizational benefits that a separate partition offers, but without the degradation in system performance. Also, your free space wont be limited by the size of the partition; instead, it will be limited by the size of the entire hard drive. This means you wont need to resize any partitions, ever. That task can be time-consuming and also can result in lost data.

9.) If the PC has a CD or DVD recorder, check the drive manufacturers Web site for updated firmware. In some cases youll be able to upgrade the recorder to a faster speed. Best of all, its free.

10.) At least once a year, open the computers cases and blow out all the dust and debris. While youre in there, check that all the fans are turning properly.
Read More..