*

Membuat Pesan Pembuka dan Penutup pada Blog

        Hay sobat pada postingan kali ini saya akan memberikan trik untuk membuat pesan pembuka dan penutup pada blog kita. Artinya, apabila ada pengunjung yang masuk dan keluar dari blog kita, maka akan terbuka sebuah pesan yang isinya misalnya “Welcome to my website”

Langsung saja, kita ke TKP.

- Masuk ke akun Blogger anda,
- Layout-Edit HTML
- Pada bagian atas cari kode <head>dan masukan script berikut ini dibawahnya ;

Untuk pesan pembuka saja:
<script language='JavaScript'>alert(&quot;Hay?,, Welcome To Iztyndo's Website&quot;);</script>
Untuk pesan pembuka lalu pengunjung akan disuruh untuk memasukkan nama:
<SCRIPT quality='high' type='text/javascript'>
var name = prompt(&quot;Welcome To Iztyndo's Website&quot;, &quot;your name here &quot;);
alert (&quot;welcome to Plue-Minues.blogspot.com I recommend you use Mozilla Firefox browser. &quot;)
//
alert (&quot;I hope you wait until all loading is complete. So that you can enjoy the entire contents of my blog. Be patient ... &quot;)
//
alert (&quot;Enjoy it....!!!!&quot;)
//<![CDATA[//]]>
</SCRIPT>
Untuk pesan penutupnya:
<script type='text/javascript'>
// goodbye alert
function goodbye(){
alert(&#39;Hay.... where are you going! He .. he .. he .. O ya, thank you for visiting!! Next time if there is free time do not forget to play here again ya ..! &#39;);
}
parent.window.onunload=goodbye;
</script>
Nie untuk pesan pembuka dan penutup tapi nanti akan ada animasi sedikit, nie jga gabungan dari script yang di atas tadi:
<SCRIPT quality='high' type='text/javascript'>
var name = prompt("Welcome to Iztyndo's website", "your name here ");
alert("Hi ya "+name)
//
alert ("welcome to gadgeed.blogspot.com We recommend you use Mozilla Firefox browser. ")
//
alert ("I hope you wait until all loading is complete. So that you can enjoy the entire contents of my blog. Be patient ... ")
//
alert ("Sorry a little bit slow, please wait and sit back. ")
//<![CDATA[
scrW=screen.availWidth
scrH=screen.availHeight
for(a=100;a<80;a++){
window.moveTo(scrW/1,0)
window.resizeTo(0,scrH*a/50)
}
for(a=0;a<80;a++){
window.moveTo(0,scrH/1)
window.resizeTo(0,scrH*a/50)
}
for(y=0;y<80;y++){
window.resizeTo(scrW*y/80,scrH)
}
for(a=0;a<80;a++){
window.moveTo(0,0)
window.resizeTo(0,scrH*a/50)
}
for(b=0;b<80;b++){
window.moveTo(0,scrH/1)
window.resizeTo(scrW*b/50,0)
}
for(c=0;c<80;c++){
window.moveTo(scrW/1,scrH/1)
window.resizeTo(0,scrH*c/50)
}
for(d=0;d<80;d++){
window.moveTo(scrW/1,0)
window.resizeTo(scrW*d/50,0)
}
for(e=0;e<80;e++){
window.resizeTo(scrW*e/50,scrH*e/50)
}
for(e=0;e<80;e++){
window.moveTo(scrW/1,0)
window.resizeTo(scrW*e/50,scrH*e/50)
}
for(e=0;e<80;e++){
window.moveTo(scrW/1,scrH/1)
window.resizeTo(scrW*e/50,scrH*e/50)
}
for(e=0;e<80;e++){
window.moveTo(0,scrH/1)
window.resizeTo(scrW*e/50,scrH*e/50)
}
for(e=0;e<80;e++){
window.moveTo(scrW/1,0)
window.moveTo(scrW/1,scrH/1)
window.moveTo(0,scrH/1)
window.moveTo(0,0)
window.resizeTo(scrW*e/50,scrH*e/50)
}
//]]>
//
alert ("Sorry that the 2nd is still a bit slow, we hope you are not angry. Remain seated while drinking sweet coffee or smoking. Or while snacking, also may. Hihihi ... Ehmm .. may be useful later you click Maximize. OK? ")
// goodbye alert
function goodbye(){
alert('Hay.... where are you going! He .. he .. he .. O ya, thank you for visiting!! Next time if there is free time do not forget to play here again ya ..!');
}
parent.window.onunload=goodbye;
//<![CDATA[
//]]>
//<![CDATA[
//]]>
</SCRIPT>

Note: Untuk script yang berwarna biru bisa sobat ganti dengan yang sobat" inginkan

                                                    ..........Selamat Mencoba........
                                                              "Semoga Berhasil"



Reade More..