Multi-User File Manager & Uploader with Progress Bar

September 19th, 2009 Script Posted in Java script, PHP script 1 Comment » 149 views

FileChucker is an AJAX-based web application that lets you accept file uploads on your own website. It’s simple to install (just one file), packed with features, fully configurable, nice looking, and very handy for when you want to share files with anyone. And during uploads FileChucker shows a progress bar & table, so the user knows how much time is left before the upload is complete.

FileChucker can also function as a full-fledged online file manager for your server: it can allow moving/renaming/deleting of uploaded files & folders right in the browser. Of course these features are configurable and password-protectable so you can customize FileChucker however you’d like.

To top it all off, FileChucker works in all major browsers (Moz/FF, IE, Opera, Safari), and runs on virtually any server, with no programming required! It’s a single Perl script, and most servers support Perl CGI scripts automatically; for the rare server that doesn’t, Perl can usually be easily added. If your site is more of a PHP site, don’t worry: FileChucker will run just fine alongside your PHP scripts, and you can even integrate it into your existing framework with a PHP virtual() call, if you want to!

Download now

AddThis Social Bookmark Button

Creating Rotation (random) your banner !

April 16th, 2009 Script Posted in Java script No Comments » 85 views

This example will rotate through a set number of images. You need only change the variables in the first three lines of JavaScript and the format of the image tag to meet your needs.

<script type=”text/javascript”>
maxImages = 50; // set this to the max number of image rotations to be displayed
rotationDelay = 2000; // set this to the rotation delay in milliseconds
imageArray = new Array(”picture.jpg”,”picture2.jpg”,”picture3.jpg”); // specify the images you want in the rotation
// change nothing below this line
imageNumber = 0;
totalImageCount = 0;
imageCount = imageArray.length;
function imageRotation() {
document.getElementById(’image’).src = imageArray[imageNumber];
imageNumber++;
totalImageCount++;
if (imageNumber == imageCount) imageNumber = 0;
if (totalImageCount <= maxImages) setTimeout(”imageRotation()”,rotationDelay);
}
</script>
<body onload=”imageRotation();”>
<img id=”image” src=”picture.jpg” style=”width: 100px; height: 100px;” alt=”" />

AddThis Social Bookmark Button

How to Create Zoom Photo in your Blogger ?

April 6th, 2009 Script Posted in How to, Java script, Themes Blogger No Comments » 104 views

Zoom Your Images In Blogger Posts is the script you would have seen in many websites to show of there image demos as large one as its very nice way to show there images and templaes.Today i will tell you how to install this script in your blog so as the images in your post can be clicked and viewed in larger size.

Firstly Download these two scripts to your computer FancyZoom.js and FancyZoomHTML.js

Upload these files to your server which you use to upload js files or can use mine too but exceed bandwidth can be an problem for you in near future.

Now Goto LAYOUT > Edit Html and Find </head> tag
Place the below codes before it.

  1. <script src=’http://www.vietchecker.com/jsblogger/FancyZoom.js’ type=’text/javascript’></script>
  2. <script src=’http://www.http://vietchecker.com/jsblogger/FancyZoomHTML.js’ type=’text/javascript’></script>

Look at down a little and find this code <body>

Reply this code <body> and change with the code:

<body onload=”setupZoom()”>

Click SAVE TEMPLATE. Now whenever you embed image in your post use cods like this below:

<a href=”http://urldomain.com/image.gif”><img height=”200″ src=”http://urldomain.com/image.gif” width=”300″ border=”0″ /></a>

Width=”300″ and height=”200″ are the size of images so that the shown images are smaller that the original images.You can change them with your own sizes.

When you click theses images they will be zoomed on your same screen and click zoomed image again to make it small again.

AddThis Social Bookmark Button

Updated: Tag cloud /Label cloud in Blogger

April 2nd, 2009 Script Posted in How to, Java script, Themes Blogger No Comments » 254 views

Here is the code and setup information to use the Label Cloud in New Blogger. First you obviously have to have a blog on New Blogger, and you MUST be using the layouts templates, (this isn’t available for classic templates, or FTP published blogs ) and you must have some posts labeled already. (There needs to be at least ONE label with more than ONE entry or the scripts hit a bug - so have at least one label with more than one entry before starting).

