Hi Chris,
   
  Below is javascript code that would not allow user to use right click on a 
page.
   
  /////////////////////////////////////////
   
  <html>
<head>
 <script language="javascript">
  function rightFun() {
   alert("Not an allowed operation on this page");
  return false;
  }
 </script>
</head>
<body oncontextmenu="return rightFun();">
</html>
   
  ////////////////////////////////////////
   
  Hope this ll help you,
   
  Do let me know if there is anything that i could do to help
  Neeraj Thakur
  Web developer.
  

Michael Sullivan <[EMAIL PROTECTED]> wrote:
  On Fri, 2006-03-17 at 15:27 +0100, Chris wrote:
> Forgetting about the rights and wrongs juuuuuuust
> for a second, does anyone know the code, so that
> when someone does a r/click on a page, they only
> get the add to favs and go back one page please
> and 1 link to another page?
> 
> Is this possible in PHP please?
> 
> Any help appreciated.
> 
> Chris

Theoretically (I don't know for sure because I don't know js), it's
possible in JavaScript.  PHP just outputs text and stuff anyway, so you
could make your PHP script output JavaScript for this effect...



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 



  SPONSORED LINKS 
        Php mysql   Job postings 
    
---------------------------------
  YAHOO! GROUPS LINKS 

    
    Visit your group "php-list" on the web.
    
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
    
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 

    
---------------------------------
  



                
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!

[Non-text portions of this message have been removed]



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to