Information Computer

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

Related Posts



0 comments:

Followers