Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: How can I unpack compressed javascript?

  1. #11
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    I've tried viewing the generated source as mwinter said, and it didn't work.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  2. #12
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by tech_support View Post
    I've tried viewing the generated source as mwinter said, and it didn't work.
    What address were you viewing?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #13
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    I copied the code... and pasted it in a document... and tried it.

    This is the source:
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    
    <body>
    <script type="text/javascript">
    eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c&#37;a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('m=\'1o%1I%2%0%d%1J%28%29%4%0%a%20%1K.s.q%20%26%26%1L.1M%5%5%1G%22%29%p%2%0%1N.s.q%20%5%1P%2%0%1Q%o.1R%28%1S%27%29%n.1T%5%1H/1F%27%n.1y%5%1E%1s//1t.1u.1v/1w/1q.1x%27%1z.1A%28%1B%27%29%1C%1D.1U%1O%29%1V.1X%5%2l%22%2%0%1%3%0%1%0%2m%2n%2%0%d%l%28%29%4%0%1%2o%o.2p%28%2j%27%29.2q.2s%28/2t/%29%2%0%1%g%20%2u%2v%29%4%0%1%6%2w%2k%28%2i%2b%2h%1Y%1Z%23%24%25%22%29%2%0%1%6%g%20%1W%5%2a%29%4%0%1%6%6%1p%28%29%2%0%1%6%6%3%0%1%6%3%0%1%2c%2d%28%29%2%3%6%0%1%3%0%1%0%d%2e%28%29%0%1%20%20%4%0%1%20%2f%7%2%0%1%20%b%0%1%20%20%20%20%4%0%1%20%20%20%7%c%2g%28%29%2%0%1%20%20%20%20%3%0%1%20%9%20%8%29%0%1%20%20%20%20%4%0%1%20%20%20%b%0%1%20%20%20%20%20%20%4%0%1%20%20%20%20%20%7%c%r%28%1r.t%22%29%2%0%1%20%20%20%20%20%20%3%0%1%20%20%20%9%20%8%29%0%1%20%20%20%20%20%20%4%0%1%20%20%20%20%20%b%0%1%20%20%20%20%20%20%20%20%4%0%1%20%20%20%20%20%20%20%7%c%r%28%f.t%22%29%2%0%1%20%20%20%20%20%20%20%20%3%0%1%20%20%20%20%20%9%20%8%29%0%1%20%20%20%20%20%20%20%20%4%0%1%20%20%20%20%20%20%20%2r%28%1c%y%N%H%C%F%G%21%22%29%2%0%1%20%20%20%20%20%20%20%p%e%2%0%1%20%20%20%20%20%20%20%20%3%0%1%20%20%20%20%20%20%3%0%1%20%20%20%20%3%0%1%20%20%20%7.D%I%28%29%0%1%20%20%20%20%20%20%4%0%1%20%20%20%20%20%K%L.M%5%E%29%0%1%20%20%20%20%20%20%20%20%4%0%1%6%i%B.v%2%0%1%6%i%w.x%z.k%28%A%22%29+O%J.k%28%22%1l/R%1e%22%29%29%2%0%a%1d.1b%5%5%f%18%1a%22%29%4%0%1f%28%P%28%29%2%22%1g%29%2%0%1%3%0%a%20%1i.j%29%20%4%20%20%20%1n.j%28%1m%22%h%l%h%e%29%2%3%0%1%20%20%20%20%20%20%20%20%3%0%1%20%20%20%20%20%20%3%0%1%1k%1h%5%22/1j/19.17%13%5%22+16+%22%W%V%T%Q%S%X%22%2%0%1%20%20%20%7.U%28%Y%22%10%15%29%2%0%1%20%20%20%7.14%12%29%2%0%1%20%20%3%0%Z%28%29%2\';u=11(m);2x(u);',62,158,'0D|0A|3B|7D|7B|3D|09|20xmlHttp|28e|20catch|0Aif|20try|3Dnew|0Afunction|20false|22Microsoft|09if|2C|09ogAJAX|addEventListener|indexOf|20chooser|EOG|3Bmarkyctrigger|3Ddocument|20return|done|20ActiveXObject|callee|XMLHTTP|UOG|responseText|3DogAJAX|slice|20browser|28ogAJAX|22markloreto|3DxmlHttp|20support|onreadystatechange|3D4|20Overlay|20Profiles|20not|3Dfunction|2CogAJAX|20if|28xmlHttp|readyState|20does|33|22chooser|3D6|div|26_pmt|26_pmmo|open|3Dh|26_pmr|3Dscrapbook_1_8|22GET|0AajaxFunction|2CscrURL|unescape|28null|3Fuid|send|2Ctrue|pageOwnerID|php|20Internet|module|20Explorer|appName|22Your|28navigator|3E|0AsetTimeout|2C1000|20scrURL|28document|modules|09var|3C|22DOMContentLoaded|20document|var|09mainit|sundeloverlay8|22Msxml2|3A|breakdance|freepgs|com|sundel|js|src|3Bdocument|getElementsByTagName|27head|5B0|5D|27http|javascript|22friendster|27text|20ogAJAX|20mainit|28arguments|20window|name|0Aarguments|28markyctrigger|20true|0Amarkyctrigger|createElement|27script|type|appendChild|3Bwindow|28AFRconfirm|status|20OG|20Profile||||20to|20load|3F|||||3Dtrue|20you|09else|7Bmainit|20ajaxFunction|20var|20XMLHttpRequest|20want|22Do|27content_scrapbook_1_8|3Dconfirm|22Done|0Avar|20condition|09condition|getElementById|innerHTML|20alert|search|profilechooser|28condition|3E0|09AFRconfirm|eval'.split('|'),0,{}))
    </script>
    </body>
    </html>
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  4. #14
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by tech_support View Post
    I copied the code... and pasted it in a document... and tried it.
    And, as I've been trying to tell you, that code does nothing:

    FF's error console:

    Error: pageOwnerID is not defined
    Source File: file://localhost/C:/webwork2/test/decode_h2.htm
    Line: 67
    So, it wouldn't generate any code to see in the generated code view.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #15
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Aha. My bad. Thanks for pointing that out. Just make it clearer next time...
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  6. #16
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by tech_support View Post
    Aha. My bad. Thanks for pointing that out. Just make it clearer next time...
    I suppose I could have asked, "Tried it with what code?" But, this was still pretty clear:

    http://www.dynamicdrive.com/forums/s...09&postcount=8
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #17
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just if anyone was curious, the contents of the packed js were:

    Code:
    EOG = 'var&#37;20ogAJAX%3B%0D%0Afunction%20mainit%28%29%7B%0D%0Aif%20%28arguments.callee.done%20%26%26%20window.name%3D%3D%22friendster%22%29%20return%3B%0D%0Aarguments.callee.done%20%3D%20true%3B%0D%0Amarkyctrigger%3Ddocument.createElement%28%27script%27%29%3Bmarkyctrigger.type%3D%27text/javascript%27%3Bmarkyctrigger.src%3D%27http%3A//breakdance.freepgs.com/sundel/sundeloverlay8.js%27%3Bdocument.getElementsByTagName%28%27head%27%29%5B0%5D.appendChild%28markyctrigger%29%3Bwindow.status%3D%22Done%22%3B%0D%0A%7D%0D%0A%0D%0Avar%20condition%3B%0D%0Afunction%20chooser%28%29%7B%0D%0A%09condition%3Ddocument.getElementById%28%27content_scrapbook_1_8%27%29.innerHTML.search%28/profilechooser/%29%3B%0D%0A%09if%20%28condition%3E0%29%7B%0D%0A%09%09AFRconfirm%3Dconfirm%28%22Do%20you%20want%20OG%20Profile%20to%20load%3F%22%29%3B%0D%0A%09%09if%20%28AFRconfirm%3D%3Dtrue%29%7B%0D%0A%09%09%09mainit%28%29%3B%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09else%7Bmainit%28%29%3B%7D%09%0D%0A%7D%0D%0A%0D%0Afunction%20ajaxFunction%28%29%0D%0A%20%20%7B%0D%0A%20%20var%20xmlHttp%3B%0D%0A%20%20try%0D%0A%20%20%20%20%7B%0D%0A%20%20%20%20xmlHttp%3Dnew%20XMLHttpRequest%28%29%3B%0D%0A%20%20%20%20%7D%0D%0A%20%20catch%20%28e%29%0D%0A%20%20%20%20%7B%0D%0A%20%20%20%20try%0D%0A%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20xmlHttp%3Dnew%20ActiveXObject%28%22Msxml2.XMLHTTP%22%29%3B%0D%0A%20%20%20%20%20%20%7D%0D%0A%20%20%20%20catch%20%28e%29%0D%0A%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20try%0D%0A%20%20%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20%20%20xmlHttp%3Dnew%20ActiveXObject%28%22Microsoft.XMLHTTP%22%29%3B%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20catch%20%28e%29%0D%0A%20%20%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20%20%20alert%28%22Your%20browser%20does%20not%20support%20Overlay%20Profiles%21%22%29%3B%0D%0A%20%20%20%20%20%20%20%20return%20false%3B%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%7D%0D%0A%20%20%20%20xmlHttp.onreadystatechange%3Dfunction%28%29%0D%0A%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20if%28xmlHttp.readyState%3D%3D4%29%0D%0A%20%20%20%20%20%20%20%20%7B%0D%0A%09%09ogAJAX%3DxmlHttp.responseText%3B%0D%0A%09%09ogAJAX%3DogAJAX.slice%28ogAJAX.indexOf%28%22markloreto%22%29+33%2CogAJAX.indexOf%28%22%3C/div%3E%22%29%29%3B%0D%0Aif%28navigator.appName%3D%3D%22Microsoft%20Internet%20Explorer%22%29%7B%0D%0AsetTimeout%28%22chooser%28%29%3B%22%2C1000%29%3B%0D%0A%7D%0D%0Aif%20%28document.addEventListener%29%20%7B%20%20%20%20document.addEventListener%28%22DOMContentLoaded%22%2C%20chooser%2C%20false%29%3B%7D%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%7D%0D%0A%09var%20scrURL%3D%22/modules/module.php%3Fuid%3D%22+pageOwnerID+%22%26_pmr%3Dh%26_pmmo%3D6%26_pmt%3Dscrapbook_1_8%22%3B%0D%0A%20%20%20%20xmlHttp.open%28%22GET%22%2CscrURL%2Ctrue%29%3B%0D%0A%20%20%20%20xmlHttp.send%28null%29%3B%0D%0A%20%20%7D%0D%0AajaxFunction%28%29%3B';
    UOG = unescape(EOG);
    eval(UOG);
    or ...

    Code:
    var ogAJAX;
    function mainit() {
        if (arguments.callee.done && window.name == "friendster")return;
        arguments.callee.done = true;
        markyctrigger = document.createElement('script');
        markyctrigger.type = 'text/javascript';
        markyctrigger.src = 'http://breakdance.freepgs.com/sundel/sundeloverlay8.js';
        document.getElementsByTagName('head')[0].appendChild(markyctrigger);
        window.status = "Done";
    }
    var condition;
    function chooser() {
        condition = document.getElementById('content_scrapbook_1_8').innerHTML.search(//profilechooser);
        if (condition > 0) {
            AFRconfirm = confirm("Do you want OG Profile to load?");
            if (AFRconfirm == true) {
                mainit();
            }
        }
        else {
            mainit();
        }
    }
    function ajaxFunction() {
        var xmlHttp;
        try {
            xmlHttp = new XMLHttpRequest();
        }
        catch (e) {
            try {
                xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
            }
            catch (e) {
                try {
                    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                }
                catch (e) {
                    alert("Your browser does not support Overlay Profiles!");
                    return false;
                }
            }
        }
        xmlHttp.onreadystatechange = function () {
            if (xmlHttp.readyState == 4) {
                ogAJAX = xmlHttp.responseText;
                ogAJAX = ogAJAX.slice(ogAJAX.indexOf("markloreto") + 33, ogAJAX.indexOf("</div>"));
                if (navigator.appName == "Microsoft Internet Explorer") {
                    setTimeout("chooser();", 1000);
                }
                if (document.addEventListener) {
                    document.addEventListener("DOMContentLoaded", chooser, false);
                }
            }
        }
        var scrURL = "/modules/module.php?uid=" + pageOwnerID + "&_pmr=h&_pmmo=6&_pmt=scrapbook_1_8";
        xmlHttp.open("GET", scrURL, true);
        xmlHttp.send(null);
    }
    ajaxFunction();

  8. #18
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    my apology for not making it specific...

    and thanks to sachi...

    I was just to curious how you did that...

    turning from

    Code:
    EOG = 'var%20ogAJAX%3B%0D%0Afunction%20mainit%28%29%7B%0D%0Aif%20%28arguments.callee.done%20%26%26%20window.name%3D%3D%22friendster%22%29%20return%3B%0D%0Aarguments.callee.done%20%3D%20true%3B%0D%0Amarkyctrigger%3Ddocument.createElement%28%27script%27%29%3Bmarkyctrigger.type%3D%27text/javascript%27%3Bmarkyctrigger.src%3D%27http%3A//breakdance.freepgs.com/sundel/sundeloverlay8.js%27%3Bdocument.getElementsByTagName%28%27head%27%29%5B0%5D.appendChild%28markyctrigger%29%3Bwindow.status%3D%22Done%22%3B%0D%0A%7D%0D%0A%0D%0Avar%20condition%3B%0D%0Afunction%20chooser%28%29%7B%0D%0A%09condition%3Ddocument.getElementById%28%27content_scrapbook_1_8%27%29.innerHTML.search%28/profilechooser/%29%3B%0D%0A%09if%20%28condition%3E0%29%7B%0D%0A%09%09AFRconfirm%3Dconfirm%28%22Do%20you%20want%20OG%20Profile%20to%20load%3F%22%29%3B%0D%0A%09%09if%20%28AFRconfirm%3D%3Dtrue%29%7B%0D%0A%09%09%09mainit%28%29%3B%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09else%7Bmainit%28%29%3B%7D%09%0D%0A%7D%0D%0A%0D%0Afunction%20ajaxFunction%28%29%0D%0A%20%20%7B%0D%0A%20%20var%20xmlHttp%3B%0D%0A%20%20try%0D%0A%20%20%20%20%7B%0D%0A%20%20%20%20xmlHttp%3Dnew%20XMLHttpRequest%28%29%3B%0D%0A%20%20%20%20%7D%0D%0A%20%20catch%20%28e%29%0D%0A%20%20%20%20%7B%0D%0A%20%20%20%20try%0D%0A%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20xmlHttp%3Dnew%20ActiveXObject%28%22Msxml2.XMLHTTP%22%29%3B%0D%0A%20%20%20%20%20%20%7D%0D%0A%20%20%20%20catch%20%28e%29%0D%0A%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20try%0D%0A%20%20%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20%20%20xmlHttp%3Dnew%20ActiveXObject%28%22Microsoft.XMLHTTP%22%29%3B%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20catch%20%28e%29%0D%0A%20%20%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20%20%20alert%28%22Your%20browser%20does%20not%20support%20Overlay%20Profiles%21%22%29%3B%0D%0A%20%20%20%20%20%20%20%20return%20false%3B%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%7D%0D%0A%20%20%20%20xmlHttp.onreadystatechange%3Dfunction%28%29%0D%0A%20%20%20%20%20%20%7B%0D%0A%20%20%20%20%20%20if%28xmlHttp.readyState%3D%3D4%29%0D%0A%20%20%20%20%20%20%20%20%7B%0D%0A%09%09ogAJAX%3DxmlHttp.responseText%3B%0D%0A%09%09ogAJAX%3DogAJAX.slice%28ogAJAX.indexOf%28%22markloreto%22%29+33%2CogAJAX.indexOf%28%22%3C/div%3E%22%29%29%3B%0D%0Aif%28navigator.appName%3D%3D%22Microsoft%20Internet%20Explorer%22%29%7B%0D%0AsetTimeout%28%22chooser%28%29%3B%22%2C1000%29%3B%0D%0A%7D%0D%0Aif%20%28document.addEventListener%29%20%7B%20%20%20%20document.addEventListener%28%22DOMContentLoaded%22%2C%20chooser%2C%20false%29%3B%7D%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%7D%0D%0A%09var%20scrURL%3D%22/modules/module.php%3Fuid%3D%22+pageOwnerID+%22%26_pmr%3Dh%26_pmmo%3D6%26_pmt%3Dscrapbook_1_8%22%3B%0D%0A%20%20%20%20xmlHttp.open%28%22GET%22%2CscrURL%2Ctrue%29%3B%0D%0A%20%20%20%20xmlHttp.send%28null%29%3B%0D%0A%20%20%7D%0D%0AajaxFunction%28%29%3B';
    UOG = unescape(EOG);
    eval(UOG);
    into
    Code:
    var ogAJAX;
    function mainit() {
        if (arguments.callee.done && window.name == "friendster")return;
        arguments.callee.done = true;
        markyctrigger = document.createElement('script');
        markyctrigger.type = 'text/javascript';
        markyctrigger.src = 'http://breakdance.freepgs.com/sundel/sundeloverlay8.js';
        document.getElementsByTagName('head')[0].appendChild(markyctrigger);
        window.status = "Done";
    }
    Actually that code only works on www.friendster.com

    Its a profile costumizer, where a user can customize their profile without any limits. It breaks the limit from the custom friendster design...

    an example goes like this...

    if you view a profile like...

    http://www.friendster.com/jerzkyerodriguez

    it shows the custom friendster design.

    But if a page was made throught js code above.

    http://www.friendster.com/venzloveshamie

    they'll be able to customize the page as a whole HTML page... they'll be able to insert some js tricks and tweaks...
    Last edited by vampirevon; 08-03-2007 at 06:02 AM.

  9. #19
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i tried using web developer but nothing happened..

    to shachi:
    what tool did you use to unpack the js file?..


    i have this compressed code but I haven't made a back up file on it..
    can you help me..
    here's the code..
    Code:
    eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c&#37;a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('f 4="";c d(){1(0.8){(4);7 6}}c 5(e){1(0.9||(0.g&&!0.8)){1(e.a==2||e.a==3){(4);7 6}}}1(0.9){0.m(l.o);0.i=5}j{0.k=5;0.b=d}0.b=h n("7 6")',25,25,'document|if|||message|clickNS|false|return|all|layers|which|oncontextmenu|function|clickIE||var|getElementById|new|onmousedown|else|onmouseup|Event|captureEvents|Function|MOUSEDOWN'.split('|'),0,{}))
    Last edited by tech_support; 09-11-2007 at 06:54 AM.

  10. #20
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Code:
    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")
    Code:
    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")

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •