always keep in mind: there are clientside and serverside techniques. ;) ----- Original Message ----- From: Chris To: php-list@yahoogroups.com Sent: Tuesday, March 21, 2006 5:35 PM Subject: RE: [php-list] Is this code for right click options possible in PHP ?
Many, many thanks for the help on this, I've made a mistake as I thought it was possible using php. I've been trying to find the *exact* code for the right click options that a user sees in ie6. All the best. Chris. > -----Original Message----- > From: php-list@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Mark > Sent: Tuesday, March 21, 2006 5:00 PM > To: php-list@yahoogroups.com > Subject: Re: [php-list] Is this code for right click options > possible in PHP ? > > 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: php-list@yahoogroups.com 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 a.. Visit your group "php-list" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ------------------------------------------------------------------------------ [Non-text portions of this message have been removed] Community email addresses: Post message: php-list@yahoogroups.com 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/