Untuk contohnya seperti ini :
Lihat Gambar :
Kodenya seperti ini :
<div style="margin: 5px;">Yang diberi tanda merah merupakan kode yang diganti dengan keinginan sobat, dapat berupa teks biasa, kode ataupun gambar.
<div class="smallfont" style="margin-bottom: 2px;">
<i><span style="font-weight: bold;">Lihat Gambar : </span></i><input onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" style="font-size: 10px; margin: 0px; padding: 0px; width: 60px;" type="button" value="Show" /></div>
<div class="alt2" style="border: 1px inset; margin: 0px; padding: 6px;">
<div style="display: none;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-_oddmPg8yE3CXlx_25BpzWw355XI8r33w6kPd692wlEaCTTRGS_Upvozp4cUz_yTsofIVSi343mefAZCpB2aRhS54UAlKJPaKDWiRcAc636-KKaV08vsBcatK4KieAcRzPot98HagdXP/s1600/winnie+the+pooh.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="winnie the pooh" border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-_oddmPg8yE3CXlx_25BpzWw355XI8r33w6kPd692wlEaCTTRGS_Upvozp4cUz_yTsofIVSi343mefAZCpB2aRhS54UAlKJPaKDWiRcAc636-KKaV08vsBcatK4KieAcRzPot98HagdXP/s320/winnie+the+pooh.jpg" width="320" /></a></div>
</div>
</div>
</div>
0 komentar:
Posting Komentar