>

8/24/2010

Baby Sleep Aids - so that everyone can Sleep Well

Baby Sleep Aids - so that everyone can Sleep Well
How many times in recent weeks have you tried to get your baby to sleep but in vain? Millions of families go through this every night and when all else fails, the baby sleep can help you get some sleep you deserve and thirst.
The problem is that there are many baby sleep aids available, so that no one would you choose? Examples of baby sleep aids that are commonly used and you can try to see if they will help solve the problem of sleep for your baby ..
Firstly, how can you go wrong with the coverage good old days? At one point, each of us hooked us with a baby blanket. The comfort, safety, and the heat will leave a comfortable feeling for the baby and allow him to relax if he is having trouble sleeping. This is one of the best and most used baby sleep aid ever.
As a variation of that, you can use another transitional object like a teddy bear, or maybe t-shirt mom, so your baby can live with a smell he or she is to ease.
Unfortunately, there are times when a blanket or other object just transition will not be enough, then you might consider using another help baby sleep baby sleep or technical.
Night lights are also common sleeping baby and can help make your child feel a little more comfortable in their dark environment. Although we can not know, babies can often wake up and cry because they are not used to being alone, and they do not recognize their environment. A light at night will give them security when they open their eyes. Being in a familiar environment and be able to see the baby toys over the bed or out of the ceiling will be put at ease.
Music or sounds are also major types of baby sleep aids that you can try if you have not already. Soft music and carefree, like classical music at low volume is very soothing to the ears of a baby who can help them sleep. You can even leave the music playing throughout the night so that helped. Otherwise, white noise, which may seem dreadful to adults, can be very soothing for a baby. A fan, having the television on, or even the sounds of nature .... birds, rain or sounds of whales are very common. There are also white noise CD, you can buy with the sound of a vacuum cleaner or washing machine etc. Again, this sounds a bit strange, but can really help.
Although all these aids are able to sleeping baby and many parents demonstrate their effectiveness, it is also possible that none of them can work for your child. No two children are the same and so there is unfortunately no single panacea for the problems baby sleep. However, a few proven techniques baby sleep, a sleep routine and help your baby sleep weird thrown in for good measure, you and your baby may soon be getting the full nights sleep you deserve.
»»  read more

Create a "Recent Post" for each Label at Homepage

After the procedure reference sites have found a way of Fandung similar. Same procedure described above, will also create the categories page, each column corresponds to a label. Latest articles of the label that will display a thumbnail image attached, other posts will be displayed by list, which included articles describing effects. But with Fandung, sorted and code rewritten to show more beautiful, more professional.
1. Login blog
2. In the layout
3. In the HMTL code editing
4. Paste the CSS code below into the front lines of code ]]></ b: skin>
.mota{ position: relative; z-index: 0; text-decoration:none; }

.mota:hover{ background-color: transparent; z-index: 50; }

