Sunday, 17 March 2013

Membuat Parse HTML Di Blog

Membuat Parse HTML Di Blog


 Membuat Parse HTML Di Blog-Pernah dengar ngak gan namaya PASRE HTML? Ituloh Widget Blog yang bisa memarse kode HTML,lah dah tau kan? Ini dia cara pasanya gan,Pertama login ke Blogger.com Trus Pilih blog anda,Blog yang ingin ada pasangi PARSE HTML,Lalu Buat Postingan Baru,Klik Edit Html lalu paste kode berikut di Postingan anda,Publikasikan,dan lihat hasilnya.



Kode PARSE HTML:
<br />
<center><div style="text-align: -webkit-auto;">
<br /></div>
<br />
<div class="style1" style="color: red;">
<span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif; font-size: large;"><b><u><br /></u></b></span></div>
</center><script type="text/javascript">
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;}
</script><center><table border="0" cellpadding="0" cellspacing="0" style="text-align: center; width: 400px;"><tbody>
<tr> <td valign="top" width="400"><textarea cols="70" id="somewhere" rows="13" style="background: none repeat scroll 0% 0% rgb(248, 248, 248); border: 1px solid rgb(204, 204, 204);"></textarea><br />
<br />
<div style="text-align: left;">
<input onclick="convert();" type="button" value="Parse Script" /></div>
</td> </tr>
</tbody></table>
</center><br />
<br />
<div style="text-align: center;">
<br /></div>


Silahkan lihat Contohnya,Klik Disini.
source:http://www.sitonga.com/2012/07/membuat-parse-html-di-blog.html

No comments: