There is no "standard" code for this.
There are thousands of different variations of this type of script.
But all of them have one basic flaw: They're written in JavaScript.
JavaScript can be turned off, then it's easy to copy all of the contents on your page.
Images are cached by the browser, they are already on the users disk when you're trying to protect them.
No-right-clicking scripts can usually be avoided simply by going to the toolbar and clicking view->source.
If you still want one of these scripts. Try hotscripts.com or google.com.
Most of the scripts there dealing with no-right clicking are fairly simple to understand, and they are easy to implement on your own page.
Good luck