.mota span{ position: absolute; background-color: #ffffff; padding: 5px; left: -1000px; border: 1px solid #000; visibility: hidden; color: black; text-decoration: none; }

.mota span img{ border-width: 0; padding: 2px; }

.mota:hover span{ padding:5px; visibility: visible; top: 20px; left:50px; width:250px; background:#ccc; text-align: justify; }
5. Save the template.
6. Create widget HTML / Javascript, and paste the code below:
<script language="JavaScript">
imgr = new Array();
imgr[0] = http://sites.google.com/site/fdblogsite/Home/nothumbnail.gif;

showRandomImg = true;
tablewidth = 245;

cellspacing = 1;
borderColor = "#30a1db";
bgTD = "#fff";

imgw = 130;
imgh = 130; imgwidth = 60;

imgheight = 60;
fntsize = 12; fontsize = 18;

fontsizecm = 11;
acolor = "#000";
titlecolor = "#f00";
aBold = true; icon = " » ";

text = "Nhận xét";
showPostDate = true;
poston = "Ngày đăng :";

minisummaryPost= 200;
summaryPost = 350;
summaryFontsize = 12;
summaryColor = "#000"; icon2 = " » ";

numposts = 8;
sobaiviet = 10;

label = "Love";
nhan= "Tình Yêu";

home_page = "http://fandung.blogspot.com/"; </script>

<script src="http://fandung.110mb.com/label-tin247/a-label.js" type="text/javascript"></script>
<script src="http://fandung.110mb.com/label-tin247/b-label.js" type="text/javascript"></script>

Wish you success.

Also, to avoid cases like last time encounter with the Samba host, i send to you 2 link file .js used in this procedure, in case 110mb.com fail, you can upload it to a free host with which to use.

File 1 - http://fandung.110mb.com/label-tin247/a-label.js download (here)
File 2 - http://fandung.110mb.com/label-tin247/b-label.js download (here)
»»  read more

Trick is to create hidden buttons add-on widgets

By inserting a small java script code in the widget code in Edit HTML, you can create a link button located in the header of each widget that allows hide / show widget that when clicked on it. Snippet from the blog reference Fandung With this procedure, you can hide content as illustration:
The steps procedure: 1. In the layout (layout) 2. In editing HTML code (edit the HTML code) 3. Choose "expanded utility model" (expand widgets template) 4. Find the code of the widget you want to insert this gadget, as in illustration, application procedure for utility Label, so we will find its code, and below is its code:
<b:widget id='Label1' locked='false' title='Nhãn' type='Label'> <b:includable id='main'> <b:if cond='data:title'> <h2><data:title/></h2> </b:if> <div class='widget-content'> <ul> <b:loop values='data:labels' var='label'> <li> <b:if cond='data:blog.url == data:label.url'> <data:label.name/> <b:else/> <a expr:href='data:label.url'><data:label.name/></a> </b:if> </li> </b:loop> </ul> <b:include name='quickedit'/> </div> </b:includable> </b:widget>
And add code to as below:
<b:widget id='Label1' locked='false' title='Nhãn' type='Label'> <b:includable id='main'> <script type='text/javascript'> //<![CDATA[ if(typeof(rnd) == 'undefined') var rnd = ''; rnd = Math.floor(Math.random()*1000); rnd = 'id-' + rnd; document.write('<a href="#" onclick="tmp = document.getElementById("' + rnd + '"); tmp.style.display = (tmp.style.display == "none") ? "block" : "none"; return false;" style="float:left;margin-right:5px;">'); //]]> </script>[▼/▲] <script type='text/javascript'> //<![CDATA[ document.write('</a>'); //]]> </script> <b:if cond='data:title'> <h2><data:title/></h2> </b:if> <div class='widget-content'> <script type='text/javascript'> //<![CDATA[ document.write('<div id="' + rnd + '" style="display:none;">'); //]]> </script> <ul> <b:loop values='data:labels' var='label'> <li> <b:if cond='data:blog.url == data:label.url'> <data:label.name/> <b:else/> <a expr:href='data:label.url'><data:label.name/></a> </b:if> </li> </b:loop> </ul> <script type='text/javascript'> //<![CDATA[ document.write('</div>'); //]]> </script> <b:include name='quickedit'/> </div> </b:includable> </b:widget>
Note: The code can change the way you like blue, specifically + [▼ / ▲]: change the character ▼ / ▲ according to your preference. + Float: left; margin-right: 5px;: this is the code locate the display of the button [▼ / ▲] on the title of the widget. If you want it shown on the right is the correct float: right; margin-right: 5px; 6. Save the template. If you want to add default text widget displays the edit line:
//<![CDATA[ document.write('<div id="' + rnd + '" style="display:none;">'); //]]>
to:
//<![CDATA[ document.write('<div id="' + rnd + '" style="display:block;">'); //]]>
»»  read more

8/23/2010

Catalog page - Page Navigation

Tricks to create a list of pages add Page Navigation for Blogger Mohamed Rias is one of the tricks on the list page - Page Navigation most common. Because this is a useful procedure, so you can find them anywhere, most famous Blogger Blogspot are using this procedure, such as:

* Bloggerbuster
* Bloggertricks
* Deluxetemplates
* Blogger Pluggin


But if you notice the comments in the tutorial, then you'll make a lot of questions because comments are not showing the list page. The main cause of this error is due to:

1. Domain name in the beginning of the script is only used for the blogger (. Blogspot.com) and has been explained in detail in the article: Amanda give explanation about this.

2. There will be some no name id Blogger template 'blog-pager.

- VnBlognet [dot] com: To solve these problems, abu-Farhan had changed the script and detailed instructions complete implementation of (the correction of errors) as follows:



1/ Access to Blogger:

- Access to Blogger Dashboard (Dashboard)>> Layout (Layout)>> Edit HTML (Edit HTML).


2/ Insert code in form CSS Template:

- Find (Ctrl-F) the tag ]]>

