Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I modify this script...?

    <SCRIPT language=JavaScript>
    <!-- begin
    document.onmousedown=click;
    document.onkeydown=click;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=click;
    if (document.layers) window.captureEvents(Event.KEYDOWN); window.onkeydown=click;
    function click(e){
    if (navigator.appName == 'Netscape'){
    if (e.which != 1){
    return false;}}
    if (navigator.appName == "Microsoft Internet Explorer"){
    if (event.button != 1){
    return false;}}}
    // end -->
    </SCRIPT>


    I found that this script disables all keys except the "Print Screen" key. Is here any way that can disable it?
    Thankx for helping!!

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    The answer to this question is: NO

  • #3
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    so, what happens if you get a user with a disability of some kind, who uses the keyboard to navigate? and what about all of the legitimate uses of the keyboard while on your website? i think you'll find in testing, that the script ends up being more of a problem than a solution.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #4
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    well well

    so....the printscreen key cannot be disabled...aiiii....

    The reason why i made this script is bcuz some dudes are using the print screen key to print out graphix on my site and reproduce it on their own website without my permission

    i do not intend 2 give disabled ppl a hard time
    and besides, i won't put this script in every sigle page of my website...i am not that crazy -_-

    well thankx for trying to help anyways
    Last edited by Tabris; 07-24-2002 at 06:00 PM.

  • #5
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    so add your site logo or your name to the pictures. also, if they have a guestbook on their site, post an entry in it, about how they're stealing your content. you don't need to be nasty or something, you just need to point out that it's happening.

    i'd check and make sure that that's really what's happening, though. could just be a mistake or something.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.


  •  

    Posting Permissions

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