Make sure you backup your template before making any changes! Log into Blogger and go to your layouts section. On the ‘Page Elements’ setup page
make sure you have a label widget already installed where you want it (it can be moved around later). Then go to the Edit HTML settings and leave the widgets NOT exapanded. It will make things easier to deal with.

Now the code comes in 3 parts. A section for the stylesheet, a configurations section, and then the actual widget itself.

The first part to put in is the stylesheet section. The following code needs to be copied and inserted into your stylesheet, which in the layouts is marked out by the <b:skin> tags.

Easiest thing to do is find the closing skin tag:

]]></b:skin>

and place the code right BEFORE that. Here it is, copy and paste without modification right now. I’ll explain what can be tweaked later.

/* Label Cloud Styles
———————————————– */
#labelCloud {text-align:center;font-family:arial,sans-serif;}
#labelCloud .label-cloud li{display:inline;background-image:none !important;padding:0 5px;margin:0;vertical-align:baseline !important;border:0 !important;}
#labelCloud ul{list-style-type:none;margin:0 auto;padding:0;}
#labelCloud a img{border:0;display:inline;margin:0 0 0 3px;padding:0}
#labelCloud a{text-decoration:none}
#labelCloud a:hover{text-decoration:underline}
#labelCloud li a{}
#labelCloud .label-cloud {}
#labelCloud .label-count {padding-left:0.2em;font-size:9px;color:#000}
#labelCloud .label-cloud li:before{content:”" !important}

This next section is the configuration section for the Cloud. It also goes in the head of the template, but outside of the stylesheet part. Easiest thing to do again is to find the closing stylesheet tag:

]]></b:skin>

But this time place the code right AFTER that line, but BEFORE the </head> tag. Here it is.

<script type=’text/javascript’>
// Label Cloud User Variables
var cloudMin = 1;
var maxFontSize = 20;
var maxColor = [0,0,255];
var minFontSize = 10;
var minColor = [0,0,0];
var lcShowCount = false;
</script>

All of these settings can be changed but I’ll explain them in a moment. The defaults will work for now.

Now the widget itself. Scroll down and find the label widget in your sidebar. It should look something like this.

<b:widget id=’Label1′ locked=’false’ title=’Labels’ type=’Label’/>

Copy the following code (from beginning widget tag to ending widget tag) and replace the line above with it.

View this code here

Now if all has gone well, and you have posts already labeled, then if you preview the blog you should see some form of the Cloud appearing. If it doesn’t appear, then something went wrong. You should probably back out and try it again from the start.

Update : I’ve found 2 things to check for first if the label cloud isn’t showing. First make sure that at least one of your labels has more than one entry. A bug in the script causes it to fail when all the labels have only one entry.(As soon as any label has more than one entry, then it should be ok from then on) Also, make sure that none of your labels contain quote marks ” . Most likely the cloud with it’s default settings won’t be what you ultimately want. But all the colors and sizes are configurable to match your tastes. If the cloud is appearing in preview then you can go about changing some of the variables so they suit.

The settings in the Variables section will be where you make most of your adjustments. Here I’ll explain what each setting does.

var cloudMin= 1;

This setting you can use to limit the number of labels shown (for example if you have a lot of labels). Leave the setting at 1 to show ALL labels. If you enter in a higher number, then only labels that have at least that number of entries will appear in the cloud.

var maxFontSize = 20;
var maxColor = [0,0,255];
var minFontSize = 10;
var minColor = [0,0,0];
var lcShowCount = false;

The lines for:

  1. maxFontSize
  2. maxColor

Do what you may think they do. The first one sets the size (in pixels) of the label with the most amount entries. The maxColor sets the color of that entry (in RGB format). Similiar with the next two

  1. minFontSize
  2. minColor

Just these are for the label with the least amount of entries. Again the size is in pixels, the color is in RGB format. Any labels between the two will get their color/sizes based on how many labels they are, and where their entry count falls, giving the much desired cloud effect.

From my experimenting, there are many factors that make up a pleasant looking cloud. From color/size choice, to the number of actual labels, to how well dispersed the entries are amoung the labels. 3 Labels don’t make a good cloud as there isn’t much to work with. You just have to experiment around to see what looks good with your setup.

IMPORTANT, when change the color settings, Keep them in the format supplied. In between the [] and the numbers separated by commas. The default colors are BLUE for the max and BLACK for the min.

You can select any valid RGB color combination. If you don’t know what RGB colors are, don’t worry. It’s just a way of defining a color. You can use many charts on the Internet to get the correct RGB value for the color you want to try. Here’s one that is fairly good.

RGB Color Code Chart Remember, if you get the 3 sets of numbers to enter them in correctly. Inside the [ ] separated by commas.

Also experiment with different font sizes. Again it depends on how many entries, how dispersed they are, and how much room for the cloud is available as to what looks good.
The last variable there is

lcShowCount

This can either be false (default) or true. All this does is turn off/on the post count displayed
next to the label. Usually in a ‘traditional’ cloud the count isn’t used. But if you go to a
‘flat’ listing then it’s sometimes useful to turn it on.

Now to the CSS section. Most people won’t need to tweak these much, and it’s not necessary to
understand what all those entries are for. Most are just to make sure that other styling
elements from the rest of your page don’t inherit in and ruin the cloud. But there are a few
that you may want to change to suit.
The first line

#labelCloud {text-align:center;font-family:arial,sans-serif;}

You could change the fonts used in the cloud here if you wanted.
Also, the text-align statement can also be changed. I have it set to center by default but you
could use

text-align:justify;
text-align:right;
text-align:left;

If those suit better.

The next line

#labelCloud .label-cloud li{display:inline;background-image:none !important;padding:0 5px;margin:0;vertical-align:baseline !important;border:0 !important;}

Well don’t worry about most of it unless you are a hardcore CSS’er. The only one of real
importance is the first entry

display:inline;

You can change that to

display:block;

To get the ‘Flat’ (each entry on it’s own separate line) listing of the weighted entries.
Usually if that is set to block you would probably want to change the sort frequency from
alphabetical to frequency. You do that by editing the widget from the Page Elements tab in
Blogger.

And the last bit I’ll mention is the line

#labelCloud .label-count

If you set the lcShowCount variable to true to show the post counts, you could change the
color/size of those numbered entries with that line.

AddThis Social Bookmark Button

Add label clouds in your blogger

April 2nd, 2009 Script Posted in How to, Java script, Themes Blogger 3 Comments » 290 views

A tag cloud or label cloud for blogger is a list of all the labels used within a blogger blog displayed with style.You can see a demo of the Label cloud widget here on my site. This Tag Cloud Widget was originally developed by phydeaux3. I have just simplified and made it easier to install..

You can see a good implementation of this label cloud widget on one of our readers blog -Speak Media Blog.
First Of all Goto Your blogger Layout>Page Elements page and add a Labels Widget there..You can Do that using the Add a Page Element Option on that Choose to sort the labels Alphabetically when prompted.

After Adding the Label Widget Goto Layout>Edit Html (Do not expand the widget templates for the sake of easy explanation)

You will find some code similar to:

<b:widget id=’Label1′ locked=’false’ title=’Labels’ type=’Label’/>

Now Replace that with:

View this content

Next find :

]]></b:skin>

…and replace it with:

#labelCloud {text-align:center;font-family:arial,sans-serif;}
#labelCloud .label-cloud li{display:inline;background-image:none !important;padding:0 5px;margin:0;vertical-align:baseline !important;border:0 !important;}
#labelCloud ul{list-style-type:none;margin:0 auto;padding:0;}
#labelCloud a img{border:0;display:inline;margin:0 0 0 3px;padding:0}
#labelCloud a{text-decoration:none}
#labelCloud a:hover{text-decoration:underline}
#labelCloud li a{}
#labelCloud .label-cloud {}
#labelCloud .label-count {padding-left:0.2em;font-size:9px;color:#000}
#labelCloud .label-cloud li:before{content:&quot;&quot; !important}
]]></b:skin>

Save your template and now you should get a working Label Cloud On your Blog.

AddThis Social Bookmark Button

PHP script clock for your website

March 13th, 2009 Script Posted in Java script, PHP script No Comments » 49 views

Keep save as this code with filename.php

<?
// Binary Clock
// script copyright© 2002 Andreas Tscharnuter
// questions? contact: psychodad@psychodad.at || [url=http://www.psychodad.at/clock/]http://www.psychodad.at/clock/[/url]
// free to use, copy and modify but leave comments untouched;)
// just include this file where your binary clock should appear
// version 1.2 03 September 2003

// below you can change different settings
// and remember to drink m000re milk!

$size = “40″; //size of one square in pixel (height & width)
$hourdiff = “0″; //difference between server time and local time + or -
$bgon = “#cc0000″; //set color in hex for on (#cc0000 = darkred); check google.com for “hex color table” if you dont know how to use hex colors
$bgoff = “#000000″; //set color in hex for off (#000000 = black); check google.com for “hex color table” if you dont know how to use hex colors
$enableclock = “1″; //switch the “real clock” beneath binary clock on(1) or off(0)

/*************************************
nothing needs to be changed below here
*************************************/
$std = str_pad((date(”H”) + $hourdiff + 24) % 24,2,”0″,STR_PAD_LEFT);
$min = date(”i”);
$sec = date(”s”);

if ($std > 24 || $std < 0) {
die(”<b><font color=\”#cc0000\”>$std:$min no way… =)</font></b>”);
}
$std1 = decbin(substr($std,0,1));
$std2 = decbin(substr($std,1,1));
$min1 = decbin(substr($min,0,1));
$min2 = decbin(substr($min,1,1));
$sec1 = decbin(substr($sec,0,1));
$sec2 = decbin(substr($sec,1,1));
function reihe($kette,$anfang,$ende) { //background output
global $size,$bgon,$bgoff;
$pad = str_pad($kette,4,”0″,STR_PAD_LEFT);
if(substr($pad,$anfang,$ende)==1) {
echo “<td width=\”$size\” height=\”$size\” bgcolor=\”$bgon\”>&nbsp;</td>”;
} else {
echo “<td width=\”$size\” height=\”$size\” bgcolor=\”$bgoff\”>&nbsp;</td>”;
}
}
?>
<table cellpadding=”0″ cellspacing=”1″ border=”0″ bgcolor=”#000000″>
<tr>
<td>
<table cellpadding=”0″ cellspacing=”1″ border=”0″ bgcolor=”#cccccc”>
<tr>
<td colspan=”2″ align=”center”><i><font face=”verdana” size=”1″>hour</font></i></td>
<td colspan=”2″ align=”center”><i><font face=”verdana” size=”1″>min</font></i></td>
<td colspan=”2″ align=”center”><i><font face=”verdana” size=”1″>sec</font></i></td>
</tr>
<tr><?
reihe($std1,0,1);
reihe($std2,0,1);
reihe($min1,0,1);
reihe($min2,0,1);
reihe($sec1,0,1);
reihe($sec2,0,1);
?></tr>
<tr><?
reihe($std1,1,1);
reihe($std2,1,1);
reihe($min1,1,1);
reihe($min2,1,1);
reihe($sec1,1,1);
reihe($sec2,1,1);
?></tr>
<tr><?
reihe($std1,2,1);
reihe($std2,2,1);
reihe($min1,2,1);
reihe($min2,2,1);
reihe($sec1,2,1);
reihe($sec2,2,1);
?></tr>
<tr><?
reihe($std1,3,1);
reihe($std2,3,1);
reihe($min1,3,1);
reihe($min2,3,1);
reihe($sec1,3,1);
reihe($sec2,3,1);
?>
</tr>
<?
if ($enableclock == 1) { //disables,enables bottom clock
?>
<tr>
<td align=”center” colspan=”2″><font face=”verdana” size=”1″><? echo $std ?></font></td>
<td align=”center” colspan=”2″><font face=”verdana” size=”1″><? echo $min ?></font></td>
<td align=”center” colspan=”2″><font face=”verdana” size=”1″><? echo $sec ?></font></td>
</tr>
<? } ?>
</table>
</td>
</tr>
</table>


Short php code clock any where on your site:

This display infomartion data/time:

AddThis Social Bookmark Button

How to add box search in Blogger ?

February 15th, 2009 Script Posted in How to, Java script, Themes Blogger No Comments » 55 views

Every blog should include a search box to make finding things easier. Follow these step-by-step instructions to add one to your blog today.

search_box_blogger

Step 1: Log into your Blogger.com account.
Step 2: Click the Layout tab from your blog Dashboard.
Step 3: Click Page Elements.
Step 4: Click Add a Gadget above the section you want to put your search box in.
Step 5: Click the plus sign next to HTML/Javascript.
Step 6: Type Search this site (or whatever you want) in the Title box or leave it blank.
Step 7: Copy and paste this HTML code in the text area.
To modify the width of the search box change the size=”XX” number.
To center the search box add:

<center> before <form… and </center> after </form>.

<form id=”searchthis” action=”/search” style=”DISPLAY: inline” method=”get”><input id=”search-box” name=”q” size=”25″> <input id=”search-btn” value=”Search” type=”submit”></form>

Step 8: Click Save.
Step 9: Click Preview.
You may have to drag the search gadget into a new area until you get it positioned where you want it to show on the blog.
Step 10: To test the search functionality click View Blog.

Now you have a simple way for viewers to search your blog and the results will appear embedded in your main blog pages.

AddThis Social Bookmark Button

How to add adsense into Blogger ?

February 14th, 2009 Script Posted in Google adsense, How to, Java script, Themes Blogger No Comments » 46 views

1. Adsense Within Posts:

As I mentioned above, you can’t place Adsense ads within the post body using the built-in gadgets. To do this, we’re going to have to put our Adsense code directly into the template.

We still can’t put the ad unit in the middle of the post, but we can put it at the top of the post, below the title, with the text wrapping around it. Great! That’s proven to be the most effective placement, so that’s exactly what we want.

Now, the technique used to do this isn’t new. In fact I learned how to do it by reading Bonnie Calhoun’s Wrapping Adsense in Blog Post. You can go and read her post for the full instructions, but here are the basic steps:
Get your Adsense code from the Adsense website
Parse the code to replace special characters with HTML entities
In Blogger, go to Layout, then choose Edit HTML
Make a backup of your template by clicking Download Full Template
Click Expand Widget Templates
Search for:

<data:post.body/> or <p><data:post.body/></p>
Place your Adsense code on the line immediately above this
Save the template

Note 1: It’s very important to parse the code as per Bonnie’s site (ie replace < with &lt; and > with &gt; etc). If you do not do this, your Adsense units will not display correctly and you risk being banned by Google.

Note 2: You probably want to place your Adsense code within a floating div, so that the text wraps around it.

Here’s what the code will look like (with the publisher specific information removed). The first and last lines should already exist in the template, the rest is what you’re adding.

Before paste this code adsense, you should encode it same:

<div class=’post-body entry-content’>
<div style=’float: left;’>
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!–
google_ad_client = &quot;pub-xxxxxxxxxxxxxxxx&quot;;
google_ad_host = &quot;pub-xxxxxxxxxxxxxxxx&quot;;
google_ad_slot = &quot;xxxxxx&quot;;
google_ad_width = 336;
google_ad_height = 280;
//–&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
</div>
<p><data:post.body/></p>

This solves the problem of getting Adsense to appear within the post, driving up CTR. However, the sidebar unit will still disappear on the home page, as there will be more than 3 units on the page (one embedded in each post).

2. Only Showing Adsense In Posts On A Single Post:

To solve the problem of the sidebar unit disappearing, I decided that I only wanted to show Adsense within the post (ie solution in the previous section) on single posts. I didn’t want this ad unit to appear on the home page or on archive pages.

It would be easy enough to do this in WordPress / PHP, but I had no idea how to customize a Blogger template. I consulted Blogger’s Help facility and found a list of Layouts Data Tags, which let me see what could be done. Despite the options being fairly limited, I found the answer I needed: The pageType tag, which can have a value of ‘item’, ‘archive’ or ‘index’.

My XML coding skills are a little rusty, but thankfully it wasn’t hard to work out how to include some HTML based on the type of page:

<b:if cond=’data:blog.pageType == “item”‘>
Put your adsense code here
</b:if>

This says: If it’s a single post, include the HTML (obviously you have to put it in). So single posts (pageType of item) will display the HTML, but the home page (pageType of index) and archive pages (pageType of archive) will not.

Applying this to our Adsense problem, here is the full code you need (with the publisher specific information removed). Use this instead of the code in the Adsense Within Posts section above. The first and last lines should already exist in the template, the rest is what you’re adding.

<div class=’post-body entry-content’>
<b:if cond=’data:blog.pageType == “item”‘>
<div style=’float: left;’>
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!–
google_ad_client = &quot;pub-xxxxxxxxxxxxxxxx&quot;;
google_ad_host = &quot;pub-xxxxxxxxxxxxxxxx&quot;;
google_ad_slot = &quot;xxxxxxxxxx&quot;;
google_ad_width = 336;
google_ad_height = 280;
//–&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
</div>
</b:if>
<p><data:post.body/></p>

Of course, this means that only two Adsense units will be shown on the home page. If you’re doing things properly, most of your visitors should arrive on single posts, via the search engines, so this solution’s good enough for me.

Save template and test it now !

AddThis Social Bookmark Button

How to insert Banner, Logo in Blogger ?

February 14th, 2009 Script Posted in How to, Java script, Themes Blogger No Comments » 47 views

It’s equally easy to include a logo or other graphic in the header, though how you proceed will depend on whether you retain or replace the existing title text.
Retaining the Title Text
If you wish to keep the existing title text, including a graphic in your header is easy. The key here is that you can put HTML, including the <IMG> tag, in Blogger’s Title and Description fields. To add a graphic to existing text:

blogger_logo_add
Open the Settings > Basic tab
Click in the Title field, to the left of your title text
Type the <IMG> tag, pointing to the location of the image you wish to use, as in

<IMG SRC=”[http://w3code.net/logo.gif]“>

Save your changes and preview your blog

You’re done!

Replacing the Title Text
Things get trickier if you want to replace the contents of the Title field with graphically stylized text. Sure, you can paste an <IMG> tag into the field, but if you eliminate the title text, your blog name won’t show up anywhere.

clear_title_tag
A better approach is to use the CSS Fahrner Image Replacement (FIR) technique, an elegant solution that’s at the heart of CSS-intensive sites like ZenGarden. In a nutshell, the FIR technique uses stylesheets to replace text with an image, essentially hiding the text from standards-compliant browsers.

This is accomplished by creating a style that sets the text to display: none. Then another style displays a background image instead of the hidden text. You use CSS to control the positioning of the replacement image.

This approach introduces accessibility barriers because display: none renders any element with this declaration invisible to certain screen readers (and possibly to search engines as well). Many people are working on FIR variants that address this problem. In the meantime, I decided to try a compromise solution. Feel free to change the settings below to work for you:
Open your blog template:

Place an empty <SPAN></SPAN> container in the Header area, after <$BlogTitle$>. You will use this to hook a style onto in a moment.
Scroll up to the style declaration part of your template, and modify the #blog-title style. (Instead of display:none; I used the attributes below. Setting the font-size to 2% makes the title all but invisible, but keeps it there for search engines and screen readers. At least that’s my theory — I have no way to test this.)

#blog-title {
font-size:2%;
line-height:1.2em;
font-weight:normal;
color:#ffffff;
text-align:center;
text-transform:uppercase;
letter-spacing:.2em;
}

Create a new style called #blog-title span, as per the example below. You will need to experiment a bit, but basically this code centers a graphic over the hidden text. The background:url argument specifies the image to use.

#blog-title span {
display:block;
top:0;
width:334px;
margin-top:10px;
margin-right:auto !important;
margin-left:auto !important;
z-index:1 !important;
height:60px;
background:url(”[your domain and filename]“) no-repeat;
cursor:hand;
}

Save your template changes and preview your blog. Done !

AddThis Social Bookmark Button

Pager Script version 1.0 for Blogger

February 14th, 2009 Script Posted in How to, Java script, Themes Blogger No Comments » 65 views

For you have learned through language web programming as PHP, ASP, JAVA, … is not sure what is termed Pager (Pages or, English is “the site”). But if you get familiar with blogger, then maybe it is quite new, although you have seen it.

blogger_pages

Examples of this easy, when you search with 1 keyword is in Google, for example, found 20000 results, Google will show only 10 results first and the remaining we will follow the access numbers Page 1,2,3,4,5,6,7,8,9,10 ,….. below the bottom of the pages. Dividing How will we access to that page quickly instead of only a button and Prev Page Next Page, which is very convenient, you can access the page 10 without having to click Next Page 10 times. Code division numbers 1,2,3 … is the code page (Pages).

Blogger Blog * Spot to the current case (July 2008) has not supported the code page automatically. That makes the blog more messages difficult when browsing to see, and that access to old messages on a long and difficult to press by one too many times Next or Prev.

See the need to have Pager blog, I also try to complete it for me and as well as for you, so our blog becomes more professional and more convenient.

While writing the code for Pager blogger is very difficult but the installation of re-use is easy. You will have utility only through several operations and copy paste code into your blog. Here are instructions:

