Januari 03, 2011

Cara Memasukan Script Ke Dalam Spoiler

Hy sobat blogger kali ini saya akan mempoting tentang Cara Memasukan Script Ke Dalam Spoiler khususnya buat Gilang yang bertanya ( mw nanya gi mna yah cara masukkan script dalam spoiler ? ) sebelumnya jika ada yang belum tau tentang membuat spoiler silahkan Klik Disini.

Ok langsung saja  ke permasalahanya pasti kalian bingung kenapa saya bisa memasukan script ke dalam spoiler tapi kenapa saya tidak sebenarnya sangat sederhana saya ambil contoh kode widget jam garuda seprti di bawah ini :

<embed allowscriptaccess="sameDomain" flashvars="&amp;col1=d89b09&amp;col2=7cc034&amp;dayAdd=0&amp;cal=true&amp;gig_lt=1248336103578&amp;gig_pt=1248336182359&amp;gig_g=1&amp;gig_n=blogger" height="200" loop="false" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" quality="best" src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;__view=expanded" swliveconnect="true" type="application/x-shockwave-flash" width="200" wmode="transparent"></embed>



jika kalian masukkan ke dalam spoiler langsung maka bukan script yang akan muncul tapi jamnya lihat contoh di bawah ini :
Spoiler:


jika kalian ingging agar scriptnya yang muncul seperti dibawah ini kalian harus mengganti atau menambahkan kode yang saya beri warna merah atau hijau :

Spoiler:


<embed allowscriptaccess="sameDomain" flashvars="&amp;col1=d89b09&amp;col2=7cc034&amp;dayAdd=0&amp;cal=true&amp;gig_lt=1248336103578&amp;gig_pt=1248336182359&amp;gig_g=1&amp;gig_n=blogger" height="200" loop="false" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" quality="best" src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;__view=expanded" swliveconnect="true" type="application/x-shockwave-flash" width="200" wmode="transparent"></embed>

Ket :
Jika kode merah seperti ini < kalian ganti menjadi &lt; ( < menjadi &lt; )
Jika kode merah seperti ini > kalian ganti menjadi &gt; ( > menjadi &gt; )
Jika kode hijau seperti ini amp; kalian tambah menjadi amp;amp; ( amp; ditambah menjadi  amp;amp; )

sebelum dirubah

<embed allowscriptaccess="sameDomain" flashvars="&amp;col1=d89b09&amp;col2=7cc034&amp;dayAdd=0&amp;cal=true&amp;gig_lt=1248336103578&amp;gig_pt=1248336182359&amp;gig_g=1&amp;gig_n=blogger" height="200" loop="false" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" quality="best" src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;__view=expanded" swliveconnect="true" type="application/x-shockwave-flash" width="200" wmode="transparent"></embed>


Sesudah dirubah :

&lt;embed allowscriptaccess="sameDomain" flashvars="&amp;amp;col1=d89b09&amp;amp;col2=7cc034&amp;amp;dayAdd=0&amp;amp;cal=true&amp;amp;gig_lt=1248336103578&amp;amp;gig_pt=1248336182359&amp;amp;gig_g=1&amp;amp;gig_n=blogger" height="200" loop="false" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" quality="best" src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;amp;__view=expanded" swliveconnect="true" type="application/x-shockwave-flash" width="200" wmode="transparent"&gt;&lt;/embed&gt;

Jika sudah kalian rubah baru kalian masukan ke dalam spoiler seperti di bawah ini :

================================================

<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;"><b>Spoiler</b>: <input value="Open" style="margin: 0px; padding: 0px; width: 55px; font-size: 11px;" 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 = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Open'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;">
<div style="display: none;">

&lt;embed allowscriptaccess="sameDomain"  flashvars="&amp;amp;col1=d89b09&amp;amp;col2=7cc034&amp;amp;dayAdd=0&amp;amp;cal=true&amp;amp;gig_lt=1248336103578&amp;amp;gig_pt=1248336182359&amp;amp;gig_g=1&amp;amp;gig_n=blogger"  height="200" loop="false" menu="false"  pluginspage="http://www.adobe.com/go/getflashplayer" quality="best"  src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;amp;__view=expanded"  swliveconnect="true" type="application/x-shockwave-flash" width="200"  wmode="transparent"&gt;&lt;/embed&gt;

<br>
</div>
</div>
</div>


=====================================================

maka hasilnya akan seperti di bawah ini : 

Spoiler:

<embed allowscriptaccess="sameDomain" flashvars="&amp;col1=d89b09&amp;col2=7cc034&amp;dayAdd=0&amp;cal=true&amp;gig_lt=1248336103578&amp;gig_pt=1248336182359&amp;gig_g=1&amp;gig_n=blogger" height="200" loop="false" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" quality="best" src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;__view=expanded" swliveconnect="true" type="application/x-shockwave-flash" width="200" wmode="transparent"></embed>




jika ada yang tidak paham silahka bertanya

Jika kalian ingin memposting ini copy/paste kode di bawah ini :

