46 users online (0 members and 46 guests)  


  Results 1 to 8 of 8

Related

  1. Replies: 3
  2. left side scroll bar    Forum: CSS Forum
    Replies: 1
  3. extensible left column    Forum: CSS Forum
    Replies: 2
  4. left nav spacing    Forum: CSS Forum
    Replies: 3
  5. CSS Validator (on left menu)    Forum: CSS Forum
    Replies: 4
  1. #1
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156

    no right click but only once

    i'm in need of a script that when someone right clicks( the first time on my page) they will get an alert that warns them about @copyright. but when they right click the second time, it'll go back to normal. any script like that?
    Last edited by geek987; 08-31-2002 at 12:05 PM.

  2. #2
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    could someone reply plz?(i kinda want at least some comments 'bout this... )

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    edited to correct front page problem
    Heres a simple example of 'Doing something once'

    Code:
    <script Language="JavaScript">
    function check() {
    
    if (window.badger.value != "HaveDone"){
    alert('I will \n do this \n only once.');
    window.badger.value='HaveDone';
    }
    }
    </script>
    
    <input type="button" name="badger" value="Just Once" onClick="check()">
    Sorry it took so long. Heavy night :\
    Last edited by HTML; 09-01-2002 at 09:59 AM.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    Thx, dean, but i'm not very good at making or combining scripts; so , i kinda need some help on combining the 'bove script and the scipt below:

    <SCRIPT LANGUAGE="javascript">

    function click() {

    if (event.button==2) {

    alert('Sorry, this function is disabled.')

    }

    }

    document.onmousedown=click

    </SCRIPT>






    Last edited by geek987; 09-01-2002 at 12:09 PM.

  5. #5
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    I'll have a go when I get home.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  6. #6
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    thx dean

  7. #7
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Okay, this is very much a bodge job.

    It only works in IE, as far as I can see -

    Code:
    <script Language="JavaScript">
    function check() {
    
    if (event.button==2) {
    
    if (window.badger.value != "HaveDone"){
    
    alert('Sorry, this function is disabled.')
    
    
    window.badger.value='HaveDone';
    }}
    }
    
    document.onmousedown=check
    
    </script>
    
    <input type="hidden" name="badger" value="Just Once">
    Put the input somewhere in the body, anywhere will do. But it does warn only once.

    Have fun...
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  8. #8
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    THANK YOU!!!!!!!!!!!!!!1



Tags for this Thread