1. For Blogger Layout

- Go to Edit HTML, click select the Expand Widget Template, then back up a Template for the accident.

- How not know, you must be to find (not the comment below) the following code:

<- Navigation ->
<b:include name=’nextprev’/>

and insert the code red just below it, as follows:

<b:if cond=’data:blog.pageType == &quot;index&quot;’>
<!– Pagers v1.0 - www.w3code.net –>
<script type=’text/javascript’>

var home_page = &quot;http://www.vuicafe.com/&quot;;
var blogID = &quot;1193242412365517650&quot; ;

var pager_max_main = 5;
var pager_num_of_button = 13;

var pager_link_alt_text = &quot;Click to go to page&quot;;
var pager_total_text = &quot;Total: &quot;;
var pager_posts_text = &quot; posts, &quot;;
var pager_pages_text = &quot; pages.&quot;;
</script>
<script src=’http://trongdai.net/blogger_pager_script_v10.js’ type=’text/javascript’></script>
<hr/><div id=’blogpagerShowToTal’ style=’margin:3px 2px 3px 2px; padding:2px; font-weight:bold’></div>
<div id=’blogpager’ style=’margin:3px 2px 3px 2px; padding:2px;
border-bottom:1px #090 dotted; font-weight:bold’>Jump to page: </div>
<script type=’text/javascript’>
window.onLoad = createBlogPager();
window.onLoad = pager_showTotal();
</script>
</b:if>

