Cara Membuat tulisan di blog muncul dalam bentuk asli HTML
Thursday, April 19, 2012
Cara membuat tlusan muncul dalam bentuk HTML
1. Masuk ke New Post
2. pilih post option
3. <<compose setting centang/pilih show HTML literrally
4. Tulis dalam compose bukan dalam laman Edit HTML
Semisal mau mempostkan HTML
1. Masuk ke New Post
2. pilih post option
3. <<compose setting centang/pilih show HTML literrally
4. Tulis dalam compose bukan dalam laman Edit HTML
Semisal mau mempostkan HTML
<script type='text/javascript'>
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/> Read more at: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright http://www.kewarganegaraan-rosi.blogspot.com/ Under Common Share Alike Atribution"; // change this if you want
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}document.oncopy = addLink;
</script>
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/> Read more at: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright http://www.kewarganegaraan-rosi.blogspot.com/ Under Common Share Alike Atribution"; // change this if you want
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}document.oncopy = addLink;
</script>
5. Publish Post maka hasilnya akan sama dengan kode2 yang kita tuliskan
Selamat mencoba