Cari Something?

Friday, June 26, 2009

Tutorial : No Right Click

A request from Rina-san.

Bahan-bahan:
  1. Connection internet :P
Cara-cara:
  1. Login ke Blogger.com
  2. Klik kat Layout
  3. Klik Add A Gadget, pilih HTML/Javascript
  4. Paste code kat bawah ni.. Highlight dan tekan Ctrl+C :)


    <script language="JavaScript">
    <!--

    //Disable right click script III- By Renigade (renigade@mediaone.net)
    //For full source code, visit http://www.dynamicdrive.com

    var message="";
    ///////////////////////////////////
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;
    document.oncontextmenu=clickIE;}

    document.oncontextmenu=new Function("return false")
    // -->
    </script>



  5. Save, dan View Blog anda..

10 comments:

n.i. said...

wah!!! bagus2... terima kasih ya cik yan :-)

ajar la lagi hehehehe

Diver Mom said...

menariknya.. :) tq..

cysev3n said...

cik n.i.,
kalau ada nak request, silalah.. saya akan usahakan.. hehehe..

cik Zuhaini,
sila-lah try, kalau sudi :)

rina said...

arigatou gozaimasu, yan-san. hehehe

cysev3n said...

rina-san,
er.. er.. welcome :P

Nur said...

ohhh...tq!tq!ku sungguh memerlukannya..

mamaDhea said...

mekasihhhh CY.. saya sudah buat.. ngee! ekceli since last week dah try bbrp coding utk buat 'no right click' ni, tp tak menjadi plak..

utk gambar plak, camne nak buat supaya takleh enlarge ke hape ke..

cysev3n said...

Nur,
sudah jadikah?

Sya,
gambar takley enlarge? heee.. tu next week punya tutorial ek..

NadiahKhair said...

owhhhh tenkiuuu so very much.

i sokak.

Mommy Harith Hannah said...

Time kasey Cik Yan!
Dah applied. :D