- Change ]]> with the following code:

.showpageArea {padding: 0 2px;margin-bottom:10px;margin-top:10px;
}

.showpageArea a {border: 1px solid #505050;
color: #000000;font-weight:normal;
padding: 3px 6px !important;
padding: 1px 4px ;margin:0px 4px;
text-decoration: none;
}
.showpageArea a:hover {
font-size:11px;
border: 1px solid #333;
color: #000000;
background-color: #FFFFFF;
}

.showpageNum a {border: 1px solid #505050;
color: #000000;font-weight:normal;
padding: 3px 6px !important;
padding: 1px 4px ;margin:0px 4px;
text-decoration: none;

}
.showpageNum a:hover {
font-size:11px;
border: 1px solid #333;
color: #000000;
background-color: #FFFFFF;

}
.showpagePoint {font-size:11px;
padding: 2px 4px 2px 4px;
margin: 2px;
font-weight: bold;
border: 1px solid #333;
color: #fff;
background-color: #000000;


}

.showpage a:hover {font-size:11px;
border: 1px solid #333;
color: #000000;
background-color: #FFFFFF;

}
.showpageNum a:link,.showpage a:link {
font-size:11px;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
border: 1px solid #0066cc;
color: #0066cc;
background-color: #FFFFFF;}

.showpageNum a:hover {font-size:11px;
border: 1px solid #333;
color: #000000;
background-color: #FFFFFF;
}


]]></b:skin>

3/ Insert code shown:

The next step you find the code (no need to click the Expand Widget Templates) or similar commands in the templates as below:
<b:section class=’main’ id=’main’ showaddelement=’yes’>

<b:widget id=’Blog1′ locked=’true’ title=’Blog Posts’ type=’Blog’/>

</b:section>

Add the following code:
<script type='text/javascript'>

var home_page_url = location.href;


var pageCount=10;
var displayPageNum=6;
var upPageWord ='Previous';
var downPageWord ='Next';


function showpageCount(json) {
var thisUrl = home_page_url;
var htmlMap = new Array();
var thisNum = 1;
var postNum=1;
var itemCount = 0;
var fFlag = 0;
var eFlag = 0;
var html= '';
var upPageHtml ='';
var downPageHtml ='';

htmlMap[htmlMap.length]='/';
postNum++;

for(var i=pageCount-1, post; post = json.feed.entry[i]; i=i+pageCount) {

var timestamp1 = post.published.$t.substring(0,19)+post.published.$t.substring(23,29);
timestamp = encodeURIComponent(timestamp1);
var title = post.title.$t;
if(thisUrl.indexOf(timestamp)!=-1 ){
thisNum = postNum;
}

postNum++;
htmlMap[htmlMap.length] = '/search?updated-max='+timestamp+'&max-results='+pageCount;

}

var banyaknomer = htmlMap.length;
if (json.feed.entry.length % pageCount == 0){
var banyaknomer = htmlMap.length -1 ;
postNum=postNum-1;
};


for(var p =0;p< banyaknomer;p++){
if(p>=(thisNum-displayPageNum-1) && p<(thisNum+displayPageNum)){
if(fFlag ==0 && p == thisNum-2){
if(thisNum==2){
upPageHtml = '<span class="showpage"><a href="/">'+ upPageWord +'</a></span>';
}else{
upPageHtml = '<span class="showpage"><a href="'+htmlMap[p]+'">'+ upPageWord +'</a></span>';
}

fFlag++;
}

if(p==(thisNum-1)){
html += '<span class="showpagePoint">'+thisNum+'</span>';
}else{
if(p==0){
html += '<span class="showpageNum"><a href="/">1</a></span>';

}else{
html += '<span class="showpageNum"><a href="'+htmlMap[p]+'">'+ (p+1) +'</a></span>';
}
}

if(eFlag ==0 && p == thisNum){
downPageHtml = '<span class="showpage"> <a href="'+htmlMap[p]+'">'+ downPageWord +'</a></span>';
eFlag++;
}
}
}

if(thisNum>1){
html = ''+upPageHtml+' '+html +' ';
}

html = '<div class="showpageArea"><span style="COLOR: #000;" class="showpageOf"> Pages ('+(postNum-1)+')</span>'+html;

if(thisNum<(postNum-1)){
html += downPageHtml;
}

if(postNum==1) postNum++;
html += '</div>';

var pageArea = document.getElementsByName("pageArea");
var blogPager = document.getElementById("blog-pager");

if(postNum <= 2){
html ='';
}

for(var p =0;p< pageArea.length;p++){
pageArea[p].innerHTML = html;
}

if(pageArea&&pageArea.length>0){
html ='';
}

if(blogPager){
blogPager.innerHTML = html;
}
}

