Memasang Tool Parse Kode HTML di Blog

Parse HTML adalah metode yang digunakan untuk mengkonversi kode HTML. kegiatan memparse HTML ini sangat berguna di dalam dunia Blogging. Salah satu manfaat dari parse HTML adalah ketika Blogger hendak memasang iklan di Blog, maka diperlukan kode HTML yang telah di parse agar iklan dapat muncul.

Tampilan dari Tool Parse HTML adalah sebagai berikut :

Berikut ini adalah source code nya.


<div dir="ltr" style="text-align: center;" trbidi="on">
<div class="style1">
<div style="text-align: center;">
<span style="font-family: arial, courier, monospace; font-size: large;">
<b><u><a href="http://tutorkacang.blogspot.sg/p/parse-html.html">Alat Parse HTML</a></u></b></span> </div>
<center> <b><span style="font-family: arial , courier , monospace;"> </span>
<div class="style1">
<span style="font-family: arial , courier , monospace;">Ketikkan / Paste Script Kode HTML kedalam Bidang Kotak dibawah ini</span>
<span style="font-family: arial , courier , monospace;">Kemudian klik tombol "
<span style="color: red;">Parse Kode HTML</span>"
<i>&nbsp;</i></span></div> </b></center>
 <center> <b>
 <div style="text-align: center; width: 100%;">
<div style="margin: 0 auto; padding: 0; width: 100%;">
<div id="mainDiv" style="padding: 2px 0;">
<textarea cols="21" id="somewhere" onfocus="code_check();" rows="10" style="font-size: 12px; height: 100%; width: 100%;"></textarea> <br />
<div style="margin: 0 auto; padding: 5px 0; width: 95%;">
<button onclick="convert();" style="margin-right: 5px;" type="button">Parse Kode HTML</button>
<button onclick="code_clear();" style="margin-left: 5px;" type="button">Clear</button> </div> </div> </div> </div>

<script> function code_check(){
var focuscheck=document.getElementById('tarea');
if(focuscheck.value.indexOf('Pastekan Disini Kode yang Akan Anda Pasang pada Postingan Blog')>0)focuscheck.value='';}
function code_clear(){
var wtarea=document.getElementById('somewhere');wtarea.value='';}
function convert(){
var ele1 = document.getElementById("somewhere");
var replaced;replaced = ele1.value;
replaced = replaced.replace(/&/ig, "&amp;");
replaced = replaced.replace(/</ig, "&lt;");
replaced = replaced.replace(/>/ig, "&gt;");
replaced = replaced.replace(/"/ig, "&quot;");
replaced = replaced.replace(/&#177;/ig, "&plusmn;");
replaced = replaced.replace(/&#169;/ig, "&copy;");
replaced = replaced.replace(/&#174;/ig, "&reg;");
replaced = replaced.replace(/ya'll/ig, "ya'll");
ele1.value = replaced; ele1.focus();
ele1.select();}
</script> </b></center> </div> </div>

Cara Pemasangan nya cukup sederhana. yang harus dilakukan adalah :
- Salin seluruh script yang ada diatas.
- Buat sebuah Page. kemudian Paste script ke HTML mode.
- Tool Parse HTML siap digunakan.

0 Response to "Memasang Tool Parse Kode HTML di Blog"

Post a Comment