Global Variables


Jumat, 24 Juni 2011

Random wallpaper & cursor






<script type="text/javascript">

function gantiWalpeper(){
var daptarWolpeper = [
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBuN1u5s9Cqh_g3J6fm5szRutIi792UZxcYpxNE7LQxD9TpHKRPnT6xek50KJ4M181lu3SqqNRl4_TYCqeD4a3Jo3SKKbvlZ-Mi9zfY7ybi_hhyqtKmq_qDhdEAfzT8-6BfUi7deL9IJSk/s1600/Cyber_soul_WALLPAPER_by_Necrania_ar.jpg",
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRUxWxHKrj88QDNw1-xomHTHX6zeW6yxYpNacKEAtgYxOPLat4NARV2-Y6m_y8X7KVaT3IsgeLiKjXta8KfxNHZfif1dQYMXcn7rsW8u9Q1jGEZg_2OE3KqLV8pr7XKvI6QyGNfFup7Wb7/s1600/Cyber_Girl_hd_wallpaper.jpg",
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEGkAo-kBf-nW74NPfVSB0FdBDJ8DJyP4RkLRMlynVYhyphenhyphenvItxdnWIW11_Lq-f916bNU_o0K6cZno9Kx7Esl8CR9SJmMc3ow-2_7d6Gm3xGCJhEDlJjrjNZY8xv1wLCI8_ZAgdWOA0okTpX/s1600/Dark+Fairy.jpg",
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiJFho2v6My2-chkpkOxqR09PR_2XtVUq8t4cdW5nDIg1hTj5pc90LLlwL1eSX7VTA56BV87kn5-dVS16Q9IaNKgco2j0KydtLHd14HIOIaWcYZLZTL5vJJVhEDl2PeJFXriYa9IV28_fp/s1600/Fairy_Tales_Bird_of_Happiness.jpg", 
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj33cgRruOu3Y5pIgaAFqchGEbLvvJtH3Kn7PjyTXPviq5gMwEMHVI8avA8B0RVmHUyqKUSmqzJ1CGH-DggAe2qcgrWJaxg94KGxWSiIU0UohlvYKoxS95ymiofHQXGkYblfbNWiNQ-QSkD/s1600/Boy-With-Fire-Ball-Wallpaper-and-photo.jpg"
];
daptarWolpeper = daptarWolpeper.sort(function() {return 0.5 - Math.random()});
document.body.style.backgroundImage='url('+daptarWolpeper[0]+')';
}
gantiWalpeper();


function gantiKursor(){
var daptarKursor = [
"http://cur.cursors-4u.net/smilies/smi-3/smi203.cur", 
"http://cur.cursors-4u.net/smilies/smi-2/smi130.cur",
"http://cur.cursors-4u.net/cursors/cur-1/cur7.cur", 
"http://cur.cursors-4u.net/symbols/sym-4/sym347.cur",
"http://cur.cursors-4u.net/mechanics/mec-1/mec92.cur",
"http://cur.cursors-4u.net/mechanics/mec-1/mec20.cur",
"http://cur.cursors-4u.net/people/peo-6/peo754.cur",
"http://cur.cursors-4u.net/user/use-1/use102.cur",
"http://cur.cursors-4u.net/others/oth-2/oth181.cur",
"http://cur.cursors-4u.net/others/oth-2/oth114.cur",
"http://cur.cursors-4u.net/others/oth-2/oth113.cur",
"http://cur.cursors-4u.net/others/oth-2/oth115.cur",
"http://cur.cursors-4u.net/others/oth-3/oth246.cur", 
"http://cur.cursors-4u.net/symbols/sym-1/sym25.cur",
"http://cur.cursors-4u.net/symbols/sym-4/sym322.cur",
"http://cur.cursors-4u.net/food/foo-2/foo164.cur",
"http://cur.cursors-4u.net/food/foo-2/foo134.cur",
"http://cur.cursors-4u.net/food/foo-2/foo146.cur",
"http://cur.cursors-4u.net/food/foo-5/foo431.cur",
"http://cur.cursors-4u.net/food/foo-2/foo109.cur",
"http://cur.cursors-4u.net/food/foo-1/foo81.cur",
"http://cur.cursors-4u.net/sports/spo-2/spo145.cur",
"http://cur.cursors-4u.net/sports/spo-5/spo403.cur", 
"http://cur.cursors-4u.net/sports/spo-1/spo26.cur", 
"http://cur.cursors-4u.net/anime/ani-10/ani983.cur",
"http://cur.cursors-4u.net/anime/ani-10/ani997.cur", 
"http://cur.cursors-4u.net/anime/ani-10/ani952.cur",
"http://cur.cursors-4u.net/anime/ani-11/ani1030.cur", 
"http://cur.cursors-4u.net/anime/ani-2/ani201.cur", 
"http://cur.cursors-4u.net/toons/too-5/too449.cur",
"http://cur.cursors-4u.net/toons/too-5/too430.cur", 
"http://cur.cursors-4u.net/toons/too-10/too931.cur", 
"http://cur.cursors-4u.net/games/gam-5/gam440.cur",
"http://cur.cursors-4u.net/games/gam-4/gam335.cur", 
"http://cur.cursors-4u.net/games/gam-6/gam503.cur",
"http://cur.cursors-4u.net/games/gam-11/gam1045.cur",
"http://cur.cursors-4u.net/games/gam-12/gam1143.cur", 
"http://cur.cursors-4u.net/nature/nat-2/nat120.cur", 
"http://cur.cursors-4u.net/nature/nat-6/nat581.cur",
"http://cur.cursors-4u.net/nature/nat-9/nat865.cur", 
"http://cur.cursors-4u.net/nature/nat-9/nat859.cur",
"http://cur.cursors-4u.net/nature/nat-1/nat4.cur", 
"http://cur.cursors-4u.net/nature/nat-1/nat32.cur", 
"http://cur.cursors-4u.net/nature/nat-1/nat95.cur",
"http://cur.cursors-4u.net/nature/nat-1/nat69.cur", 
"http://cur.cursors-4u.net/nature/nat-1/nat95.cur", 
"http://cur.cursors-4u.net/holidays/hol-1/hol4.cur", 
"http://cur.cursors-4u.net/special/spe-1/spe20.cur", 
"http://cur.cursors-4u.net/special/spe-2/spe114.cur"
];
daptarKursor = daptarKursor.sort(function() {return 0.5 - Math.random()});
document.body.style.cursor='url('+daptarKursor[0]+'), default';
}
gantiKursor();


function antiCK(e) {
  if (e.which==3) {
    alert("Sorry for any inconvenience, some feature were disabled to prevent plagiarism");
    return false;
  }
}
</script>

Jumat, 17 Juni 2011

otak atik link


Langsung aja ya...

1. membuat link berkedip (biasa)

  • Masuk ke Blog anda
  • Klik Tata Letak
  • Klik Edit HTML
  • Beri tanda centang pada kotak kecil Expand Template Widget
  • Silahkan cari kode </head>  di dalam template anda
  • Tambahkan script berikut ini sebelum kode tersebut
<style>
a:hover { color:#00FFFF; text-decoration:blink; border-bottom:1px dotted #FF0000; }
</style>
  •  Kode #00FFFF adalah menyatakan warna link tersebut dan kode #FF0000 adalah warna garis bawahnya
  • Silahkan anda variasikan sesuai dengan warna kesukaan anda
  • untuk kode warna anda bisa klik disini (jangan jauh-jauh disini aja) 
  • kalo udah di jangan lupa save

 2. membuat link berwarna-warni

copy script ni 
<script src='http://sites.google.com/site/muzzymusthofa/javascript/rainbow.js'/>
 caranya sama kayak di atas

semoga bermanfaat





efek warna tulisan link

<style type="text/css">
a:link    {color:green;}
a:visited {color:green;}
a:hover   {color:red;}
a:active  {color:yellow;}
</style>

membuat Box shadow di sekitar link

<style type="text/css">
a:hover
{
box-shadow: 0px 0px 13px #818181; -webkit-box-shadow: 0px 0px 13px #818181; -moz-box-shadow: 0px 0px 13px #818181;
}
</style>

gabung (efek warna & Box shadow)

<style type="text/css">
a:link    {color:green;}
a:visited {color:green;}
a:hover   {color:red; box-shadow: 0px 0px 13px #818181; -webkit-box-shadow: 0px 0px 13px #818181; -moz-box-shadow: 0px 0px 13px #818181; }
a:active  {color:yellow;}
</style>

Show/Hide





buat tombol show Hide

apakah tertarik? silahkan ambil code di bawah

<div><div style="margin-bottom: 2px;"><i><b><small></small></b></i><input value="Show" style="margin: 0px; padding: 0px; width: 60px; font-size: 10px;" 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'; }" type="button"></div>
<div style="border: 1px inset ; margin: 0px; padding: 6px;"><div style="display: none;">

isinya
</div></div></div>

Show/Hide Navbar





terkadang pemilik blog trasa terganggu dg adanya navbar,
nah,,, untuk mnyembunyikan navbar trsebut lgsg copas kode ni

<script>document.getElementById('navbar').style.display='none';</script>

<a
onclick="if(document.getElementById('navbar').style.display=='block'){document.getElementById('navbar').style.display='none'}else{document.getElementById('navbar').style.display='block'}"
title="Cangcut Berdarah">Navbar </a>

Minggu, 05 Juni 2011

MP3 Player | Update ah...




sebernya kemarin saya sudah posting tentang  tapi sekarang saya update lagi.. :D

lihat contoh 

<center>
<style type="text/css">
#pframe a {cursor:pointer; font-weight:bold; }
#pframe a:hover {color:yellow;}
#pframe img {vertical-align:middle; cursor:pointer; border:1px solid #000000; margin:2px;}
#pframe img:hover { -moz-border-radius:3px; border:1px solid #9999aa; }
#pframe textarea {border:1px dashed #555; background-color:black; color:#999; -moz-border-radius:3px; overflow-x:hidden; width:170px;}
</style>

<div style="width:200px;" id="pframe"><center>
  <span id="player">
      <a onclick='play()'><img src='http://www.goodmortgage.tv/images/button_play.gif'/> <img src='http://offlinephobia.uni.cc/forum/images/smilies/listen.gif'/> <img src='http://www.laptoprockers.eu/images/site/menu_music.gif'/></a>
  </span>
  <p>
  <a onclick='stop()'>&#10006; Stop</a> - 
  <a onclick='play()'>Rand</a>
  </p>
</center></div>

<script type="text/javascript">
var plera = "<embed wmode='transparent' src='http://www.indowebster.com/templates/object/mediaplayer.swf' FlashVars='file=";
var plert = "&frontcolor=0xffffff&backcolor=0x000000&lightcolor=0xEC2B1A&logo=http://www.indowebster.com/templates/img/idws.png&autostart=true&repeat=true&usefullscreen=false&showeq=false' width='200' height='20' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' menu='false' allowfullscreen='false'></embed>";

var lagu = [
new Array("http://cdn.x.indowebster.com/download/5/567b6c260461322f2e8cbe29933f28e7.mp3", "Evanescence - Bring Me to Life"),
new Array("http://www26.indowebster.com/f32435ed50da0cc1646e186e2639532f.mp3", "Evanescence - Lithium"),
new Array("http://cdn.x.indowebster.com/download/5/089edc93be2f88ee36b92ea70482411b.mp3", "Linkin Park - In Pieces"),
new Array("http://www44.indowebster.com/e46efd95c77ab2243450e7a5f1987359.mp3", "Evanescence - Forgive Me"),
new Array("http://www35.indowebster.com/8e1dd9a97522f864e2c94ad1941651fc.mp3", "Mahkota - Terakhir Kali"),
new Array("http://xover4.jkt.3d.x.indowebster.com/download/41/r0b01ksmwpswzwalypr5ykm02lujizpo.mp3", "Apolo - Tak Lengkap Tanpamu"),
new Array("http://xover4.jkt.3d.x.indowebster.com/download/33/qt3ndpt6l0a00b51m91hd2xw4y9gf7rl.mp3", "Mikha Tambayong - Mendung Kan Berganti"),
new Array("http://xover4.jkt.3d.x.indowebster.com/download/41/6tbgv5foxlus7gv03599vsfwvbsvjupm.mp3", "Geisha - Cinta dan Benci"),
];
var i = Math.floor(lagu.length*Math.random()); function play(){ var k=Math.floor(lagu.length*Math.random()); document.getElementById("player").innerHTML = "<marquee behavior='alternate' scrollamount='2'>"+k+" <b>"+lagu[k][1]+"</b></marquee><br/>"+plera+lagu[k][0]+plert+"<br/><textarea onClick='blokabeh();' id='kampret' rows='1' readonly='readonly'>"+lagu[k][0]+"</textarea>"; } function stop(){ document.getElementById("player").innerHTML = "<a onclick='play()'><img src='http://www.goodmortgage.tv/images/button_play.gif'/> <img src='http://offlinephobia.uni.cc/forum/images/smilies/listen.gif'/> <img src='http://www.laptoprockers.eu/images/site/menu_music.gif'/></a>"; }   function blokabeh(id)   {     document.getElementById('kampret').focus();     document.getElementById('kampret').select();   } play(); </script> </center>

handapeunpost