function showpageCount2(json) {

var thisUrl = home_page_url;
var htmlMap = new Array();
var isLablePage = thisUrl.indexOf("/search/label/")!=-1;
var thisLable = isLablePage ? thisUrl.substr(thisUrl.indexOf("/search/label/")+14,thisUrl.length) : "";
thisLable = thisLable.indexOf("?")!=-1 ? thisLable.substr(0,thisLable.indexOf("?")) : thisLable;
var thisNum = 1;
var postNum=1;
var itemCount = 0;
var fFlag = 0;
var eFlag = 0;
var html= '';
var upPageHtml ='';
var downPageHtml ='';

var labelHtml = '<span class="showpageNum"><a href="/search/label/'+thisLable+'?&max-results='+pageCount+'">';
var thisUrl = home_page_url;

htmlMap[htmlMap.length]=labelHtml;
postNum++;

for(var i=pageCount-1, post; post = json.feed.entry[i]; i=i+pageCount) {
var timestamp1 = post.published.$t.substring(0,19)+post.published.$t.substring(23,29);
timestamp = encodeURIComponent(timestamp1);

var title = post.title.$t;

if(thisUrl.indexOf(timestamp)!=-1 ){
thisNum = postNum;
}

if(title!='') postNum++;
htmlMap[htmlMap.length] = '/search/label/'+thisLable+'?updated-max='+timestamp+'&max-results='+pageCount;

itemCount++;
}

var banyaknomer = htmlMap.length;
if (json.feed.entry.length % pageCount == 0){
var banyaknomer = htmlMap.length -1 ;
postNum=postNum-1;
};

for(var p =0;p< banyaknomer;p++){
if(p>=(thisNum-displayPageNum-1) && p<(thisNum+displayPageNum)){
if(fFlag ==0 && p == thisNum-2){
if(thisNum==2){
upPageHtml = labelHtml + upPageWord +'</a></span>';
}else{
upPageHtml = '<span class="showpage"><a href="'+htmlMap[p]+'">'+ upPageWord +'</a></span>';
}

fFlag++;
}

if(p==(thisNum-1)){
html += '<span class="showpagePoint">'+thisNum+'</span>';
}else{
if(p==0){
html = labelHtml+'1</a></span>';
}else{
html += '<span class="showpageNum"><a href="'+htmlMap[p]+'">'+ (p+1) +'</a></span>';
}
}

if(eFlag ==0 && p == thisNum){
downPageHtml = '<span class="showpage"> <a href="'+htmlMap[p]+'">'+ downPageWord +'</a></span>';
eFlag++;
}
}
}

if(thisNum>1){
if(!isLablePage){
html = ''+upPageHtml+' '+html +' ';
}else{
html = ''+upPageHtml+' '+html +' ';
}
}

html = '<div class="showpageArea"><span style="COLOR: #000;" class="showpageOf"> Pages ('+(postNum-1)+')</span>'+html;

if(thisNum<(postNum-1)){
html += downPageHtml;
}

if(postNum==1) postNum++;
html += '</div>';

var pageArea = document.getElementsByName("pageArea");
var blogPager = document.getElementById("blog-pager");

if(postNum <= 2){
html ='';
}

for(var p =0;p< pageArea.length;p++){
pageArea[p].innerHTML = html;
}

if(pageArea&&pageArea.length>0){
html ='';
}

if(blogPager){
blogPager.innerHTML = html;
}
}

</script>

<script type='text/javascript'>

var thisUrl = home_page_url;
if (thisUrl.indexOf("/search/label/")!=-1){
if (thisUrl.indexOf("?updated-max")!=-1){
var lblname1 = thisUrl.substring(thisUrl.indexOf("/search/label/")+14,thisUrl.indexOf("?updated-max"));
}else{
var lblname1 = thisUrl.substring(thisUrl.indexOf("/search/label/")+14,thisUrl.indexOf("?&max"));
}
}

