I'm not quite sure how that script will prevent right clicking on a
page, since all it does is define a function. Here is one site with a
script to eliminate right clicks:
http://www.dynamicdrive.com/dynamicindex9/noright3.htm

If you use google, you can find many more.

--- neeraj thakur <[EMAIL PROTECTED]> wrote:

> 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]
> 
> 


Mark Weinstock
[EMAIL PROTECTED]
***************************************
You can't demand something as a "right" unless you are willing to fight to 
death to defend everyone else's right to the same thing.
***************************************

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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