Cara Membuat Browser Bergetar Saat Klik Kanan
1. Klik Rancangan
2. Tambah gadget baru >> HTML/Jscript
3. Paste kan kode di bawah ini kedalam gadget tersebut
<script language="javascript">
<!-- Begin
function shake(n) {
if (self.moveBy) {
for (i = 20; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
// End -->
PopUpURL = "Klik Kanan Y, Hayo mau ngapain";
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
if (isIE||isNN)
{
document.oncontextmenu=checkV;
}
else
{
document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
document.onmousedown=checkV;
}
function checkV(e)
{
if (isN4)
{
if (e.which==2||e.which==3)
{
dPUW=alert("Klik Kanan Y, Hayo mau ngapain");
shake(2);
return false;
}
}
else
{
dPUW=alert(PopUpURL);
shake(2);
return false;
}
}
</script>
<!-- Begin
function shake(n) {
if (self.moveBy) {
for (i = 20; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
// End -->
PopUpURL = "Klik Kanan Y, Hayo mau ngapain";
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
if (isIE||isNN)
{
document.oncontextmenu=checkV;
}
else
{
document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
document.onmousedown=checkV;
}
function checkV(e)
{
if (isN4)
{
if (e.which==2||e.which==3)
{
dPUW=alert("Klik Kanan Y, Hayo mau ngapain");
shake(2);
return false;
}
}
else
{
dPUW=alert(PopUpURL);
shake(2);
return false;
}
}
</script>
Kemudian simpan....
Ket : Warna Merah bisa Anda ganti dengan yang lainnya
Makasi Gan
BalasHapusJual DVD Game dan Film
BalasHapusSedia Macam2
- Game PC/ PS2/ Ps3/ PSP/ Android Mini/HD
- Film Movie/ Bollywood/ Anime/ Serial.
- WWe Smackdown
http://jualgamefilm.blogspot.com