You note the change by following the code:

var home_page = “http://www.vuicafe.com/”;

containing home address, please change it to your address.

var blogID = “1193242412365517650“;

containing blogID you, if you still do not know how to get your blog’s ID, please refer here.

pager_max_main var = 5;

is the number of messages you have for the home setting. The path of the setting are:

Settings - Formatting - Show? Posts on the main page (check the post, do not select the date).

pager_num_of_button var = 13;

ask you to report the number of buttons you want now. For example, your blog’s 100 items, 10 items per page, you will have 10 buttons. But if you when you blog on 150 items, a number button is 15 and still is 13, accompanied by the drop-down menu of the button (you see the preview here). If we do not limit the number buttons, then the number will increase sales by messages, and so is not beautiful anymore. Depending breadthwise of the column by which you select the numbers for list. I was 13.

2. For Blogger Classic

You simply insert the following code to close the card right after the </ Blogger>. In case your blog has multiple insert other code hack, you can not put in the position here, in general, depending where you feel is reasonable.

<MainPage>
<!– Pager v1.0 - www.w3code.net –>
<script type=’text/javascript’>

var home_page = “http://www.vuicafe.com/”;
var blogID = “1193242412365517650” ;

var pager_max_main = 5;
var pager_num_of_button = 13;

var pager_link_alt_text = “Click to go to page”;
var pager_total_text = “Total: “;
var pager_posts_text = ” posts, “;
var pager_pages_text = ” pages.”;
</script>
<script src=’http://trongdai.net/blogger_pager_script_v10.js’
type=’text/javascript’></script>
<hr/><div id=’blogpagerShowToTal’ style=’margin:3px 2px 3px 2px; padding:2px; font-weight:bold’></div>
<div id=’blogpager’ style=’margin:3px 2px 3px 2px; padding:2px;
border-bottom:1px #090 dotted; font-weight:bold’>Jump to page: </div>
<script type=’text/javascript’>
window.onLoad = createBlogPager();
window.onLoad = pager_showTotal();
</script>
</MainPage>

Parameters should be setting as Section 1.

3.Style for Pager

All buttons in Pager is defined by class . pages. If you know about CSS can set the style for this button. Below is just a style for example:

<style type=”text/css”>
. pages (
background: # CCC;
border: 0px solid # ccc;
padding: 2px;
)
</ style>

* Pager Code not only on the number of pages, number of posts, the blog links for them but also work with each label, when you open label 1, it will count in the label how many items, classified into how many pages, and link to the page.  Pager Script version 1.0 for Blogger

AddThis Social Bookmark Button