Information Computer

Showing posts with label Blog. Show all posts
Showing posts with label Blog. Show all posts

Saturday, January 28, 2012

Remove Navbar Blogger Permanent

we already know that some bloggers do not like the navbar at the top of the blog. with a variety of reasons they wanted to remove the navbar. and maybe we have understood about one way of eliminating the navbar. namely by providing css display: none or visibility: hidden on navbar id selector. how these can indeed eliminate the navbar. more precisely the way it used to hide the navbar instead of removing them.

Next I had a way to completely remove the navbar in blogger permanently. a benefit if we remove the navbar permanently are:
- Parse load blog
- Make the blog more SEO-friendly

how to remove navbar following permanently:

1. loggin to blogger.
2. click Design - Edit HTML.
3. Find ]]>
4. place the following code after the code ]]>.

<script type='text/javascript'>
<![CDATA[
<!--
/*<body>
*/
-->
]]>
</script>

5. Save Template
6. Finish

very simple right? I hope this article is very useful for us all. thank bloggers.
READ MORE >> Remove Navbar Blogger Permanent

Wednesday, January 11, 2012

Create a Spoiler on The Blog

In the media and the Internet, Spoiler was written explanation or information about a story, which revealed the plot. Read the explanation of a story can cause reduced pleasure to read the story, because the pleasure of reading a story usually depends on the dramatization or tension caused by the story. Usually in the mass media and the Internet, explanation is hidden in a certain way, so only read by those who want to see the explanation. that according to wikipedia.org

Spoiler it is a means used to hide a link or a collection of links, a collection of text, images, whole or in part of the blog posts and others with the use html code. The goal is to save space or space in a post or sidebar. Another advantage of using Spoiler is able to reduce the loading time, the intention is, if we use the spoiler on the image, so our blog will not be affected by the burden of loading that can be burdensome. Spoiler can also be used to hide the video so that loading is not severe.

okay not too many strings attached anymore. Let us now follow the steps below to create a spoiler on the blog.

1. Login Blogger account
2. Go to Desain > Edit HTML
3. Enter the following code above the code ]]></b:skin>

.commenthidden {display:none;}
.commentshown {display:inline;}

4. Then place the following code between the code ]]></b:skin> and</head>

<script type="text/Javascript">
function togglecomments (postid) {

var whichpost = document.getElementById(postid);

if (whichpost.className=="commentshown") { whichpost.className="commenthidden"; } else { whichpost.className="commentshown"; }

}
</script>

5. to edit the HTML in the design has been completed. please save it.
6. Now if you want to display / need spoiler post you make, you just provide the following script.

<input onclick="togglecomments('Name_spoiler')" type="submit" value="SPOILER" />
<div class="commenthidden" id="Name_spoiler">
CONTENT OF SPOILER</div>

7. replace word "SPOILER" with title of your spoiler. then replace word "CONTENT OF SPOILER" with the content you want is in the spoiler
8. if you make more than one spoiler in a post. You should notice the word "Name_spoiler". between one another spoiler must have different names. so edit the word "Name_spoiler" in another spoiler in other words.
9. finish

that's how to make spoiler. criticism and suggestions in wait. thank you very much:)

need to know! 
Blogger is a blog-publishing service that allows private or multi-user blogs with time-stamped entries. It was created by Pyra Labs, which was bought by Google in 2003. Generally, the blogs are hosted by Google at a subdomain of blogspot.com. Up until May 1, 2010 Blogger allowed users to publish blogs on other hosts, via FTP. All such blogs had (or still have) to be moved to Google's own servers, with domains other than blogspot.com allowed via Custom URLs
READ MORE >> Create a Spoiler on The Blog

Tuesday, January 10, 2012

List of blog content automatically

good evening. with this opportunity. I want to discuss more about the blog. This time the discussion regarding making an automatic table of contents in a blog widget. This widget will my well equipped with scroll facility. with scroll facility we will be able to save a place for widgets on the blog. Now follow the steps below.

1. login to your account blogger,
2. then. go to Design.
3. add a widget > HTML/JavaScript
4. copy script below.

<div style="overflow:auto; height:200px;" margin="1px" ;>
<script style="text/javascript" src="http://sites.google.com/site/icalcell/javascript/daftarisiku.js"></script><a href='http://computer-unu.blogspot.com/'><img style="border: 0" src="http://image.bloggerplugins.org/blogger-widgets.png" /></a> <script style="text/javascript">var numposts = 1000;var showpostdate = false;var showpostsummary = false;var numchars = 100;var standardstyling = true;</script><script src="http://YOURBLOG.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&max-results=999&callback=showrecentposts"></script>
</div>

5. change text "YOURBLOG" with name of your blog.
6. save and finish :)

because it relates to a script, so it would be very fatal if there is one little writing. therefore if you try this script is then failure or error, please write a message / comment at the end of this post about what you experienced. maybe I can help with your problem and probably me as the author of this post that one can fix it immediately. I hope this post is very useful for you. thank you very much for reading my post. thank you very much:)

need to know! 
Blogger is a blog-publishing service that allows private or multi-user blogs with time-stamped entries. It was created by Pyra Labs, which was bought by Google in 2003. Generally, the blogs are hosted by Google at a subdomain of blogspot.com. Up until May 1, 2010 Blogger allowed users to publish blogs on other hosts, via FTP. All such blogs had (or still have) to be moved to Google's own servers, with domains other than blogspot.com allowed via Custom URLs
READ MORE >> List of blog content automatically

Tuesday, January 3, 2012

Readmore For Blogger

The following I would like to share about making readmore for bloggers. readmore is actually not important how. readmore used to condense the content of posts displayed on the homepage.

follow the steps below.
1. login to your account blogger,
2. go to Design > Edit HTML
3. check checkbox button expand widget templates
4. CTRL + F. find <head>
5. Give the following below </head>

<script type="text/javascript">
//<![CDATA[
/******************************************
computer-unu.blogspot.com
********************************************/
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+'...';
}

function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(img.length>=1) {
imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
summ = summary_img;
}

var summary = imgtag + '<div>

' + removeHtmlTag(div.innerHTML,summ) + '</div>
';
div.innerHTML = summary;
}
//]]>
</script>

6. CTRL + F. find <data:post.body>
7. replace <data:post.body> with the following script.

<b:if cond="data:blog.pageType != &quot;item&quot;">
<div expr:id="&quot;summary&quot; + data:post.id">
<data:post.body></data:post.body></div>
<script type="text/javascript">
createSummaryAndThumb("summary<data:post.id/>");
</script>
<span class="rmlink" style="float: left;"><a expr:href="data:post.url" href="http://www.blogger.com/post-create.g?blogID=7103870391608312572">READ MORE &gt;&gt; <data:post.title></data:post.title></a></span>
</b:if>
<b:if cond="data:blog.pageType == &quot;item&quot;"><data:post.body></data:post.body></b:if>

8. save

good luck :)

need to know! 
Blogger is a blog-publishing service that allows private or multi-user blogs with time-stamped entries. It was created by Pyra Labs, which was bought by Google in 2003. Generally, the blogs are hosted by Google at a subdomain of blogspot.com. Up until May 1, 2010 Blogger allowed users to publish blogs on other hosts, via FTP. All such blogs had (or still have) to be moved to Google's own servers, with domains other than blogspot.com allowed via Custom URLs
READ MORE >> Readmore For Blogger

Monday, January 2, 2012

Related Post For Blogger

Related post in use to display some other post that is still associated with the main post that is being opened. give him a post linked on this so that visitors open up a lot of posts on our blog. so the goal is to increase the page view.

many, many ways that we can use to create a related post. The following is one way that we can use to create a related post.

1. Login Blogger account

2. Go to Desain > Edit HTML

3. Check option button expand widget templates

4. CTRL + F . find <data:post.body/></p> and <div style='clear: both;'/>

5. Give the following script between <data:post.body/></p> and <div style='clear: both;'/>