var home_page = "/";
if (thisUrl.indexOf("?q=")==-1 && thisUrl.indexOf(".html")==-1){
if (thisUrl.indexOf("/search/label/")==-1){
document.write('<script src="'+home_page+'feeds/posts/summary?alt=json-in-script&callback=showpageCount&max-results=99999" ><\/script>')
}else{document.write('<script src="'+home_page+'feeds/posts/full/-/'+lblname1+'?alt=json-in-script&callback=showpageCount2&max-results=99999" ><\/script>')
}
}
</script>
on the bottom tag </ b: section>.

Tip: If you can not find code to search, you can search (ctrl + f) for key: id = 'main' to find.

Or if really hard you can paste them before the </ body>

In the code above, you can edit the following lines:

pageCount var = 10;

var displayPageNum = 6;

Of which:

PageCount showing the number of posts displayed on a page. Change the intention to set the number of articles on a number of your pages.

displayPageNum: show page number will display for you to choose in the list list.

4/ Edit page displays with errors Label:

However, if you see the label selection is displayed incorrectly, with abu-Farhan also change the display in the Label.

To make you do the following:

Step 1: Add Label Gadget (Layout -> Page Elements -> Add Gadget -> Select Labels)

Step 2: Blogger>> Layout>> Edit HTML. Do not forget to backup template (Download full Template) Step 3: Search the code below:
<a expr:dir=’data:blog.languageDirection’ expr:href=’data:label.url’><data:label.name/></a>

and replace them with the code:
<script type='text/javascript'>
var lblname = "<data:label.name/>";

lblname2 = encodeURIComponent(lblname);
var feedlink = '/search/label/' + lblname2+'?&max-results=10';
document.write('<a href="' + feedlink + '">'+lblname+'</a>');
</script>
and click "save template" that you've done excellent list of tips page.
You can click to view Demo;
»»  read more

Say Goodbye To Skin Impurities With Blackhead Remover

Do you have a black or yellow small bump on your face? If you do, chances are you have a blackhead.
Blackhead is kind of acne vulgaris and it is not acquired by the common notion that it is caused by poor hygiene.
It is usually caused by excess oil in the face’s gland duct which consists of keratin and sebum oil. One effective to get rid of them is by using a blackhead remover.
You will be surprised to find out that these stubborn blackheads do not essentially need to be removed, because the body often does this natural process. However, if they are alarming, a number of blackhead remover treatments and tools will do the trick.

Blackhead remover treatments

The use of blackhead remover treatments may take several days to become noticeable. Here are some common treatments:
1. Benzoyl Peroxide helps in the reduction of the cause of the blackhead. Its anti-bacterial effect is the effective blackhead remover since it decreases the chemical reaction which transforms the lining of the hair follicle.
2. Tretinoin is a vitamin A derivative which reduces stickiness and returns the pore to its normal condition. It can be irritating, so it is advisable to follow the instructions on how to use it.
3. Salicylic acid exfoliates the skin which opens the pores and makes the blackheads come to the surface for easier removal.
4. Dermatologist prescribed topical or oral antibiotics may be used if the blackheads are infected.

Blackhead remover using extractions

  • The blackhead removal strip is the most famous way of removing blackheads. It is usually done by wetting the strip and placing it in the blackhead area for about 10 minutes. Its adhesive tape like strip removes the blackheads out of the pores. Those with sensitive skin are advised to be cautious in using this, because it might cause veins to appear in the face.
  • Another tried blackhead remover is the use of tweezers. Be sure to buy aligned pointed tweezers to effectively remove the blackhead from your pore and to reduce squeezing accidents which may lead to further skin damage.
  • Tissue papers can also be used as effective and cheaper blackhead remover. You just have to cover both your index fingers with tissue and work on each side of the blackhead by gently pushing it until it pops out. If the blackhead don’t come off easily, discontinue your prodding, it might lead to skin damage.
  • Going to a skin care provider which uses a number of blackhead remover tools like metal loop or double spoon extractors. They are small, circular metal instrument used by gently pushing down the surrounding skin area causing the blackhead to extrude.
Blackheads indeed cause skin impurities and may affect you in one way or the other. These blackhead remover treatments and tools are ideal for mild to moderate cases.
Should your blackheads become infected or out of control, it is best to consult your dermatologist for the proper medication and treatment.
»»  read more