Spoiler:

<div class="separator" style="clear: both; text-align: center;">
<a href="http://i1117.photobucket.com/albums/k587/amirhidayat/Spoiler.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://i1117.photobucket.com/albums/k587/amirhidayat/Spoiler.jpg" /></a></div>
Hy sobat blogger kali ini saya akan mempoting tentang <b>Cara Memasukan Script Ke Dalam Spoiler</b> khususnya buat Gilang yang bertanya<b> ( mw nanya gi mna yah cara masukkan script dalam spoiler ? ) </b>sebelumnya jika ada yang belum tau tentang membuat spoiler silahkan <a href="http://amirhidayat9.blogspot.com/2010/12/cara-membuat-spoiler.html" target="_blank">Klik Disini</a>.  Ok langsung saja&nbsp; ke permasalahanya pasti kalian bingung kenapa saya bisa memasukan script ke dalam spoiler tapi kenapa saya tidak sebenarnya sangat sederhana saya ambil contoh kode widget jam garuda seprti di bawah ini :  &lt;embed allowscriptaccess="sameDomain"  flashvars="&amp;amp;col1=d89b09&amp;amp;col2=7cc034&amp;amp;dayAdd=0&amp;amp;cal=true&amp;amp;gig_lt=1248336103578&amp;amp;gig_pt=1248336182359&amp;amp;gig_g=1&amp;amp;gig_n=blogger"  height="200" loop="false" menu="false"  pluginspage="http://www.adobe.com/go/getflashplayer" quality="best"  src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;amp;__view=expanded"  swliveconnect="true" type="application/x-shockwave-flash" width="200"  wmode="transparent"&gt;&lt;/embed&gt;    jika kalian masukkan ke dalam spoiler langsung maka bukan script yang akan muncul tapi jamnya lihat contoh di bawah ini : <div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b>: <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 = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Open'; }" style="font-size: 11px; margin: 0px; padding: 0px; width: 55px;" type="button" value="Open" /></div>
<div class="alt2" style="border: 1px inset; margin: 0px; padding: 6px;">
<div style="display: none;">
<blockquote>
<embed allowscriptaccess="sameDomain" flashvars="&amp;col1=d89b09&amp;col2=7cc034&amp;dayAdd=0&amp;cal=true&amp;gig_lt=1248336103578&amp;gig_pt=1248336182359&amp;gig_g=1&amp;gig_n=blogger" height="200" loop="false" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" quality="best" src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;__view=expanded" swliveconnect="true" type="application/x-shockwave-flash" width="200" wmode="transparent"></embed></blockquote>
</div>
</div>
</div>
jika kalian ingging agar scriptnya yang muncul seperti dibawah ini kalian harus mengganti atau menambahkan kode yang saya beri warna merah atau hijau :  <div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b>: <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 = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Open'; }" style="font-size: 11px; margin: 0px; padding: 0px; width: 55px;" type="button" value="Open" /></div>
<div class="alt2" style="border: 1px inset; margin: 0px; padding: 6px;">
<div style="display: none;">
<span style="color: red;">&lt;</span>embed allowscriptaccess="sameDomain"  flashvars="&amp;<span style="color: lime;">amp;</span>col1=d89b09&amp;<span style="color: lime;">amp;</span>col2=7cc034&amp;<span style="color: lime;">amp;</span>dayAdd=0&amp;<span style="color: lime;">amp;</span>cal=true&amp;<span style="color: lime;">amp;</span>gig_lt=1248336103578&amp;<span style="color: lime;">amp;</span>gig_pt=1248336182359&amp;<span style="color: lime;">amp;</span>gig_g=1&amp;<span style="color: lime;">amp;</span>gig_n=blogger"  height="200" loop="false" menu="false"  pluginspage="http://www.adobe.com/go/getflashplayer" quality="best"  src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;<span style="color: lime;">amp;</span>__view=expanded"  swliveconnect="true" type="application/x-shockwave-flash" width="200"  wmode="transparent"<span style="color: red;">&gt;&lt;</span>/embed<span style="color: red;">&gt;</span>  </div>
</div>
</div>
Ket : Jika kode merah seperti ini &lt; kalian ganti menjadi &amp;lt; ( <span style="color: red;">&lt;</span> menjadi  <span style="color: red;">&amp;lt;</span> ) Jika kode merah seperti ini &gt; kalian ganti menjadi &amp;gt; ( <span style="color: red;">&gt;</span> menjadi <span style="color: red;">&amp;gt;</span> ) Jika kode hijau seperti ini amp; kalian tambah menjadi amp;amp; ( <span style="color: lime;">amp; </span>ditambah menjadi&nbsp; <span style="color: lime;">amp;</span><span style="color: lime;">amp;</span> )  sebelum dirubah  <span style="color: red;">&lt;</span>embed allowscriptaccess="sameDomain"  flashvars="&amp;<span style="color: lime;">amp;</span>col1=d89b09&amp;<span style="color: lime;">amp;</span>col2=7cc034&amp;<span style="color: lime;">amp;</span>dayAdd=0&amp;<span style="color: lime;">amp;</span>cal=true&amp;<span style="color: lime;">amp;</span>gig_lt=1248336103578&amp;<span style="color: lime;">amp;</span>gig_pt=1248336182359&amp;<span style="color: lime;">amp;</span>gig_g=1&amp;<span style="color: lime;">amp;</span>gig_n=blogger"   height="200" loop="false" menu="false"   pluginspage="http://www.adobe.com/go/getflashplayer" quality="best"   src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;<span style="color: lime;">amp;</span>__view=expanded"  swliveconnect="true" type="application/x-shockwave-flash" width="200"  wmode="transparent"<span style="color: red;">&gt;&lt;</span>/embed<span style="color: red;">&gt;</span>   Sesudah dirubah :  <span style="color: red;">&amp;lt;</span>embed allowscriptaccess="sameDomain" flashvars="&amp;<span style="color: lime;">amp;amp;</span>col1=d89b09&amp;<span style="color: lime;">amp;amp;</span>col2=7cc034&amp;<span style="color: lime;">amp;amp;</span>dayAdd=0&amp;<span style="color: lime;">amp;amp;</span>cal=true&amp;<span style="color: lime;">amp;amp;</span>gig_lt=1248336103578&amp;<span style="color: lime;">amp;amp;</span>gig_pt=1248336182359&amp;<span style="color: lime;">amp;amp;</span>gig_g=1&amp;<span style="color: lime;">amp;amp;</span>gig_n=blogger" height="200" loop="false" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" quality="best" src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;<span style="color: lime;">amp;amp;</span>__view=expanded" swliveconnect="true" type="application/x-shockwave-flash" width="200" wmode="transparent"<span style="color: red;">&amp;gt;&amp;lt;</span>/embed<span style="color: red;">&amp;gt;</span>  Jika sudah kalian rubah baru kalian masukan ke dalam <a href="http://amirhidayat9.blogspot.com/2010/12/cara-membuat-spoiler.html" target="_blank"> spoiler </a> seperti di bawah ini :  ================================================   <span class="hidenpost">&lt;div style="margin: 5px 20px 20px;"&gt; &lt;div class="smallfont" style="margin-bottom:   2px;"&gt;&lt;b&gt;Spoiler&lt;/b&gt;: &lt;input value="Open"   style="margin: 0px; padding: 0px; width: 55px; font-size: 11px;"   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 = 'Close'; } else {   this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display   = 'none'; this.innerText = ''; this.value = 'Open'; }"   type="button"&gt; &lt;/div&gt; &lt;div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;"&gt; &lt;div style="display: none;"&gt;  &amp;lt;embed allowscriptaccess="sameDomain"&nbsp; flashvars="&amp;amp;amp;col1=d89b09&amp;amp;amp;col2=7cc034&amp;amp;amp;dayAdd=0&amp;amp;amp;cal=true&amp;amp;amp;gig_lt=1248336103578&amp;amp;amp;gig_pt=1248336182359&amp;amp;amp;gig_g=1&amp;amp;amp;gig_n=blogger"&nbsp; height="200" loop="false" menu="false"&nbsp; pluginspage="http://www.adobe.com/go/getflashplayer" quality="best"&nbsp; src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;amp;amp;__view=expanded"&nbsp; swliveconnect="true" type="application/x-shockwave-flash" width="200"&nbsp; wmode="transparent"&amp;gt;&amp;lt;/embed&amp;gt;  &lt;br&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</span>  =====================================================  <span class="hidenpost">maka hasilnya akan seperti di bawah ini :&nbsp;</span>  <div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b>: <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 = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Open'; }" style="font-size: 11px; margin: 0px; padding: 0px; width: 55px;" type="button" value="Open" /></div>
<div class="alt2" style="border: 1px inset; margin: 0px; padding: 6px;">
<div style="display: none;">
&lt;embed allowscriptaccess="sameDomain"  flashvars="&amp;amp;col1=d89b09&amp;amp;col2=7cc034&amp;amp;dayAdd=0&amp;amp;cal=true&amp;amp;gig_lt=1248336103578&amp;amp;gig_pt=1248336182359&amp;amp;gig_g=1&amp;amp;gig_n=blogger"  height="200" loop="false" menu="false"  pluginspage="http://www.adobe.com/go/getflashplayer" quality="best"  src="http://www.widgipedia.com/widgets/orido/Jam-Garuda-Indonesia-4639-8192_134217728.widget?__install_id=1248336094072&amp;amp;__view=expanded"  swliveconnect="true" type="application/x-shockwave-flash" width="200"  wmode="transparent"&gt;&lt;/embed&gt;    </div>
</div>
</div>
Sumber : <a href="http://amirhidayat9.blogspot.com/" target="_blank">amirhidayat</a>


mudah-mudahan bermanfaat

Selamat mencoba,,,,semoga berhasil

Tidak ada komentar:

Posting Komentar