<!-- Related Posts Code Start-->
<b:if cond='data:blog.pageType == "item"'>
<div class='similiar'>
<div class='widget-content'>
<h3>Related Posts </h3>
<div style='overflow:auto;width:500px;height:100px;padding:10px;border:3px;background: #FFFFFF; top center;'>
<div id='data2007'/><br/><br/> <div id='Scrapur'></div><a
href='http://computer-unu.blogspot.com/2012/01/related-post-for-blogger.html'><img style="border: 0" alt="Related Posts for Blogger"
src="http://image.bloggerplugins.org/blogger-widgets.png" /></a>
<script type='text/javascript'>

var homeUrl3 = &quot;<data:blog.homepageUrl/>&quot;;
var maxNumberOfPostsPerLabel = 4;
var maxNumberOfLabels = 10;

maxNumberOfPostsPerLabel = 100;
maxNumberOfLabels = 3;


function listEntries10(json) {
var ul = document.createElement(&#39;ul&#39;);
var maxPosts = (json.feed.entry.length &lt;= maxNumberOfPostsPerLabel) ?
json.feed.entry.length : maxNumberOfPostsPerLabel;
for (var i = 0; i &lt; maxPosts; i++) {
var entry = json.feed.entry[i];
var alturl;

for (var k = 0; k &lt; entry.link.length; k++) {
if (entry.link[k].rel == &#39;alternate&#39;) {
alturl = entry.link[k].href;
break;
}
}
var li = document.createElement(&#39;li&#39;);
var a = document.createElement(&#39;a&#39;);
a.href = alturl;

if(a.href!=location.href) {
var txt = document.createTextNode(entry.title.$t);
a.appendChild(txt);
li.appendChild(a);
ul.appendChild(li);
}
}
for (var l = 0; l &lt; json.feed.link.length; l++) {
if (json.feed.link[l].rel == &#39;alternate&#39;) {
var raw = json.feed.link[l].href;
var label = raw.substr(homeUrl3.length+13);
var k;
for (k=0; k&lt;20; k++) label = label.replace(&quot;%20&quot;, &quot; &quot;);
var txt = document.createTextNode(label);
var h = document.createElement(&#39;b&#39;);
h.appendChild(txt);
var div1 = document.createElement(&#39;div&#39;);
div1.appendChild(h);
div1.appendChild(ul);
document.getElementById(&#39;data2007&#39;).appendChild(div1);
}
}
}
function search10(query, label) {

var script = document.createElement(&#39;script&#39;);
script.setAttribute(&#39;src&#39;, query + &#39;feeds/posts/default/-/&#39;
+ label +
&#39;?alt=json-in-script&amp;callback=listEntries10&#39;);
script.setAttribute(&#39;type&#39;, &#39;text/javascript&#39;);
document.documentElement.firstChild.appendChild(script);
}

var labelArray = new Array();
var numLabel = 0;

<b:loop values='data:posts' var='post'>
<b:loop values='data:post.labels' var='label'>
textLabel = &quot;<data:label.name/>&quot;;

var test = 0;
for (var i = 0; i &lt; labelArray.length; i++)
if (labelArray[i] == textLabel) test = 1;
if (test == 0) {
labelArray.push(textLabel);
var maxLabels = (labelArray.length &lt;= maxNumberOfLabels) ?
labelArray.length : maxNumberOfLabels;
if (numLabel &lt; maxLabels) {
search10(homeUrl3, textLabel);
numLabel++;
}
}
</b:loop>
</b:loop>
</script>
</div>
</div>
</div>
</b:if><!-- Related Posts Code End-->

6. Save

good luck :)

need to know! 
Blogger is a blog-publishing service that allows private or multi-user blogs with time-stamped entries. It was created by Pyra Labs, which was bought by Google in 2003. Generally, the blogs are hosted by Google at a subdomain of blogspot.com. Up until May 1, 2010 Blogger allowed users to publish blogs on other hosts, via FTP. All such blogs had (or still have) to be moved to Google's own servers, with domains other than blogspot.com allowed via Custom URLs
READ MORE >> Related Post For Blogger

Followers